aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lltabcontainervertical.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llui/lltabcontainervertical.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/lltabcontainervertical.h67
1 files changed, 1 insertions, 66 deletions
diff --git a/linden/indra/llui/lltabcontainervertical.h b/linden/indra/llui/lltabcontainervertical.h
index e887e53..ffe65be 100644
--- a/linden/indra/llui/lltabcontainervertical.h
+++ b/linden/indra/llui/lltabcontainervertical.h
@@ -29,69 +29,4 @@
29 * $/LicenseInfo$ 29 * $/LicenseInfo$
30 */ 30 */
31 31
32// Fear my script-fu! 32// deprecated: see LLTabContainer
33
34#ifndef LL_TABCONTAINERVERTICAL_H
35#define LL_TABCONTAINERVERTICAL_H
36
37#include "lltabcontainer.h"
38
39const S32 TABCNTRV_CLOSE_BTN_SIZE = 16;
40const S32 TABCNTRV_HEADER_HEIGHT = LLPANEL_BORDER_WIDTH + TABCNTRV_CLOSE_BTN_SIZE;
41const S32 TABCNTRV_TAB_WIDTH = 100;
42// const S32 TABCNTRV_TAB_HEIGHT = 16; Use BTN_HEIGHT instead, JC.
43const S32 TABCNTRV_ARROW_BTN_SIZE = 16;
44const S32 TABCNTRV_BUTTON_PANEL_OVERLAP = 1; // how many pixels the tab buttons and tab panels overlap.
45const S32 TABCNTRV_PAD = 0;
46
47class LLButton;
48class LLTextBox;
49
50class LLTabContainerVertical : public LLTabContainerCommon
51{
52public:
53 LLTabContainerVertical( const LLString& name, const LLRect& rect,
54 void(*close_callback)(void*), void* callback_userdata,
55 U32 tab_width = TABCNTRV_TAB_WIDTH, BOOL bordered = TRUE);
56
57 LLTabContainerVertical( const LLString& name, const LLString& rect_control,
58 void(*close_callback)(void*), void* callback_userdata,
59 U32 tab_width = TABCNTRV_TAB_WIDTH, BOOL bordered = TRUE);
60
61 /*virtual*/ void initButtons();
62
63 /*virtual*/ ~LLTabContainerVertical();
64
65 virtual LLXMLNodePtr getXML(bool save_children = true) const;
66 /*virtual*/ void draw();
67
68 /*virtual*/ void addTabPanel(LLPanel* child,
69 const LLString& label,
70 BOOL select = FALSE,
71 void (*on_tab_clicked)(void*, bool) = NULL,
72 void* userdata = NULL,
73 S32 indent = 0,
74 BOOL placeholder = FALSE,
75 eInsertionPoint insertion_point = END);
76
77 /*virtual*/ BOOL selectTab(S32 which);
78 /*virtual*/ void removeTabPanel( LLPanel* child );
79
80 /*virtual*/ BOOL handleMouseDown( S32 x, S32 y, MASK mask );
81 /*virtual*/ BOOL handleHover( S32 x, S32 y, MASK mask );
82 /*virtual*/ BOOL handleMouseUp( S32 x, S32 y, MASK mask );
83 /*virtual*/ BOOL handleKeyHere(KEY key, MASK mask, BOOL called_from_parent);
84
85protected:
86 U32 mTabWidth;
87
88 LLButton* mUpArrowBtn;
89 LLButton* mDownArrowBtn;
90
91protected:
92 virtual void updateMaxScrollPos();
93 virtual void commitHoveredButton(S32 x, S32 y);
94};
95
96
97#endif