aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-11-20 19:01:45 (GMT)
committermarkt <markt>2007-11-20 19:01:45 (GMT)
commit08ebff4b319f51b4263cded0bb9c04103bcd9c3a (patch)
tree559206cfdcb63c85989882fcdaece3b3312e9d4b /src/FbWinFrame.hh
parent2e96a07cf74d66f204ce37daef2c9cc6a7c0b357 (diff)
downloadfluxbox-08ebff4b319f51b4263cded0bb9c04103bcd9c3a.zip
fluxbox-08ebff4b319f51b4263cded0bb9c04103bcd9c3a.tar.bz2
move titlebar click handling to FluxboxWindow, fix buttons getting ungrabbed
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r--src/FbWinFrame.hh14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh
index bdc2add..9bd29dd 100644
--- a/src/FbWinFrame.hh
+++ b/src/FbWinFrame.hh
@@ -88,10 +88,6 @@ public:
88 /// destroy frame 88 /// destroy frame
89 ~FbWinFrame(); 89 ~FbWinFrame();
90 90
91 /// setup actions for titlebar
92 bool setOnClickTitlebar(FbTk::RefCount<FbTk::Command> &cmd, int button_num,
93 bool double_click=false, bool pressed=false);
94
95 void hide(); 91 void hide();
96 void show(); 92 void show();
97 inline bool isVisible() const { return m_visible; } 93 inline bool isVisible() const { return m_visible; }
@@ -124,7 +120,6 @@ public:
124 /// set focus/unfocus style 120 /// set focus/unfocus style
125 void setFocus(bool newvalue); 121 void setFocus(bool newvalue);
126 inline void setFocusTitle(const std::string &str) { m_label.setText(str); } 122 inline void setFocusTitle(const std::string &str) { m_label.setText(str); }
127 void setDoubleClickTime(unsigned int time);
128 bool setTabMode(TabMode tabmode); 123 bool setTabMode(TabMode tabmode);
129 inline void updateTabProperties() { alignTabs(); } 124 inline void updateTabProperties() { alignTabs(); }
130 125
@@ -186,8 +181,6 @@ public:
186 @name Event handlers 181 @name Event handlers
187 */ 182 */
188 //@{ 183 //@{
189 void buttonPressEvent(XButtonEvent &event);
190 void buttonReleaseEvent(XButtonEvent &event);
191 void exposeEvent(XExposeEvent &event); 184 void exposeEvent(XExposeEvent &event);
192 void configureNotifyEvent(XConfigureEvent &event); 185 void configureNotifyEvent(XConfigureEvent &event);
193 void handleEvent(XEvent &event); 186 void handleEvent(XEvent &event);
@@ -377,13 +370,6 @@ private:
377 bool m_shaded; ///< wheter we're shaded or not 370 bool m_shaded; ///< wheter we're shaded or not
378 unsigned char m_focused_alpha; ///< focused alpha value 371 unsigned char m_focused_alpha; ///< focused alpha value
379 unsigned char m_unfocused_alpha; ///< unfocused alpha value 372 unsigned char m_unfocused_alpha; ///< unfocused alpha value
380 unsigned int m_double_click_time; ///< the time period that's considerd to be a double click
381 struct MouseButtonAction {
382 FbTk::RefCount<FbTk::Command> click; ///< what to do when we release mouse button
383 FbTk::RefCount<FbTk::Command> click_pressed; ///< what to do when we press mouse button
384 FbTk::RefCount<FbTk::Command> double_click; ///< what to do when we double click
385 };
386 MouseButtonAction m_commands[5]; ///< hardcoded to five ... //!! TODO, change this
387 373
388 class ThemeListener: public FbTk::Observer { 374 class ThemeListener: public FbTk::Observer {
389 public: 375 public: