createCompressionPage(tx, ty, tw, th);
createSecurityPage(tx, ty, tw, th);
createInputPage(tx, ty, tw, th);
+ createScreenPage(tx, ty, tw, th);
createMiscPage(tx, ty, tw, th);
}
if (!strcmp(getMenuKeySymbols()[i].name, menuKeyBuf))
menuKeyChoice->value(i + 1);
+ /* Screen */
+ fullScreenCheckbox->value(fullScreen);
+
/* Misc. */
sharedCheckbox->value(shared);
- fullScreenCheckbox->value(fullScreen);
dotCursorCheckbox->value(dotWhenNoCursor);
}
menuKey.setParam(menuKeyChoice->text());
}
+ /* Screen */
+ fullScreen.setParam(fullScreenCheckbox->value());
+
/* Misc. */
shared.setParam(sharedCheckbox->value());
- fullScreen.setParam(fullScreenCheckbox->value());
dotWhenNoCursor.setParam(dotCursorCheckbox->value());
std::map<OptionsCallback*, void*>::const_iterator iter;
}
-void OptionsDialog::createMiscPage(int tx, int ty, int tw, int th)
+void OptionsDialog::createScreenPage(int tx, int ty, int tw, int th)
{
- Fl_Group *group = new Fl_Group(tx, ty, tw, th, _("Misc."));
+ Fl_Group *group = new Fl_Group(tx, ty, tw, th, _("Screen"));
tx += OUTER_MARGIN;
ty += OUTER_MARGIN;
- sharedCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
+ fullScreenCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
CHECK_MIN_WIDTH,
CHECK_HEIGHT,
- _("Shared (don't disconnect other viewers)")));
+ _("Full-screen mode")));
ty += CHECK_HEIGHT + TIGHT_MARGIN;
- fullScreenCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
+ group->end();
+}
+
+
+void OptionsDialog::createMiscPage(int tx, int ty, int tw, int th)
+{
+ Fl_Group *group = new Fl_Group(tx, ty, tw, th, _("Misc."));
+
+ tx += OUTER_MARGIN;
+ ty += OUTER_MARGIN;
+
+ sharedCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
CHECK_MIN_WIDTH,
CHECK_HEIGHT,
- _("Full-screen mode")));
+ _("Shared (don't disconnect other viewers)")));
ty += CHECK_HEIGHT + TIGHT_MARGIN;
dotCursorCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
void createCompressionPage(int tx, int ty, int tw, int th);
void createSecurityPage(int tx, int ty, int tw, int th);
void createInputPage(int tx, int ty, int tw, int th);
+ void createScreenPage(int tx, int ty, int tw, int th);
void createMiscPage(int tx, int ty, int tw, int th);
static void handleAutoselect(Fl_Widget *widget, void *data);
Fl_Check_Button *systemKeysCheckbox;
Fl_Choice *menuKeyChoice;
+ /* Screen */
+ Fl_Check_Button *fullScreenCheckbox;
+
/* Misc. */
Fl_Check_Button *sharedCheckbox;
- Fl_Check_Button *fullScreenCheckbox;
Fl_Check_Button *dotCursorCheckbox;
};