diff options
author | simonb <simonb> | 2006-03-22 12:23:17 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-03-22 12:23:17 (GMT) |
commit | fe4a7db228d69bc9a66ed948f218ef489b2cedaf (patch) | |
tree | 5ee59c4862b04871dbd6f5112278682e4b005e47 /src/FbWinFrame.hh | |
parent | da365bb4c99edf1a18e1f8db285f8c2dcee2c5e3 (diff) | |
download | fluxbox_pavel-fe4a7db228d69bc9a66ed948f218ef489b2cedaf.zip fluxbox_pavel-fe4a7db228d69bc9a66ed948f218ef489b2cedaf.tar.bz2 |
external tabs features and bugfixes
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r-- | src/FbWinFrame.hh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh index 5b6b287..10cd98f 100644 --- a/src/FbWinFrame.hh +++ b/src/FbWinFrame.hh | |||
@@ -59,6 +59,17 @@ public: | |||
59 | // STRICTINTERNAL means it doesn't go external automatically when no titlebar | 59 | // STRICTINTERNAL means it doesn't go external automatically when no titlebar |
60 | enum TabMode { NOTSET = 0, INTERNAL = 1, EXTERNAL }; | 60 | enum TabMode { NOTSET = 0, INTERNAL = 1, EXTERNAL }; |
61 | 61 | ||
62 | /// Toolbar placement on the screen | ||
63 | enum TabPlacement{ | ||
64 | // top and bottom placement | ||
65 | TOPLEFT = 1, BOTTOMLEFT, | ||
66 | TOPRIGHT, BOTTOMRIGHT | ||
67 | // left and right placement | ||
68 | // LEFTBOTTOM, LEFTTOP, | ||
69 | // RIGHTBOTTOM, RIGHTTOP | ||
70 | }; | ||
71 | |||
72 | |||
62 | typedef FbTk::TextButton *ButtonId; ///< defines a button id | 73 | typedef FbTk::TextButton *ButtonId; ///< defines a button id |
63 | 74 | ||
64 | /// create a top level window | 75 | /// create a top level window |
@@ -114,6 +125,7 @@ public: | |||
114 | inline void setFocusTitle(const std::string &str) { m_label.setText(str); } | 125 | inline void setFocusTitle(const std::string &str) { m_label.setText(str); } |
115 | void setDoubleClickTime(unsigned int time); | 126 | void setDoubleClickTime(unsigned int time); |
116 | bool setTabMode(TabMode tabmode); | 127 | bool setTabMode(TabMode tabmode); |
128 | inline void setTabPlacement(TabPlacement tabplacement) { m_tabplacement = tabplacement; alignTabs(); } | ||
117 | 129 | ||
118 | /// add a button to the left of the label | 130 | /// add a button to the left of the label |
119 | void addLeftButton(FbTk::Button *btn); | 131 | void addLeftButton(FbTk::Button *btn); |
@@ -222,7 +234,7 @@ public: | |||
222 | unsigned int titlebarHeight() const { return m_titlebar.height(); } | 234 | unsigned int titlebarHeight() const { return m_titlebar.height(); } |
223 | /// @return size of button | 235 | /// @return size of button |
224 | unsigned int buttonHeight() const; | 236 | unsigned int buttonHeight() const; |
225 | bool externalTabMode() const { return m_tabmode == EXTERNAL; } | 237 | bool externalTabMode() const { return m_tabmode == EXTERNAL && m_use_tabs; } |
226 | 238 | ||
227 | inline const FbTk::XLayerItem &layerItem() const { return m_layeritem; } | 239 | inline const FbTk::XLayerItem &layerItem() const { return m_layeritem; } |
228 | inline FbTk::XLayerItem &layerItem() { return m_layeritem; } | 240 | inline FbTk::XLayerItem &layerItem() { return m_layeritem; } |
@@ -355,6 +367,7 @@ private: | |||
355 | //@} | 367 | //@} |
356 | 368 | ||
357 | TabMode m_tabmode; | 369 | TabMode m_tabmode; |
370 | TabPlacement m_tabplacement; | ||
358 | 371 | ||
359 | bool m_need_render; | 372 | bool m_need_render; |
360 | int m_button_size; ///< size for all titlebar buttons | 373 | int m_button_size; ///< size for all titlebar buttons |