#include <ap_UnixDialog_Options.h>
Public Member Functions | |
AP_UnixDialog_Options (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_UnixDialog_Options (void) |
virtual void | runModal (XAP_Frame *pFrame) |
void | event_ChooseTransparentColor (void) |
virtual void | addPage (const XAP_NotebookDialog::Page *page) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
Protected Member Functions | |
GtkWidget * | _lookupWidget (tControl id) |
virtual void | _controlEnable (tControl id, bool value) |
SET_GATHER (NotebookPageNum, int) | |
SET_GATHER (ViewRulerUnits, UT_Dimension) | |
virtual bool | _gatherViewCursorBlink (void) |
virtual void | _setViewCursorBlink (const bool) |
SET_GATHER (AutoLoadPlugins, bool) | |
SET_GATHER (AutoSaveFile, bool) | |
virtual void | _gatherAutoSaveFilePeriod (UT_String &stRetVal) |
virtual void | _setAutoSaveFilePeriod (const UT_String &stPeriod) |
virtual void | _gatherAutoSaveFileExt (UT_String &stRetVal) |
virtual void | _setAutoSaveFileExt (const UT_String &stExt) |
SET_GATHER (OtherDirectionRtl, bool) | |
SET_GATHER (SpellCheckAsType, bool) | |
SET_GATHER (SpellHideErrors, bool) | |
SET_GATHER (SpellUppercase, bool) | |
SET_GATHER (SpellNumbers, bool) | |
SET_GATHER (SpellSuggest, bool) | |
SET_GATHER (SpellMainOnly, bool) | |
SET_GATHER (GrammarCheck, bool) | |
SET_GATHER (SmartQuotes, bool) | |
SET_GATHER (CustomSmartQuotes, bool) | |
SET_GATHER (OuterQuoteStyle, gint) | |
SET_GATHER (InnerQuoteStyle, gint) | |
SET_GATHER (PrefsAutoSave, bool) | |
SET_GATHER (ViewShowRuler, bool) | |
SET_GATHER (ViewShowStatusBar, bool) | |
SET_GATHER (ViewAll, bool) | |
SET_GATHER (ViewHiddenText, bool) | |
SET_GATHER (ViewUnprintable, bool) | |
SET_GATHER (EnableSmoothScrolling, bool) | |
SET_GATHER (EnableOverwrite, bool) | |
void | _setupUnitMenu (GtkWidget *optionmenu, const XAP_StringSet *pSS) |
void | _constructWindowContents (GtkBuilder *builder) |
GtkWidget * | _constructWindow (void) |
Protected Attributes | |
GtkWidget * | m_windowMain |
GtkWidget * | m_notebook |
GtkWidget * | m_buttonDefaults |
GtkWidget * | m_buttonClose |
GtkWidget * | m_pushbuttonNewTransparentColor |
GtkWidget * | m_menuUnits |
GtkWidget * | m_buttonColSel_Defaults |
GtkWidget * | m_checkbuttonAutoLoadPlugins |
GtkWidget * | m_checkbuttonAutoSaveFile |
GtkWidget * | m_tableAutoSaveFile |
GtkWidget * | m_textAutoSaveFilePeriod |
GtkWidget * | m_textAutoSaveFileExt |
GtkWidget * | m_checkbuttonOtherDirectionRtl |
GtkWidget * | m_checkbuttonSpellCheckAsType |
GtkWidget * | m_checkbuttonSpellHideErrors |
GtkWidget * | m_checkbuttonSpellUppercase |
GtkWidget * | m_checkbuttonSpellNumbers |
GtkWidget * | m_checkbuttonSpellSuggest |
GtkWidget * | m_checkbuttonSpellMainOnly |
GtkWidget * | m_checkbuttonGrammarCheck |
GtkWidget * | m_checkbuttonSmartQuotes |
GtkWidget * | m_checkbuttonCustomSmartQuotes |
GtkWidget * | m_omOuterQuoteStyle |
GtkWidget * | m_omInnerQuoteStyle |
GtkWidget * | m_checkbuttonEnableOverwrite |
bool | m_boolEnableSmoothScrolling |
bool | m_boolPrefsAutoSave |
bool | m_boolViewAll |
bool | m_boolViewHiddenText |
bool | m_boolViewShowRuler |
bool | m_boolViewShowStatusBar |
bool | m_boolViewUnprintable |
Private Member Functions | |
void | _setupSmartQuotesCombos (GtkWidget *optionmenu) |
virtual void | _storeWindowData (void) |
Static Private Member Functions | |
static void | s_control_changed (GtkWidget *, gpointer) |
static void | s_apply_clicked (GtkWidget *, gpointer) |
static void | s_defaults_clicked (GtkWidget *, gpointer) |
static void | s_chooseTransparentColor (GtkWidget *, gpointer) |
static void | s_real_color_changed (GdkRGBA &gdkcolor, AP_UnixDialog_Options *dlg) |
All this color selection code is stolen from the ap_UnixDialog_Background dialog. | |
static void | s_color_changed (GtkColorChooser *, GdkRGBA *, gpointer) |
static void | s_auto_save_toggled (GtkToggleButton *, gpointer) |
static void | s_checkbutton_toggle (GtkWidget *, gpointer) |
static gint | s_menu_item_activate (GtkWidget *, gpointer) |
Private Attributes | |
GSList * | m_extraPages |
AP_UnixDialog_Options::AP_UnixDialog_Options | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
AP_UnixDialog_Options::~AP_UnixDialog_Options | ( | void | ) | [virtual] |
GtkWidget * AP_UnixDialog_Options::_constructWindow | ( | void | ) | [protected] |
void AP_UnixDialog_Options::_constructWindowContents | ( | GtkBuilder * | builder | ) | [protected] |
References _setupSmartQuotesCombos(), _setupUnitMenu(), XAP_App::getStringSet(), label, localizeButtonMarkup(), localizeButtonUnderline(), localizeLabel(), localizeLabelMarkup(), localizeLabelUnderline(), m_buttonClose, m_buttonDefaults, m_checkbuttonAutoLoadPlugins, m_checkbuttonAutoSaveFile, m_checkbuttonCustomSmartQuotes, m_checkbuttonEnableOverwrite, m_checkbuttonGrammarCheck, m_checkbuttonOtherDirectionRtl, m_checkbuttonSmartQuotes, m_checkbuttonSpellCheckAsType, m_checkbuttonSpellHideErrors, m_checkbuttonSpellMainOnly, m_checkbuttonSpellNumbers, m_checkbuttonSpellSuggest, m_checkbuttonSpellUppercase, m_extraPages, m_menuUnits, m_notebook, m_omInnerQuoteStyle, m_omOuterQuoteStyle, XAP_Dialog::m_pApp, m_pushbuttonNewTransparentColor, m_tableAutoSaveFile, m_textAutoSaveFileExt, m_textAutoSaveFilePeriod, m_windowMain, s_auto_save_toggled(), s_checkbutton_toggle(), s_chooseTransparentColor(), XAP_NotebookDialog::Page::title, WID, and XAP_NotebookDialog::Page::widget.
Referenced by _constructWindow().
void AP_UnixDialog_Options::_controlEnable | ( | tControl | id, | |
bool | value | |||
) | [protected, virtual] |
References _lookupWidget().
void AP_UnixDialog_Options::_gatherAutoSaveFileExt | ( | UT_String & | stRetVal | ) | [protected, virtual] |
References UT_ASSERT.
void AP_UnixDialog_Options::_gatherAutoSaveFilePeriod | ( | UT_String & | stRetVal | ) | [protected, virtual] |
References m_textAutoSaveFilePeriod, and UT_ASSERT.
virtual bool AP_UnixDialog_Options::_gatherViewCursorBlink | ( | void | ) | [inline, protected, virtual] |
GtkWidget * AP_UnixDialog_Options::_lookupWidget | ( | tControl | id | ) | [protected] |
References AP_Dialog_Options::id_BUTTON_APPLY, AP_Dialog_Options::id_BUTTON_CANCEL, AP_Dialog_Options::id_BUTTON_DEFAULTS, AP_Dialog_Options::id_BUTTON_OK, AP_Dialog_Options::id_BUTTON_SAVE, AP_Dialog_Options::id_CHECK_AUTO_LOAD_PLUGINS, AP_Dialog_Options::id_CHECK_AUTO_SAVE_FILE, AP_Dialog_Options::id_CHECK_CUSTOM_SMART_QUOTES, AP_Dialog_Options::id_CHECK_ENABLE_OVERWRITE, AP_Dialog_Options::id_CHECK_ENABLE_SMOOTH_SCROLLING, AP_Dialog_Options::id_CHECK_GRAMMAR_CHECK, AP_Dialog_Options::id_CHECK_OTHER_DEFAULT_DIRECTION_RTL, AP_Dialog_Options::id_CHECK_PREFS_AUTO_SAVE, AP_Dialog_Options::id_CHECK_SMART_QUOTES_ENABLE, AP_Dialog_Options::id_CHECK_SPELL_CHECK_AS_TYPE, AP_Dialog_Options::id_CHECK_SPELL_HIDE_ERRORS, AP_Dialog_Options::id_CHECK_SPELL_MAIN_ONLY, AP_Dialog_Options::id_CHECK_SPELL_NUMBERS, AP_Dialog_Options::id_CHECK_SPELL_SUGGEST, AP_Dialog_Options::id_CHECK_SPELL_UPPERCASE, AP_Dialog_Options::id_CHECK_VIEW_ALL, AP_Dialog_Options::id_CHECK_VIEW_HIDDEN_TEXT, AP_Dialog_Options::id_CHECK_VIEW_SHOW_RULER, AP_Dialog_Options::id_CHECK_VIEW_SHOW_STATUS_BAR, AP_Dialog_Options::id_CHECK_VIEW_UNPRINTABLE, AP_Dialog_Options::id_COMBO_PREFS_SCHEME, AP_Dialog_Options::id_LIST_VIEW_INNER_QUOTE_STYLE, AP_Dialog_Options::id_LIST_VIEW_OUTER_QUOTE_STYLE, AP_Dialog_Options::id_LIST_VIEW_RULER_UNITS, AP_Dialog_Options::id_PUSH_CHOOSE_COLOR_FOR_TRANSPARENT, AP_Dialog_Options::id_TEXT_AUTO_SAVE_FILE_EXT, AP_Dialog_Options::id_TEXT_AUTO_SAVE_FILE_PERIOD, m_buttonDefaults, m_checkbuttonAutoLoadPlugins, m_checkbuttonAutoSaveFile, m_checkbuttonCustomSmartQuotes, m_checkbuttonEnableOverwrite, m_checkbuttonGrammarCheck, m_checkbuttonOtherDirectionRtl, m_checkbuttonSmartQuotes, m_checkbuttonSpellCheckAsType, m_checkbuttonSpellHideErrors, m_checkbuttonSpellMainOnly, m_checkbuttonSpellNumbers, m_checkbuttonSpellSuggest, m_checkbuttonSpellUppercase, m_menuUnits, m_omInnerQuoteStyle, m_omOuterQuoteStyle, m_pushbuttonNewTransparentColor, m_textAutoSaveFileExt, m_textAutoSaveFilePeriod, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by _constructWindow(), and _controlEnable().
void AP_UnixDialog_Options::_setAutoSaveFileExt | ( | const UT_String & | stExt | ) | [protected, virtual] |
References UT_String::c_str(), m_textAutoSaveFileExt, UT_String::size(), and UT_ASSERT.
void AP_UnixDialog_Options::_setAutoSaveFilePeriod | ( | const UT_String & | stPeriod | ) | [protected, virtual] |
References UT_String::c_str(), m_textAutoSaveFilePeriod, and UT_ASSERT.
void AP_UnixDialog_Options::_setupSmartQuotesCombos | ( | GtkWidget * | optionmenu | ) | [private] |
void AP_UnixDialog_Options::_setupUnitMenu | ( | GtkWidget * | optionmenu, | |
const XAP_StringSet * | pSS | |||
) | [protected] |
References AP_Dialog_Options::_getUnitMenuContent(), XAP_appendComboBoxTextAndInt(), and XAP_makeGtkComboBoxText().
Referenced by _constructWindowContents().
virtual void AP_UnixDialog_Options::_setViewCursorBlink | ( | const | bool | ) | [inline, protected, virtual] |
void AP_UnixDialog_Options::_storeWindowData | ( | void | ) | [private, virtual] |
void AP_UnixDialog_Options::addPage | ( | const XAP_NotebookDialog::Page * | page | ) | [virtual] |
Implements XAP_NotebookDialog.
References m_extraPages.
void AP_UnixDialog_Options::event_ChooseTransparentColor | ( | void | ) |
References abiDestroyWidget(), abiDialogSetTitle(), abiRunModalDialog(), cc, XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), m_buttonColSel_Defaults, AP_Dialog_Options::m_CurrentTransparentColor, XAP_Dialog::m_pApp, AP_Dialog_Options::m_pFrame, newDialogBuilder(), s, s_color_changed(), s_real_color_changed(), UT_parseColor(), and WID.
Referenced by s_chooseTransparentColor().
void AP_UnixDialog_Options::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
static void AP_UnixDialog_Options::s_apply_clicked | ( | GtkWidget * | , | |
gpointer | ||||
) | [static, private] |
void AP_UnixDialog_Options::s_auto_save_toggled | ( | GtkToggleButton * | togglebutton, | |
gpointer | data | |||
) | [static, private] |
References m_tableAutoSaveFile, and UT_ASSERT.
Referenced by _constructWindowContents().
void AP_UnixDialog_Options::s_checkbutton_toggle | ( | GtkWidget * | w, | |
gpointer | data | |||
) | [static, private] |
References AP_Dialog_Options::_enableDisableLogic(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by _constructWindowContents().
void AP_UnixDialog_Options::s_chooseTransparentColor | ( | GtkWidget * | widget, | |
gpointer | data | |||
) | [static, private] |
References event_ChooseTransparentColor(), UT_ASSERT, and UT_UNUSED.
Referenced by _constructWindowContents().
void AP_UnixDialog_Options::s_color_changed | ( | GtkColorChooser * | csel, | |
GdkRGBA * | color, | |||
gpointer | data | |||
) | [static, private] |
References s_real_color_changed(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by event_ChooseTransparentColor().
void AP_UnixDialog_Options::s_control_changed | ( | GtkWidget * | widget, | |
gpointer | data | |||
) | [static, private] |
References AP_Dialog_Options::_storeDataForControl(), id, AP_Dialog_Options::isInitialPopulationHappenning(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by _constructWindow(), and s_real_color_changed().
void AP_UnixDialog_Options::s_defaults_clicked | ( | GtkWidget * | widget, | |
gpointer | data | |||
) | [static, private] |
References AP_Dialog_Options::_event_SetDefaults(), AP_Dialog_Options::_populateWindowData(), UT_ASSERT, and UT_UNUSED.
Referenced by _constructWindow().
static gint AP_UnixDialog_Options::s_menu_item_activate | ( | GtkWidget * | , | |
gpointer | ||||
) | [static, private] |
void AP_UnixDialog_Options::s_real_color_changed | ( | GdkRGBA & | gdkcolor, | |
AP_UnixDialog_Options * | dlg | |||
) | [static, private] |
All this color selection code is stolen from the ap_UnixDialog_Background dialog.
References UT_HashColor::c_str(), m_buttonColSel_Defaults, AP_Dialog_Options::m_CurrentTransparentColor, m_pushbuttonNewTransparentColor, s_control_changed(), UT_HashColor::setColor(), and UT_DEBUGMSG.
Referenced by event_ChooseTransparentColor(), and s_color_changed().
AP_UnixDialog_Options::SET_GATHER | ( | CustomSmartQuotes | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | SmartQuotes | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | EnableOverwrite | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | SpellCheckAsType | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | OuterQuoteStyle | , | |
gint | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | SpellHideErrors | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | ViewUnprintable | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | AutoSaveFile | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | ViewRulerUnits | , | |
UT_Dimension | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | OtherDirectionRtl | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | SpellUppercase | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | GrammarCheck | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | NotebookPageNum | , | |
int | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | SpellNumbers | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | ViewShowStatusBar | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | EnableSmoothScrolling | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | ViewHiddenText | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | SpellMainOnly | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | SpellSuggest | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | AutoLoadPlugins | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | PrefsAutoSave | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | ViewShowRuler | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | ViewAll | , | |
bool | ||||
) | [protected] |
AP_UnixDialog_Options::SET_GATHER | ( | InnerQuoteStyle | , | |
gint | ||||
) | [protected] |
XAP_Dialog * AP_UnixDialog_Options::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_UnixDialog_Options().
bool AP_UnixDialog_Options::m_boolEnableSmoothScrolling [protected] |
bool AP_UnixDialog_Options::m_boolPrefsAutoSave [protected] |
bool AP_UnixDialog_Options::m_boolViewAll [protected] |
bool AP_UnixDialog_Options::m_boolViewHiddenText [protected] |
bool AP_UnixDialog_Options::m_boolViewShowRuler [protected] |
bool AP_UnixDialog_Options::m_boolViewShowStatusBar [protected] |
bool AP_UnixDialog_Options::m_boolViewUnprintable [protected] |
GtkWidget* AP_UnixDialog_Options::m_buttonClose [protected] |
Referenced by _constructWindowContents().
GtkWidget* AP_UnixDialog_Options::m_buttonColSel_Defaults [protected] |
Referenced by event_ChooseTransparentColor(), and s_real_color_changed().
GtkWidget* AP_UnixDialog_Options::m_buttonDefaults [protected] |
Referenced by _constructWindow(), _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonAutoLoadPlugins [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonAutoSaveFile [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonCustomSmartQuotes [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonEnableOverwrite [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonGrammarCheck [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonOtherDirectionRtl [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonSmartQuotes [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonSpellCheckAsType [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonSpellHideErrors [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonSpellMainOnly [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonSpellNumbers [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonSpellSuggest [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_checkbuttonSpellUppercase [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GSList* AP_UnixDialog_Options::m_extraPages [private] |
Referenced by _constructWindowContents(), addPage(), and runModal().
GtkWidget* AP_UnixDialog_Options::m_menuUnits [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_notebook [protected] |
Referenced by _constructWindowContents(), and runModal().
GtkWidget* AP_UnixDialog_Options::m_omInnerQuoteStyle [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_omOuterQuoteStyle [protected] |
Referenced by _constructWindowContents(), and _lookupWidget().
GtkWidget* AP_UnixDialog_Options::m_pushbuttonNewTransparentColor [protected] |
Referenced by _constructWindowContents(), _lookupWidget(), and s_real_color_changed().
GtkWidget* AP_UnixDialog_Options::m_tableAutoSaveFile [protected] |
Referenced by _constructWindowContents(), and s_auto_save_toggled().
GtkWidget* AP_UnixDialog_Options::m_textAutoSaveFileExt [protected] |
Referenced by _constructWindowContents(), _lookupWidget(), and _setAutoSaveFileExt().
GtkWidget* AP_UnixDialog_Options::m_textAutoSaveFilePeriod [protected] |
Referenced by _constructWindowContents(), _gatherAutoSaveFilePeriod(), _lookupWidget(), and _setAutoSaveFilePeriod().
GtkWidget* AP_UnixDialog_Options::m_windowMain [protected] |
Referenced by _constructWindowContents().