diff options
author | fluxgen <fluxgen> | 2003-12-04 23:02:23 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-04 23:02:23 (GMT) |
commit | 95d565ba62df3bd98aa026a98b9d3d6d8d6a509e (patch) | |
tree | 0a4f59b0efec4d1f9cb911255b8a3d461860aa45 /src/ClockTool.hh | |
parent | 29beda2d6be3eb6ccf849d7454a804fb966e7ccb (diff) | |
download | fluxbox-95d565ba62df3bd98aa026a98b9d3d6d8d6a509e.zip fluxbox-95d565ba62df3bd98aa026a98b9d3d6d8d6a509e.tar.bz2 |
toggle clock format via menu
Diffstat (limited to 'src/ClockTool.hh')
-rw-r--r-- | src/ClockTool.hh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ClockTool.hh b/src/ClockTool.hh index 9978f27..70f80cc 100644 --- a/src/ClockTool.hh +++ b/src/ClockTool.hh | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: ClockTool.hh,v 1.3 2003/08/19 16:12:43 fluxgen Exp $ | 23 | // $Id: ClockTool.hh,v 1.4 2003/12/04 23:02:23 fluxgen Exp $ |
24 | 24 | ||
25 | #ifndef CLOCKTOOL_HH | 25 | #ifndef CLOCKTOOL_HH |
26 | #define CLOCKTOOL_HH | 26 | #define CLOCKTOOL_HH |
@@ -41,11 +41,12 @@ class BScreen; | |||
41 | namespace FbTk { | 41 | namespace FbTk { |
42 | class ImageControl; | 42 | class ImageControl; |
43 | class Subject; | 43 | class Subject; |
44 | class Menu; | ||
44 | } | 45 | } |
45 | 46 | ||
46 | class ClockTool:public ToolbarItem, public FbTk::Observer { | 47 | class ClockTool:public ToolbarItem, public FbTk::Observer { |
47 | public: | 48 | public: |
48 | ClockTool(const FbTk::FbWindow &parent, ToolTheme &theme, BScreen &screen); | 49 | ClockTool(const FbTk::FbWindow &parent, ToolTheme &theme, BScreen &screen, FbTk::Menu &menu); |
49 | virtual ~ClockTool(); | 50 | virtual ~ClockTool(); |
50 | 51 | ||
51 | void move(int x, int y); | 52 | void move(int x, int y); |
@@ -55,9 +56,12 @@ public: | |||
55 | 56 | ||
56 | void show(); | 57 | void show(); |
57 | void hide(); | 58 | void hide(); |
59 | void setTimeFormat(const std::string &format); | ||
60 | // accessors | ||
58 | unsigned int width() const; | 61 | unsigned int width() const; |
59 | unsigned int height() const; | 62 | unsigned int height() const; |
60 | unsigned int borderWidth() const; | 63 | unsigned int borderWidth() const; |
64 | inline const std::string &timeFormat() const { return *m_timeformat; } | ||
61 | private: | 65 | private: |
62 | void updateTime(); | 66 | void updateTime(); |
63 | void update(FbTk::Subject *subj); | 67 | void update(FbTk::Subject *subj); |