#include <ap_UnixDialog_Lists.h>
enum AP_UnixDialog_Lists::ResponseId [private] |
AP_UnixDialog_Lists::AP_UnixDialog_Lists | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References m_bAutoUpdate_happening_now, m_bDontUpdate, m_bManualListStyle, m_pAutoUpdateLists, m_pPreviewWidget, and m_wMainWindow.
Referenced by static_constructor().
AP_UnixDialog_Lists::~AP_UnixDialog_Lists | ( | void | ) | [virtual] |
References DELETEP, and m_pPreviewWidget.
void AP_UnixDialog_Lists::_connectSignals | ( | void | ) | [protected] |
References m_iAlignListSpinID, m_iDecimalEntryID, m_iDelimEntryID, m_iIndentAlignSpinID, m_iStyleBoxID, m_oAlignList_adj, m_oIndentAlign_adj, m_oStartSpin_adj, m_wApply, m_wClose, m_wCustomLabel, m_wDecimalEntry, m_wDelimEntry, m_wFontOptions, m_wListStyleBox, m_wListTypeBox, m_wMainWindow, m_wPreviewArea, s_applyClicked(), s_closeClicked(), s_customChanged(), s_delete_clicked(), s_destroy_clicked(), s_preview_draw(), s_styleChanged(), s_typeChanged(), and s_valueChanged().
Referenced by _constructWindow().
GtkWidget * AP_UnixDialog_Lists::_constructWindow | ( | void | ) | [protected, virtual] |
References _connectSignals(), _constructWindowContents(), abiAddButton(), abiDialogNew(), BUTTON_APPLY, BUTTON_CANCEL, BUTTON_CLOSE, BUTTON_OK, AP_Dialog_Modeless::ConstructWindowName(), XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), AP_Dialog_Lists::getWindowName(), AP_Dialog_Lists::isModal(), m_wApply, m_wClose, m_wMainWindow, and s.
Referenced by runModal(), and runModeless().
GtkWidget * AP_UnixDialog_Lists::_constructWindowContents | ( | void | ) | [protected] |
References _fillBulletedStyleMenu(), _fillFontMenu(), _fillNoneStyleMenu(), _fillNumberedStyleMenu(), UT_GenericVector< T >::addItem(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), AP_Dialog_Lists::isModal(), localizeLabelMarkup(), m_iPageFold, m_iPageLists, m_oAlignList_adj, m_oIndentAlign_adj, m_oStartSpin_adj, XAP_Dialog::m_pApp, m_vecFoldCheck, m_vecFoldID, m_wAlignListSpin, m_wApplyCurrent, m_wContents, m_wCustomFrame, m_wCustomLabel, m_wCustomTable, m_wDecimalEntry, m_wDelimEntry, m_wFontOptions, m_wFontOptions_menu, m_wIndentAlignSpin, m_wListStyle_menu, m_wListStyleBox, m_wListStyleBulleted_menu, m_wListStyleNone_menu, m_wListStyleNumbered_menu, m_wListType_menu, m_wListTypeBox, m_wMainWindow, m_wPreviewArea, m_wRadioGroup, m_wStartNew_label, m_wStartNewList, m_wStartSpin, m_wStartSub_label, m_wStartSubList, XAP_GtkObjectHolder< T >::obj(), s, and s_FoldCheck_changed().
Referenced by _constructWindow().
void AP_UnixDialog_Lists::_fillBulletedStyleMenu | ( | GtkListStore * | listmenu | ) | [protected] |
References addToStore(), ARROWHEAD_LIST, BOX_LIST, BULLETED_LIST, DASHED_LIST, DIAMOND_LIST, XAP_Dialog::getApp(), XAP_App::getStringSet(), HAND_LIST, HEART_LIST, IMPLIES_LIST, SQUARE_LIST, STAR_LIST, TICK_LIST, and TRIANGLE_LIST.
Referenced by _constructWindowContents().
void AP_UnixDialog_Lists::_fillFontMenu | ( | GtkListStore * | store | ) | [protected] |
References _getGlistFonts(), addToStore(), XAP_Dialog::getApp(), XAP_App::getStringSet(), and m_glFonts.
Referenced by _constructWindowContents().
void AP_UnixDialog_Lists::_fillNoneStyleMenu | ( | GtkListStore * | listmenu | ) | [protected] |
References addToStore(), XAP_Dialog::getApp(), XAP_App::getStringSet(), and NOT_A_LIST.
Referenced by _constructWindowContents().
void AP_UnixDialog_Lists::_fillNumberedStyleMenu | ( | GtkListStore * | listmenu | ) | [protected] |
References addToStore(), ARABICNUMBERED_LIST, XAP_Dialog::getApp(), XAP_App::getStringSet(), HEBREW_LIST, LOWERCASE_LIST, LOWERROMAN_LIST, NUMBERED_LIST, UPPERCASE_LIST, and UPPERROMAN_LIST.
Referenced by _constructWindowContents().
void AP_UnixDialog_Lists::_gatherData | ( | void | ) | [protected] |
This method reads the various elements in the Customize box and loads the XP member variables with them
References AP_Dialog_Lists::copyCharToDecimal(), AP_Dialog_Lists::copyCharToDelim(), AP_Dialog_Lists::copyCharToFont(), gchar, fl_DocSectionLayout::getActualColumnWidth(), AP_Dialog_Lists::getBlock(), fp_Container::getContainer(), fl_BlockLayout::getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), fp_ContainerObject::getWidth(), m_glFonts, m_wAlignListSpin, m_wDecimalEntry, m_wDelimEntry, m_wFontOptions, m_wIndentAlignSpin, and m_wStartSpin.
Referenced by setXPFromLocal().
GtkWidget* AP_UnixDialog_Lists::_getApplyButton | ( | void | ) | [inline, protected] |
References m_wApply.
GtkWidget* AP_UnixDialog_Lists::_getCloseButton | ( | void | ) | [inline, protected] |
References m_wClose.
void AP_UnixDialog_Lists::_getGlistFonts | ( | std::vector< std::string > & | glFonts | ) | [protected] |
References GR_CairoGraphics::getAllFontNames(), XAP_Dialog::getApp(), XAP_App::getGraphicsFactory(), and UT_return_if_fail.
Referenced by _fillFontMenu().
GtkWidget* AP_UnixDialog_Lists::_getMainWindow | ( | void | ) | [inline, protected] |
References m_wMainWindow.
void AP_UnixDialog_Lists::_setApplyButton | ( | GtkWidget * | w | ) | [inline, protected] |
References m_wApply.
void AP_UnixDialog_Lists::_setCloseButton | ( | GtkWidget * | w | ) | [inline, protected] |
References m_wClose.
void AP_UnixDialog_Lists::_setMainWindow | ( | GtkWidget * | w | ) | [inline, protected] |
References m_wMainWindow.
void AP_UnixDialog_Lists::_setRadioButtonLabels | ( | void | ) | [protected] |
References XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), XAP_Dialog::m_pApp, m_wStartNew_label, m_wStartSub_label, AP_Dialog_Lists::PopulateDialogData(), and s.
Referenced by updateFromDocument().
void AP_UnixDialog_Lists::activate | ( | void | ) | [virtual] |
Implements XAP_Dialog_Modeless.
References AP_Dialog_Modeless::ConstructWindowName(), AP_Dialog_Lists::getWindowName(), m_bDontUpdate, m_wMainWindow, updateDialog(), and UT_ASSERT.
void AP_UnixDialog_Lists::applyClicked | ( | void | ) |
References AP_Dialog_Lists::a_OK, AP_Dialog_Lists::Apply(), AP_Dialog_Lists::isModal(), previewExposed(), AP_Dialog_Lists::setAnswer(), and setXPFromLocal().
Referenced by s_applyClicked().
void AP_UnixDialog_Lists::autoupdateLists | ( | UT_Worker * | pTimer | ) | [static] |
References AP_Dialog_Lists::getAvView(), UT_Worker::getInstanceData(), AP_Dialog_Lists::getTick(), AV_View::getTick(), AP_Dialog_Lists::isDirty(), m_bAutoUpdate_happening_now, m_bDestroy_says_stopupdating, previewExposed(), AP_Dialog_Lists::setTick(), updateDialog(), and UT_ASSERT.
Referenced by runModeless().
void AP_UnixDialog_Lists::closeClicked | ( | void | ) |
References AP_Dialog_Lists::a_QUIT, abiDestroyWidget(), m_wMainWindow, and AP_Dialog_Lists::setAnswer().
Referenced by s_closeClicked().
void AP_UnixDialog_Lists::customChanged | ( | void | ) |
References AP_Dialog_Lists::fillUncustomizedValues(), and loadXPDataIntoLocal().
Referenced by s_customChanged().
void AP_UnixDialog_Lists::destroy | ( | void | ) | [virtual] |
Implements XAP_Dialog_Modeless.
References AP_Dialog_Lists::a_CLOSE, AP_Dialog_Lists::a_QUIT, abiDestroyWidget(), DELETEP, AP_Dialog_Lists::isModal(), m_bDestroy_says_stopupdating, m_glFonts, m_pAutoUpdateLists, m_pPreviewWidget, m_wMainWindow, XAP_Dialog_Modeless::modeless_cleanup(), AP_Dialog_Lists::setAnswer(), UT_Timer::stop(), and UT_ASSERT.
Referenced by s_destroy_clicked().
bool AP_UnixDialog_Lists::dontUpdate | ( | void | ) |
References m_bDontUpdate.
Referenced by s_typeChanged(), s_valueChanged(), and styleChanged().
bool AP_UnixDialog_Lists::isPageLists | ( | void | ) | [virtual] |
Implements AP_Dialog_Lists.
References AP_Dialog_Lists::isModal(), m_iPageLists, and m_wContents.
void AP_UnixDialog_Lists::loadXPDataIntoLocal | ( | void | ) |
References BULLETED_LIST, AP_Dialog_Lists::getDecimal(), AP_Dialog_Lists::getDelim(), AP_Dialog_Lists::getFont(), IS_BULLETED_LIST_TYPE, m_bDontUpdate, m_glFonts, m_iAlignListSpinID, m_iDecimalEntryID, m_iDelimEntryID, m_iIndentAlignSpinID, m_oAlignList_adj, m_oIndentAlign_adj, m_wAlignListSpin, m_wDecimalEntry, m_wDelimEntry, m_wFontOptions, m_wIndentAlignSpin, m_wListStyleBox, m_wListTypeBox, m_wStartSpin, NOT_A_LIST, OTHER_NUMBERED_LISTS, styleChanged(), and UT_DEBUGMSG.
Referenced by customChanged(), runModal(), s_typeChanged(), styleChanged(), and updateFromDocument().
void AP_UnixDialog_Lists::notifyActiveFrame | ( | XAP_Frame * | pFrame | ) | [virtual] |
Reimplemented from XAP_Dialog_Modeless.
References AP_Dialog_Modeless::ConstructWindowName(), AP_Dialog_Lists::getWindowName(), m_bDontUpdate, m_wMainWindow, previewExposed(), updateDialog(), and UT_ASSERT.
void AP_UnixDialog_Lists::previewExposed | ( | void | ) |
References AP_Dialog_Lists::event_PreviewAreaExposed(), and m_pPreviewWidget.
Referenced by applyClicked(), autoupdateLists(), notifyActiveFrame(), s_preview_draw(), s_typeChanged(), s_valueChanged(), and styleChanged().
void AP_UnixDialog_Lists::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
Reimplemented from XAP_Dialog_Modeless.
References _constructWindow(), AP_Dialog_Lists::_createPreviewFromGC(), abiDestroyWidget(), abiRunModalDialog(), BUTTON_CANCEL, BUTTON_RESET, AP_Dialog_Lists::clearDirty(), DELETEP, AP_Dialog_Lists::getAnswer(), XAP_App::getApp(), loadXPDataIntoLocal(), m_bDontUpdate, m_glFonts, m_pPreviewWidget, m_wMainWindow, m_wPreviewArea, XAP_App::newGraphics(), AP_Dialog_Lists::setAnswer(), AP_Dialog_Lists::setModal(), UT_ASSERT, and UT_return_if_fail.
void AP_UnixDialog_Lists::runModeless | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements XAP_Dialog_Modeless.
References _constructWindow(), AP_Dialog_Lists::_createPreviewFromGC(), abiSetupModelessDialog(), autoupdateLists(), BUTTON_APPLY, AP_Dialog_Lists::clearDirty(), connectFocusModelessOther(), XAP_App::getApp(), m_bDestroy_says_stopupdating, m_bDontUpdate, XAP_Dialog::m_pApp, m_pAutoUpdateLists, m_pPreviewWidget, m_wMainWindow, m_wPreviewArea, XAP_App::newGraphics(), s_update(), UT_Timer::set(), static_constructor(), updateDialog(), and UT_ASSERT.
void AP_UnixDialog_Lists::setAllSensitivity | ( | void | ) |
References AP_Dialog_Lists::PopulateDialogData().
void AP_UnixDialog_Lists::setFoldLevel | ( | UT_sint32 | iLevel, | |
bool | bSet | |||
) |
Set the Fold Level in the current List structure.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecFoldCheck, m_vecFoldID, and AP_Dialog_Lists::setCurrentFold().
Referenced by s_FoldCheck_changed(), and setFoldLevelInGUI().
void AP_UnixDialog_Lists::setFoldLevelInGUI | ( | void | ) | [virtual] |
Set the Fold level from the XP layer.
Implements AP_Dialog_Lists.
References AP_Dialog_Lists::getCurrentFold(), and setFoldLevel().
void AP_UnixDialog_Lists::setListTypeFromWidget | ( | void | ) |
This method just sets the value of m_newListType. This is needed to make fillUncustomizedValues work.
References m_wListStyleBox, and type.
Referenced by s_typeChanged(), and setXPFromLocal().
void AP_UnixDialog_Lists::setXPFromLocal | ( | void | ) |
This method reads out all the elements of the GUI and sets the XP member variables from them
References _gatherData(), m_wApplyCurrent, m_wStartNewList, m_wStartSubList, and setListTypeFromWidget().
Referenced by applyClicked(), s_valueChanged(), and updateDialog().
XAP_Dialog * AP_UnixDialog_Lists::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_UnixDialog_Lists().
Referenced by runModeless().
void AP_UnixDialog_Lists::styleChanged | ( | gint | style | ) |
References BULLETED_LIST, dontUpdate(), AP_Dialog_Lists::fillUncustomizedValues(), loadXPDataIntoLocal(), m_wDecimalEntry, m_wDelimEntry, m_wFontOptions, m_wListStyle_menu, m_wListStyleBox, m_wListStyleBulleted_menu, m_wListStyleNone_menu, m_wListStyleNumbered_menu, m_wListTypeBox, m_wStartSpin, NOT_A_LIST, NUMBERED_LIST, XAP_GtkObjectHolder< T >::obj(), and previewExposed().
Referenced by loadXPDataIntoLocal(), and s_styleChanged().
void AP_UnixDialog_Lists::updateDialog | ( | void | ) |
References AP_Dialog_Lists::isDirty(), setXPFromLocal(), and updateFromDocument().
Referenced by activate(), autoupdateLists(), notifyActiveFrame(), runModeless(), and s_update().
void AP_UnixDialog_Lists::updateFromDocument | ( | void | ) |
References _setRadioButtonLabels(), loadXPDataIntoLocal(), and AP_Dialog_Lists::PopulateDialogData().
Referenced by updateDialog().
bool AP_UnixDialog_Lists::m_bAutoUpdate_happening_now [private] |
Referenced by AP_UnixDialog_Lists(), and autoupdateLists().
bool AP_UnixDialog_Lists::m_bDestroy_says_stopupdating [private] |
Referenced by autoupdateLists(), destroy(), and runModeless().
bool AP_UnixDialog_Lists::m_bDontUpdate [private] |
Referenced by activate(), AP_UnixDialog_Lists(), dontUpdate(), loadXPDataIntoLocal(), notifyActiveFrame(), runModal(), and runModeless().
bool AP_UnixDialog_Lists::m_bManualListStyle [private] |
Referenced by AP_UnixDialog_Lists().
std::vector<std::string> AP_UnixDialog_Lists::m_glFonts [private] |
Referenced by _fillFontMenu(), _gatherData(), destroy(), loadXPDataIntoLocal(), and runModal().
gint AP_UnixDialog_Lists::m_iAlignListSpinID [private] |
Referenced by _connectSignals(), and loadXPDataIntoLocal().
gint AP_UnixDialog_Lists::m_iDecimalEntryID [private] |
Referenced by _connectSignals(), and loadXPDataIntoLocal().
gint AP_UnixDialog_Lists::m_iDelimEntryID [private] |
Referenced by _connectSignals(), and loadXPDataIntoLocal().
gint AP_UnixDialog_Lists::m_iIndentAlignSpinID [private] |
Referenced by _connectSignals(), and loadXPDataIntoLocal().
UT_sint32 AP_UnixDialog_Lists::m_iPageFold [private] |
Referenced by _constructWindowContents().
UT_sint32 AP_UnixDialog_Lists::m_iPageLists [private] |
Referenced by _constructWindowContents(), and isPageLists().
gint AP_UnixDialog_Lists::m_iStyleBoxID [private] |
Referenced by _connectSignals().
GtkAdjustment* AP_UnixDialog_Lists::m_oAlignList_adj [private] |
Referenced by _connectSignals(), _constructWindowContents(), and loadXPDataIntoLocal().
GtkAdjustment* AP_UnixDialog_Lists::m_oIndentAlign_adj [private] |
Referenced by _connectSignals(), _constructWindowContents(), and loadXPDataIntoLocal().
GtkAdjustment* AP_UnixDialog_Lists::m_oStartSpin_adj [private] |
Referenced by _connectSignals(), and _constructWindowContents().
UT_Timer* AP_UnixDialog_Lists::m_pAutoUpdateLists [private] |
Referenced by AP_UnixDialog_Lists(), destroy(), and runModeless().
Referenced by AP_UnixDialog_Lists(), destroy(), previewExposed(), runModal(), runModeless(), and ~AP_UnixDialog_Lists().
UT_GenericVector<GtkWidget*> AP_UnixDialog_Lists::m_vecFoldCheck [private] |
Referenced by _constructWindowContents(), and setFoldLevel().
Referenced by _constructWindowContents(), and setFoldLevel().
GtkWidget* AP_UnixDialog_Lists::m_wAlignListSpin [private] |
Referenced by _constructWindowContents(), _gatherData(), and loadXPDataIntoLocal().
GtkWidget* AP_UnixDialog_Lists::m_wApply [private] |
Referenced by _connectSignals(), _constructWindow(), _getApplyButton(), and _setApplyButton().
GtkWidget* AP_UnixDialog_Lists::m_wApplyCurrent [private] |
Referenced by _constructWindowContents(), and setXPFromLocal().
GtkWidget* AP_UnixDialog_Lists::m_wClose [private] |
Referenced by _connectSignals(), _constructWindow(), _getCloseButton(), and _setCloseButton().
GtkWidget* AP_UnixDialog_Lists::m_wContents [private] |
Referenced by _constructWindowContents(), and isPageLists().
GtkWidget* AP_UnixDialog_Lists::m_wCustomFrame [private] |
Referenced by _constructWindowContents().
GtkWidget* AP_UnixDialog_Lists::m_wCustomLabel [private] |
Referenced by _connectSignals(), and _constructWindowContents().
GtkWidget* AP_UnixDialog_Lists::m_wCustomTable [private] |
Referenced by _constructWindowContents().
GtkWidget* AP_UnixDialog_Lists::m_wDecimalEntry [private] |
Referenced by _connectSignals(), _constructWindowContents(), _gatherData(), loadXPDataIntoLocal(), and styleChanged().
GtkWidget* AP_UnixDialog_Lists::m_wDelimEntry [private] |
Referenced by _connectSignals(), _constructWindowContents(), _gatherData(), loadXPDataIntoLocal(), and styleChanged().
GtkComboBox* AP_UnixDialog_Lists::m_wFontOptions [private] |
Referenced by _connectSignals(), _constructWindowContents(), _gatherData(), loadXPDataIntoLocal(), and styleChanged().
GtkListStore* AP_UnixDialog_Lists::m_wFontOptions_menu [private] |
Referenced by _constructWindowContents().
GtkWidget* AP_UnixDialog_Lists::m_wIndentAlignSpin [private] |
Referenced by _constructWindowContents(), _gatherData(), and loadXPDataIntoLocal().
XAP_GtkObjectHolder<GtkListStore> AP_UnixDialog_Lists::m_wListStyle_menu [private] |
Referenced by _constructWindowContents(), and styleChanged().
GtkComboBox* AP_UnixDialog_Lists::m_wListStyleBox [private] |
Referenced by _connectSignals(), _constructWindowContents(), loadXPDataIntoLocal(), setListTypeFromWidget(), and styleChanged().
XAP_GtkObjectHolder<GtkListStore> AP_UnixDialog_Lists::m_wListStyleBulleted_menu [private] |
Referenced by _constructWindowContents(), and styleChanged().
XAP_GtkObjectHolder<GtkListStore> AP_UnixDialog_Lists::m_wListStyleNone_menu [private] |
Referenced by _constructWindowContents(), and styleChanged().
XAP_GtkObjectHolder<GtkListStore> AP_UnixDialog_Lists::m_wListStyleNumbered_menu [private] |
Referenced by _constructWindowContents(), and styleChanged().
XAP_GtkObjectHolder<GtkListStore> AP_UnixDialog_Lists::m_wListType_menu [private] |
Referenced by _constructWindowContents().
GtkComboBox* AP_UnixDialog_Lists::m_wListTypeBox [private] |
Referenced by _connectSignals(), _constructWindowContents(), loadXPDataIntoLocal(), and styleChanged().
GtkWidget* AP_UnixDialog_Lists::m_wMainWindow [private] |
GtkWidget* AP_UnixDialog_Lists::m_wPreviewArea [private] |
Referenced by _connectSignals(), _constructWindowContents(), runModal(), and runModeless().
GSList* AP_UnixDialog_Lists::m_wRadioGroup [private] |
Referenced by _constructWindowContents().
GtkWidget* AP_UnixDialog_Lists::m_wStartNew_label [private] |
Referenced by _constructWindowContents(), and _setRadioButtonLabels().
GtkWidget* AP_UnixDialog_Lists::m_wStartNewList [private] |
Referenced by _constructWindowContents(), and setXPFromLocal().
GtkWidget* AP_UnixDialog_Lists::m_wStartSpin [private] |
Referenced by _constructWindowContents(), _gatherData(), loadXPDataIntoLocal(), and styleChanged().
GtkWidget* AP_UnixDialog_Lists::m_wStartSub_label [private] |
Referenced by _constructWindowContents(), and _setRadioButtonLabels().
GtkWidget* AP_UnixDialog_Lists::m_wStartSubList [private] |
Referenced by _constructWindowContents(), and setXPFromLocal().