diff options
author | fluxgen <fluxgen> | 2002-05-17 11:02:30 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-05-17 11:02:30 (GMT) |
commit | d210e29fce43cc003e6b845fa90182051c39c8a9 (patch) | |
tree | ed9d6deb472f14cd8dfda0acef50d9ef80ad3ac2 /src/Screen.hh | |
parent | bda94a6c1acea846e2269512fa601eceef80b737 (diff) | |
download | fluxbox-d210e29fce43cc003e6b845fa90182051c39c8a9.zip fluxbox-d210e29fce43cc003e6b845fa90182051c39c8a9.tar.bz2 |
removed const on return values of fundamental types and changed strftime_format to std::string
Diffstat (limited to 'src/Screen.hh')
-rw-r--r-- | src/Screen.hh | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/Screen.hh b/src/Screen.hh index 55d8c8b..a402c87 100644 --- a/src/Screen.hh +++ b/src/Screen.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.hh,v 1.33 2002/05/08 14:25:40 fluxgen Exp $ | 25 | // $Id: Screen.hh,v 1.34 2002/05/17 11:02:30 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef SCREEN_HH | 27 | #ifndef SCREEN_HH |
28 | #define SCREEN_HH | 28 | #define SCREEN_HH |
@@ -95,17 +95,17 @@ public: | |||
95 | inline Rootmenu *getRootmenu(void) { return rootmenu; } | 95 | inline Rootmenu *getRootmenu(void) { return rootmenu; } |
96 | inline std::string &getRootCommand(void) { return *resource.rootcommand; } | 96 | inline std::string &getRootCommand(void) { return *resource.rootcommand; } |
97 | #ifdef SLIT | 97 | #ifdef SLIT |
98 | inline const bool isSlitOnTop(void) const { return resource.slit_on_top; } | 98 | inline bool isSlitOnTop(void) const { return resource.slit_on_top; } |
99 | inline const bool doSlitAutoHide(void) const { return resource.slit_auto_hide; } | 99 | inline bool doSlitAutoHide(void) const { return resource.slit_auto_hide; } |
100 | inline Slit *getSlit(void) { return slit; } | 100 | inline Slit *getSlit(void) { return slit; } |
101 | inline const int getSlitPlacement(void) const { return resource.slit_placement; } | 101 | inline int getSlitPlacement(void) const { return resource.slit_placement; } |
102 | inline const int getSlitDirection(void) const { return resource.slit_direction; } | 102 | inline int getSlitDirection(void) const { return resource.slit_direction; } |
103 | inline void saveSlitPlacement(int p) { resource.slit_placement = p; } | 103 | inline void saveSlitPlacement(int p) { resource.slit_placement = p; } |
104 | inline void saveSlitDirection(int d) { resource.slit_direction = d; } | 104 | inline void saveSlitDirection(int d) { resource.slit_direction = d; } |
105 | inline void saveSlitOnTop(bool t) { resource.slit_on_top = t; } | 105 | inline void saveSlitOnTop(bool t) { resource.slit_on_top = t; } |
106 | inline void saveSlitAutoHide(bool t) { resource.slit_auto_hide = t; } | 106 | inline void saveSlitAutoHide(bool t) { resource.slit_auto_hide = t; } |
107 | #ifdef XINERAMA | 107 | #ifdef XINERAMA |
108 | inline const unsigned int getSlitOnHead(void) const { return resource.slit_on_head; } | 108 | inline unsigned int getSlitOnHead(void) const { return resource.slit_on_head; } |
109 | inline void saveSlitOnHead(unsigned int h) { resource.slit_on_head = h; } | 109 | inline void saveSlitOnHead(unsigned int h) { resource.slit_on_head = h; } |
110 | #endif // XINERAMA | 110 | #endif // XINERAMA |
111 | 111 | ||
@@ -118,22 +118,22 @@ public: | |||
118 | 118 | ||
119 | inline Workspacemenu *getWorkspacemenu(void) { return workspacemenu; } | 119 | inline Workspacemenu *getWorkspacemenu(void) { return workspacemenu; } |
120 | 120 | ||
121 | inline const unsigned int getHandleWidth(void) const { return theme->getHandleWidth(); } | 121 | inline unsigned int getHandleWidth(void) const { return theme->getHandleWidth(); } |
122 | inline const unsigned int getBevelWidth(void) const { return theme->getBevelWidth(); } | 122 | inline unsigned int getBevelWidth(void) const { return theme->getBevelWidth(); } |
123 | inline const unsigned int getFrameWidth(void) const { return theme->getFrameWidth(); } | 123 | inline unsigned int getFrameWidth(void) const { return theme->getFrameWidth(); } |
124 | inline const unsigned int getBorderWidth(void) const { return theme->getBorderWidth(); } | 124 | inline unsigned int getBorderWidth(void) const { return theme->getBorderWidth(); } |
125 | inline const unsigned int getBorderWidth2x(void) const { return theme->getBorderWidth()*2; } | 125 | inline unsigned int getBorderWidth2x(void) const { return theme->getBorderWidth()*2; } |
126 | inline const unsigned int getCurrentWorkspaceID() const { return current_workspace->workspaceID(); } | 126 | inline unsigned int getCurrentWorkspaceID() const { return current_workspace->workspaceID(); } |
127 | 127 | ||
128 | typedef std::vector<FluxboxWindow *> Icons; | 128 | typedef std::vector<FluxboxWindow *> Icons; |
129 | inline const unsigned int getCount(void) const { return workspacesList.size(); } | 129 | inline unsigned int getCount(void) const { return workspacesList.size(); } |
130 | inline const unsigned int getIconCount(void) const { return iconList.size(); } | 130 | inline unsigned int getIconCount(void) const { return iconList.size(); } |
131 | inline Icons &getIconList(void) { return iconList; } | 131 | inline Icons &getIconList(void) { return iconList; } |
132 | 132 | ||
133 | inline const int getNumberOfWorkspaces(void) { return *resource.workspaces; } | 133 | inline int getNumberOfWorkspaces(void) { return *resource.workspaces; } |
134 | inline const Toolbar::Placement getToolbarPlacement(void) { return *resource.toolbar_placement; } | 134 | inline const Toolbar::Placement getToolbarPlacement(void) { return *resource.toolbar_placement; } |
135 | #ifdef XINERAMA | 135 | #ifdef XINERAMA |
136 | inline const int getToolbarOnHead(void) { return *resource.toolbar_on_head; } | 136 | inline int getToolbarOnHead(void) { return *resource.toolbar_on_head; } |
137 | #endif // XINERAMA | 137 | #endif // XINERAMA |
138 | inline int getToolbarWidthPercent(void) { return *resource.toolbar_width_percent; } | 138 | inline int getToolbarWidthPercent(void) { return *resource.toolbar_width_percent; } |
139 | inline int getPlacementPolicy(void) const { return resource.placement_policy; } | 139 | inline int getPlacementPolicy(void) const { return resource.placement_policy; } |
@@ -182,12 +182,12 @@ public: | |||
182 | 182 | ||
183 | 183 | ||
184 | #ifdef HAVE_STRFTIME | 184 | #ifdef HAVE_STRFTIME |
185 | inline char *getStrftimeFormat(void) { return resource.strftime_format; } | 185 | inline const char *getStrftimeFormat(void) { return resource.strftime_format.c_str(); } |
186 | void saveStrftimeFormat(char *); | 186 | void saveStrftimeFormat(const char *format); |
187 | #else // !HAVE_STRFTIME | 187 | #else // !HAVE_STRFTIME |
188 | inline int getDateFormat(void) { return resource.date_format; } | 188 | inline int getDateFormat(void) { return resource.date_format; } |
189 | inline void saveDateFormat(int f) { resource.date_format = f; } | 189 | inline void saveDateFormat(int f) { resource.date_format = f; } |
190 | inline Bool isClock24Hour(void) { return resource.clock24hour; } | 190 | inline bool isClock24Hour(void) { return resource.clock24hour; } |
191 | inline void saveClock24Hour(Bool c) { resource.clock24hour = c; } | 191 | inline void saveClock24Hour(Bool c) { resource.clock24hour = c; } |
192 | #endif // HAVE_STRFTIME | 192 | #endif // HAVE_STRFTIME |
193 | 193 | ||
@@ -329,7 +329,7 @@ private: | |||
329 | 329 | ||
330 | 330 | ||
331 | #ifdef HAVE_STRFTIME | 331 | #ifdef HAVE_STRFTIME |
332 | char *strftime_format; | 332 | std::string strftime_format; |
333 | #else // !HAVE_STRFTIME | 333 | #else // !HAVE_STRFTIME |
334 | Bool clock24hour; | 334 | Bool clock24hour; |
335 | int date_format; | 335 | int date_format; |