#include <ap_UnixDialog_Stylist.h>
Public Member Functions | |
AP_UnixDialog_Stylist (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_UnixDialog_Stylist (void) |
virtual void | runModeless (XAP_Frame *pFrame) |
virtual void | runModal (XAP_Frame *pFrame) |
void | event_Close (void) |
void | event_Apply (void) |
void | styleClicked (UT_sint32 row, UT_sint32 col) |
virtual void | destroy (void) |
virtual void | activate (void) |
virtual void | notifyActiveFrame (XAP_Frame *pFrame) |
virtual void | setStyleInGUI (void) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
Private Member Functions | |
GtkWidget * | _constructWindow (void) |
void | _populateWindowData (void) |
void | _connectSignals (void) |
void | _fillTree (void) |
Private Attributes | |
GtkWidget * | m_windowMain |
GtkWidget * | m_wStyleList |
GtkCellRenderer * | m_wRenderer |
GtkTreeStore * | m_wModel |
GtkWidget * | m_wStyleListContainer |
AP_UnixDialog_Stylist::AP_UnixDialog_Stylist | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
AP_UnixDialog_Stylist::~AP_UnixDialog_Stylist | ( | void | ) | [virtual] |
void AP_UnixDialog_Stylist::_connectSignals | ( | void | ) | [private] |
References m_windowMain, s_delete_clicked(), s_destroy_clicked(), and s_response_triggered().
Referenced by runModal(), and runModeless().
GtkWidget * AP_UnixDialog_Stylist::_constructWindow | ( | void | ) | [private] |
References abiDialogSetTitle(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), AP_Dialog_Stylist::m_bIsModal, XAP_Dialog::m_pApp, m_windowMain, m_wStyleListContainer, newDialogBuilder(), and s.
Referenced by runModal(), and runModeless().
void AP_UnixDialog_Stylist::_fillTree | ( | void | ) | [private] |
Fill the GUI tree with the styles as defined in the XP tree.
References Stylist_tree::getNameOfRow(), Stylist_tree::getNumCols(), Stylist_tree::getNumRows(), XAP_App::getStringSet(), Stylist_tree::getStyleAtRowCol(), AP_Dialog_Stylist::getStyleTree(), XAP_StringSet::getValueUTF8(), XAP_Dialog::m_pApp, m_wModel, m_wRenderer, m_wStyleList, m_wStyleListContainer, s, s_compare(), pt_PieceTable::s_getLocalisedStyleName(), s_types_clicked(), s_types_dblclicked(), AP_Dialog_Stylist::setStyleTreeChanged(), style, tree_select_filter(), AP_Dialog_Stylist::updateDialog(), UT_ASSERT, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by _populateWindowData(), and setStyleInGUI().
void AP_UnixDialog_Stylist::_populateWindowData | ( | void | ) | [private] |
References _fillTree(), and setStyleInGUI().
Referenced by runModal(), and runModeless().
void AP_UnixDialog_Stylist::activate | ( | void | ) | [virtual] |
Implements XAP_Dialog_Modeless.
References m_windowMain, and UT_ASSERT.
void AP_UnixDialog_Stylist::destroy | ( | void | ) | [virtual] |
Implements XAP_Dialog_Modeless.
References AP_Dialog_Stylist::finalize(), m_windowMain, m_wRenderer, and m_wStyleList.
Referenced by event_Close().
void AP_UnixDialog_Stylist::event_Apply | ( | void | ) |
References AP_Dialog_Stylist::Apply().
Referenced by s_response_triggered(), and s_types_dblclicked().
void AP_UnixDialog_Stylist::event_Close | ( | void | ) |
References destroy().
Referenced by s_destroy_clicked().
void AP_UnixDialog_Stylist::notifyActiveFrame | ( | XAP_Frame * | pFrame | ) | [virtual] |
Reimplemented from XAP_Dialog_Modeless.
References m_windowMain, and UT_ASSERT.
void AP_UnixDialog_Stylist::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
void AP_UnixDialog_Stylist::runModeless | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements AP_Dialog_Stylist.
References _connectSignals(), _constructWindow(), _populateWindowData(), abiSetupModelessDialog(), AP_Dialog_Stylist::startUpdater(), and UT_return_if_fail.
void AP_UnixDialog_Stylist::setStyleInGUI | ( | void | ) | [virtual] |
Implements AP_Dialog_Stylist.
References _fillTree(), gchar, AP_Dialog_Stylist::getCurStyle(), AP_Dialog_Stylist::getStyleTree(), AP_Dialog_Stylist::isStyleTreeChanged(), m_wStyleList, pt_PieceTable::s_getLocalisedStyleName(), AP_Dialog_Stylist::setStyleChanged(), UT_UTF8String::size(), AP_Dialog_Stylist::updateDialog(), and UT_UTF8String::utf8_str().
Referenced by _populateWindowData().
XAP_Dialog * AP_UnixDialog_Stylist::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_UnixDialog_Stylist().
Set the style in the XP layer from the selection in the GUI.
References Stylist_tree::getStyleAtRowCol(), AP_Dialog_Stylist::getStyleTree(), AP_Dialog_Stylist::setCurStyle(), UT_DEBUGMSG, and UT_UTF8String::utf8_str().
Referenced by s_types_clicked().
GtkWidget* AP_UnixDialog_Stylist::m_windowMain [private] |
Referenced by _connectSignals(), _constructWindow(), activate(), destroy(), and notifyActiveFrame().
GtkTreeStore* AP_UnixDialog_Stylist::m_wModel [private] |
Referenced by _fillTree().
GtkCellRenderer* AP_UnixDialog_Stylist::m_wRenderer [private] |
Referenced by _fillTree(), and destroy().
GtkWidget* AP_UnixDialog_Stylist::m_wStyleList [private] |
Referenced by _fillTree(), destroy(), and setStyleInGUI().
GtkWidget* AP_UnixDialog_Stylist::m_wStyleListContainer [private] |
Referenced by _constructWindow(), and _fillTree().