diff options
author | fluxgen <fluxgen> | 2005-05-02 01:17:08 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2005-05-02 01:17:08 (GMT) |
commit | d3362370f5e8f440d2233629cc57e6f355b17b11 (patch) | |
tree | f6df824ebb52664c4061afc563f83bc4d116fee1 /src/FbWinFrame.hh | |
parent | 55f62bc5cc64f0b8c41f7db343ecd871c250ae8f (diff) | |
download | fluxbox-d3362370f5e8f440d2233629cc57e6f355b17b11.zip fluxbox-d3362370f5e8f440d2233629cc57e6f355b17b11.tar.bz2 |
cleaning, create and delete tabs with FbWinFrame createTab/removeTab
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r-- | src/FbWinFrame.hh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh index 9bff974..1335694 100644 --- a/src/FbWinFrame.hh +++ b/src/FbWinFrame.hh | |||
@@ -51,6 +51,7 @@ class Texture; | |||
51 | /// (see: <a href="fluxbox_fbwinframe.png">image</a>) | 51 | /// (see: <a href="fluxbox_fbwinframe.png">image</a>) |
52 | class FbWinFrame:public FbTk::EventHandler { | 52 | class FbWinFrame:public FbTk::EventHandler { |
53 | public: | 53 | public: |
54 | typedef FbTk::TextButton *ButtonId; ///< defines a button id | ||
54 | 55 | ||
55 | /// create a top level window | 56 | /// create a top level window |
56 | FbWinFrame(FbWinFrameTheme &theme, FbTk::ImageControl &imgctrl, | 57 | FbWinFrame(FbWinFrameTheme &theme, FbTk::ImageControl &imgctrl, |
@@ -81,10 +82,14 @@ public: | |||
81 | void resizeForClient(unsigned int width, unsigned int height, int win_gravity=ForgetGravity); | 82 | void resizeForClient(unsigned int width, unsigned int height, int win_gravity=ForgetGravity); |
82 | 83 | ||
83 | // for when there needs to be an atomic move+resize operation | 84 | // for when there needs to be an atomic move+resize operation |
84 | void moveResizeForClient(int x, int y, unsigned int width, unsigned int height, bool move = true, bool resize = true, int win_gravity=ForgetGravity); | 85 | void moveResizeForClient(int x, int y, |
86 | unsigned int width, unsigned int height, | ||
87 | bool move = true, bool resize = true, int win_gravity=ForgetGravity); | ||
85 | 88 | ||
86 | // can elect to ignore move or resize (mainly for use of move/resize individual functions | 89 | // can elect to ignore move or resize (mainly for use of move/resize individual functions |
87 | void moveResize(int x, int y, unsigned int width, unsigned int height, bool move = true, bool resize = true, int win_gravity=ForgetGravity); | 90 | void moveResize(int x, int y, |
91 | unsigned int width, unsigned int height, | ||
92 | bool move = true, bool resize = true, int win_gravity=ForgetGravity); | ||
88 | 93 | ||
89 | /// some outside move/resize happened, and we need to notify all of our windows | 94 | /// some outside move/resize happened, and we need to notify all of our windows |
90 | /// in case of transparency | 95 | /// in case of transparency |
@@ -101,10 +106,11 @@ public: | |||
101 | void addRightButton(FbTk::Button *btn); | 106 | void addRightButton(FbTk::Button *btn); |
102 | /// remove all buttons from titlebar | 107 | /// remove all buttons from titlebar |
103 | void removeAllButtons(); | 108 | void removeAllButtons(); |
104 | /// adds a button to label window | 109 | /// adds a button to label window with specified title and command |
105 | void addLabelButton(FbTk::TextButton &btn); | 110 | ButtonId createTab(const std::string &title, FbTk::Command *cmd); |
111 | // void addLabelButton(FbTk::TextButton &btn); | ||
106 | /// removes a specific button from label window | 112 | /// removes a specific button from label window |
107 | void removeLabelButton(FbTk::TextButton &btn); | 113 | void removeTab(ButtonId id); |
108 | /// move label button to the left | 114 | /// move label button to the left |
109 | void moveLabelButtonLeft(const FbTk::TextButton &btn); | 115 | void moveLabelButtonLeft(const FbTk::TextButton &btn); |
110 | /// move label button to the right | 116 | /// move label button to the right |