diff options
author | fluxgen <fluxgen> | 2002-10-15 10:57:28 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-10-15 10:57:28 (GMT) |
commit | 7c43812c04447a81b42f1da9120d825fb86a0f32 (patch) | |
tree | 370cda5a829a466100806316212b4226254240b1 /src/Configmenu.cc | |
parent | 4acb333856c159ffcf1b252930e944ca6b8083bb (diff) | |
download | fluxbox_pavel-7c43812c04447a81b42f1da9120d825fb86a0f32.zip fluxbox_pavel-7c43812c04447a81b42f1da9120d825fb86a0f32.tar.bz2 |
antialias option
Diffstat (limited to 'src/Configmenu.cc')
-rw-r--r-- | src/Configmenu.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc index 04f7a78..2fed074 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc | |||
@@ -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: Configmenu.cc,v 1.17 2002/10/15 09:49:51 fluxgen Exp $ | 25 | // $Id: Configmenu.cc,v 1.18 2002/10/15 10:57:28 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Configmenu.hh" | 27 | #include "Configmenu.hh" |
28 | 28 | ||
@@ -33,7 +33,7 @@ | |||
33 | #include "Tab.hh" | 33 | #include "Tab.hh" |
34 | 34 | ||
35 | enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, | 35 | enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, |
36 | CMENU_DESKTOP_WHEELING, CMENU_WORKSPACE_WARPING, CMENU_TAB_ROTATE=21}; | 36 | CMENU_DESKTOP_WHEELING, CMENU_WORKSPACE_WARPING, CMENU_ANTIALIAS, CMENU_TAB_ROTATE=21}; |
37 | 37 | ||
38 | 38 | ||
39 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr), | 39 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr), |
@@ -92,6 +92,8 @@ m_tabmenu(scr) { | |||
92 | insert(i18n->getMessage( | 92 | insert(i18n->getMessage( |
93 | ConfigmenuSet, ConfigmenuDesktopWheeling, | 93 | ConfigmenuSet, ConfigmenuDesktopWheeling, |
94 | "Desktop MouseWheel Switching"), CMENU_DESKTOP_WHEELING); | 94 | "Desktop MouseWheel Switching"), CMENU_DESKTOP_WHEELING); |
95 | //TODO: really need i18n for this? | ||
96 | insert("Antialias", CMENU_ANTIALIAS); | ||
95 | 97 | ||
96 | update(); | 98 | update(); |
97 | setItemSelected(8, screen()->doMaxOverSlit()); | 99 | setItemSelected(8, screen()->doMaxOverSlit()); |
@@ -106,6 +108,7 @@ m_tabmenu(scr) { | |||
106 | setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen()->isSloppyWindowGrouping()); | 108 | setItemSelected(CMENU_SLOPPY_WIN_GROUP, screen()->isSloppyWindowGrouping()); |
107 | setItemSelected(CMENU_WORKSPACE_WARPING, screen()->isWorkspaceWarping()); | 109 | setItemSelected(CMENU_WORKSPACE_WARPING, screen()->isWorkspaceWarping()); |
108 | setItemSelected(CMENU_DESKTOP_WHEELING, screen()->isDesktopWheeling()); | 110 | setItemSelected(CMENU_DESKTOP_WHEELING, screen()->isDesktopWheeling()); |
111 | setItemSelected(CMENU_ANTIALIAS, screen()->antialias()); | ||
109 | } | 112 | } |
110 | 113 | ||
111 | 114 | ||
@@ -194,7 +197,11 @@ void Configmenu::itemSelected(int button, unsigned int index) { | |||
194 | screen()->reconfigure(); | 197 | screen()->reconfigure(); |
195 | } | 198 | } |
196 | break; | 199 | break; |
197 | 200 | case CMENU_ANTIALIAS: | |
201 | // Note: no need to reconfigure here, screen reconfigures if antialias changes | ||
202 | screen()->setAntialias(!screen()->antialias()); | ||
203 | setItemSelected(index, screen()->antialias()); | ||
204 | break; | ||
198 | } | 205 | } |
199 | //save resources | 206 | //save resources |
200 | Fluxbox::instance()->save_rc(); | 207 | Fluxbox::instance()->save_rc(); |