Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

AP_UnixDialog_Tab Class Reference

#include <ap_UnixDialog_Tab.h>

Inheritance diagram for AP_UnixDialog_Tab:
AP_Dialog_Tab XAP_Dialog_NonPersistent XAP_Dialog

List of all members.

Public Member Functions

 AP_UnixDialog_Tab (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~AP_UnixDialog_Tab (void)
virtual void runModal (XAP_Frame *pFrame)
 Abi style run method.
void onDefaultTabChanged (double value)
void onDefaultTabFocusOut (void)
 Validate tab width, apply if ok.
void onTabSelected (void)
 Dispatch tab selection to xp land.
void onPositionChanged (double value)
void onPositionFocusOut (void)
 Validate tab position, apply if ok.
void onAlignmentChanged (void)
 Dispatch event to xp-land and auto-apply.
void onLeaderChanged (void)
 Dispatch event to xp-land and auto-apply.
void onAddTab (void)
 Add tab and apply to paragraph.
void onDeleteTab (void)
 Delete tab and apply to paragraph.
GtkWidget * getWindow (void)

Static Public Member Functions

static XAP_Dialogstatic_constructor (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
 Abi style static ctor.

Protected Member Functions

GtkWidget * _lookupWidget (tControl id)
virtual void _controlEnable (tControl id, bool value)
 Set widget state by id.
void _spinChanged (void)
 SET_GATHER (Alignment, eTabType)
 SET_GATHER (Leader, eTabLeader)
 SET_GATHER (DefaultTabStop, const gchar *)
virtual void _setTabList (UT_uint32 count)
 Update list of tabs.
 SET_GATHER (SelectTab, UT_sint32)
 SET_GATHER (TabEdit, const char *)
virtual void _clearList ()
 Clear list of tab stops.
virtual GtkWidget * _constructWindow (void)

Private Member Functions

void _connectSignals (GtkBuilder *builder)
 Connect callbacks.
UT_sint32 _getSelectedIndex (void)

Private Attributes

GtkBuilder * m_pBuilder
GtkWidget * m_wDialog
GtkWidget * m_sbDefaultTab
GtkWidget * m_exUserTabs
GtkWidget * m_lvTabs
GtkWidget * m_btDelete
GtkWidget * m_sbPosition
GtkWidget * m_cobAlignment
GtkWidget * m_cobLeader
GtkTreeSelection * m_tsSelection
gchar * m_AlignmentMapping [__FL_TAB_MAX]
gchar * m_LeaderMapping [__FL_LEADER_MAX]
guint m_hSigDefaultTabChanged
guint m_hSigPositionChanged
guint m_hSigAlignmentChanged
guint m_hSigLeaderChanged
guint m_hTabSelected

Constructor & Destructor Documentation

AP_UnixDialog_Tab::AP_UnixDialog_Tab ( XAP_DialogFactory pDlgFactory,
XAP_Dialog_Id  id 


Referenced by static_constructor().

AP_UnixDialog_Tab::~AP_UnixDialog_Tab ( void   )  [virtual]

Member Function Documentation

void AP_UnixDialog_Tab::_clearList (  )  [protected, virtual]

Clear list of tab stops.

Implements AP_Dialog_Tab.

References m_lvTabs.

void AP_UnixDialog_Tab::_controlEnable ( tControl  id,
bool  value 
) [protected, virtual]

Set widget state by id.

Implements AP_Dialog_Tab.

References _lookupWidget(), AP_Dialog_Tab::id_BUTTON_CLEAR, m_pBuilder, and UT_return_if_fail.

UT_sint32 AP_UnixDialog_Tab::_getSelectedIndex ( void   )  [private]

Get index of selected tab in list.

-1 if no selection

References gchar, m_lvTabs, and UT_DEBUGMSG.

Referenced by onTabSelected().

void AP_UnixDialog_Tab::_setTabList ( UT_uint32  count  )  [protected, virtual]

Update list of tabs.

Implements AP_Dialog_Tab.

References AP_Dialog_Tab::_getTabDimensionString(), COLUMN_TAB, m_exUserTabs, and m_lvTabs.

void AP_UnixDialog_Tab::_spinChanged ( void   )  [protected]
GtkWidget* AP_UnixDialog_Tab::getWindow ( void   )  [inline]

References m_wDialog.

Referenced by AP_UnixDialog_Tab__onCloseWindow().

void AP_UnixDialog_Tab::onAlignmentChanged ( void   ) 

Dispatch event to xp-land and auto-apply.

References AP_Dialog_Tab::_event_AlignmentChange(), and AP_Dialog_Tab::_event_Update().

Referenced by AP_UnixDialog_Tab__onAlignmentChanged().

void AP_UnixDialog_Tab::onDefaultTabChanged ( double  value  ) 
void AP_UnixDialog_Tab::onDeleteTab ( void   ) 

Delete tab and apply to paragraph.

References AP_Dialog_Tab::_event_Clear(), and AP_Dialog_Tab::_storeWindowData().

Referenced by AP_UnixDialog_Tab__onDeleteTab().

void AP_UnixDialog_Tab::onLeaderChanged ( void   ) 

Dispatch event to xp-land and auto-apply.

References AP_Dialog_Tab::_event_somethingChanged(), and AP_Dialog_Tab::_event_Update().

Referenced by AP_UnixDialog_Tab__onLeaderChanged().

void AP_UnixDialog_Tab::onPositionChanged ( double  value  ) 
void AP_UnixDialog_Tab::onTabSelected ( void   ) 

Dispatch tab selection to xp land.

References AP_Dialog_Tab::_event_TabSelected(), and _getSelectedIndex().

Referenced by AP_UnixDialog_Tab__onTabSelected().

void AP_UnixDialog_Tab::runModal ( XAP_Frame pFrame  )  [virtual]
AP_UnixDialog_Tab::SET_GATHER ( TabEdit  ,
const char *   
) [protected]

Reimplemented from AP_Dialog_Tab.

AP_UnixDialog_Tab::SET_GATHER ( SelectTab  ,
) [protected]

Reimplemented from AP_Dialog_Tab.

AP_UnixDialog_Tab::SET_GATHER ( Leader  ,
) [protected]

Reimplemented from AP_Dialog_Tab.

AP_UnixDialog_Tab::SET_GATHER ( DefaultTabStop  ,
const gchar *   
) [protected]

Reimplemented from AP_Dialog_Tab.

AP_UnixDialog_Tab::SET_GATHER ( Alignment  ,
) [protected]

Reimplemented from AP_Dialog_Tab.

XAP_Dialog * AP_UnixDialog_Tab::static_constructor ( XAP_DialogFactory pDlgFactory,
XAP_Dialog_Id  id 
) [static]

Abi style static ctor.

References AP_UnixDialog_Tab().

Member Data Documentation

gchar* AP_UnixDialog_Tab::m_AlignmentMapping[__FL_TAB_MAX] [private]
GtkWidget* AP_UnixDialog_Tab::m_btDelete [private]
GtkWidget* AP_UnixDialog_Tab::m_exUserTabs [private]

Referenced by _constructWindow(), and _setTabList().

gchar* AP_UnixDialog_Tab::m_LeaderMapping[__FL_LEADER_MAX] [private]
GtkTreeSelection* AP_UnixDialog_Tab::m_tsSelection [private]
GtkWidget* AP_UnixDialog_Tab::m_wDialog [private]

Referenced by getWindow(), and runModal().

The documentation for this class was generated from the following files: