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

AP_Dialog_Border_Shading Class Reference

#include <ap_Dialog_Border_Shading.h>

Inheritance diagram for AP_Dialog_Border_Shading:
XAP_Dialog_Modeless XAP_Dialog_AppPersistent XAP_Dialog_Persistent XAP_Dialog AP_UnixDialog_Border_Shading AP_Win32Dialog_Border_Shading

List of all members.

Public Types

enum  tAnswer { a_OK, a_CLOSE }
enum  toggle_button { toggle_left, toggle_right, toggle_top, toggle_bottom }

Public Member Functions

 AP_Dialog_Border_Shading (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id)
virtual ~AP_Dialog_Border_Shading (void)
virtual void runModeless (XAP_Frame *pFrame)=0
AP_Dialog_Border_Shading::tAnswer getAnswer (void) const
virtual void startUpdater (void)
virtual void stopUpdater (void)
virtual void setSensitivity (bool bSens)=0
virtual void setActiveFrame (XAP_Frame *pFrame)
void ConstructWindowName (void)
void event_update (void)
void finalize (void)
void setAllSensitivities (void)
void setCurBlockProps (void)
void applyChanges (void)
void toggleLineType (toggle_button btn, bool enabled)
void setBorderColor (const UT_RGBColor &clr)
void setBorderThickness (const std::string &sThick)
void setBorderStyle (const std::string &sStyle)
void setShadingColor (const UT_RGBColor &clr)
void setShadingPattern (const std::string &sPattern)
void setShadingOffset (const std::string &sOffset)
virtual void setBorderStyleInGUI (const std::string &sStyle)=0
virtual void setBorderThicknessInGUI (const std::string &sThick)=0
virtual void setBorderColorInGUI (const UT_RGBColor &clr)=0
virtual void setShadingColorInGUI (const UT_RGBColor &clr)=0
virtual void setShadingPatternInGUI (const std::string &sPattern)=0
virtual void setShadingOffsetInGUI (const std::string &sOffset)=0
void _createPreviewFromGC (GR_Graphics *gc, UT_uint32 width, UT_uint32 height)
PP_PropertyVectorgetPropVector ()
const PP_PropertyVectorgetPropVector () const
bool getTopToggled () const
bool getBottomToggled () const
bool getRightToggled () const
bool getLeftToggled () const

Static Public Member Functions

static void autoUpdateMC (UT_Worker *pTimer)

Protected Member Functions

guint _findClosestThickness (const char *) const
guint _findClosestOffset (const char *) const

Protected Attributes

AP_Dialog_Border_Shading::tAnswer m_answer
char m_WindowName [100]
AP_Border_Shading_preview_drawer m_previewDrawer
UT_RGBColor m_borderColor
UT_sint32 m_lineStyle
gchar * m_bgFillStyle
PP_PropertyVector m_vecProps
std::string m_sBorderThickness
double m_dShadingOffset [BORDER_SHADING_NUMOFFSETS]

Private Member Functions

bool _getToggleButtonStatus (const char *lineStyle) const

Private Attributes

bool m_bSettingsChanged
PT_DocPosition m_iOldPos
std::string m_sDefaultStyle
bool m_bDestroy_says_stopupdating
bool m_bAutoUpdate_happening_now

Member Enumeration Documentation


Constructor & Destructor Documentation

AP_Dialog_Border_Shading::AP_Dialog_Border_Shading ( XAP_DialogFactory pDlgFactory,
XAP_Dialog_Id  id 
AP_Dialog_Border_Shading::~AP_Dialog_Border_Shading ( void   )  [virtual]

Member Function Documentation

void AP_Dialog_Border_Shading::_createPreviewFromGC ( GR_Graphics gc,
UT_uint32  width,
UT_uint32  height 
guint AP_Dialog_Border_Shading::_findClosestOffset ( const char *  sOffset  )  const [protected]
guint AP_Dialog_Border_Shading::_findClosestThickness ( const char *  sthickness  )  const [protected]
bool AP_Dialog_Border_Shading::_getToggleButtonStatus ( const char *  lineStyle  )  const [private]
void AP_Dialog_Border_Shading::autoUpdateMC ( UT_Worker pTimer  )  [static]
void AP_Dialog_Border_Shading::event_update ( void   ) 
AP_Dialog_Border_Shading::tAnswer AP_Dialog_Border_Shading::getAnswer ( void   )  const

References m_answer.

const PP_PropertyVector& AP_Dialog_Border_Shading::getPropVector (  )  const [inline]
PP_PropertyVector& AP_Dialog_Border_Shading::getPropVector (  )  [inline]
virtual void AP_Dialog_Border_Shading::runModeless ( XAP_Frame pFrame  )  [pure virtual]

Implements XAP_Dialog_Modeless.

Implemented in AP_UnixDialog_Border_Shading.

Referenced by s_doBorderShadingDlg().

void AP_Dialog_Border_Shading::setActiveFrame ( XAP_Frame pFrame  )  [virtual]
void AP_Dialog_Border_Shading::setAllSensitivities ( void   ) 

Sets the sensitivity of the radio buttons to top/bottom/left/right line buttons Call this right after constructing the widget and before dropping into the main loop.

References setSensitivity().

Referenced by AP_Win32Dialog_Border_Shading::_onInitDialog(), AP_UnixDialog_Border_Shading::_populateWindowData(), AP_Win32Dialog_Border_Shading::activate(), AP_UnixDialog_Border_Shading::activate(), autoUpdateMC(), AP_Win32Dialog_Border_Shading::notifyActiveFrame(), and AP_UnixDialog_Border_Shading::notifyActiveFrame().

virtual void AP_Dialog_Border_Shading::setBorderColorInGUI ( const UT_RGBColor clr  )  [pure virtual]

Implemented in AP_UnixDialog_Border_Shading.

Referenced by setCurBlockProps().

void AP_Dialog_Border_Shading::setBorderStyle ( const std::string &  sStyle  ) 
virtual void AP_Dialog_Border_Shading::setBorderStyleInGUI ( const std::string &  sStyle  )  [pure virtual]

Implemented in AP_UnixDialog_Border_Shading.

Referenced by setCurBlockProps().

virtual void AP_Dialog_Border_Shading::setBorderThicknessInGUI ( const std::string &  sThick  )  [pure virtual]

Implemented in AP_UnixDialog_Border_Shading.

Referenced by setCurBlockProps().

virtual void AP_Dialog_Border_Shading::setSensitivity ( bool  bSens  )  [pure virtual]

Implemented in AP_UnixDialog_Border_Shading.

Referenced by setAllSensitivities().

virtual void AP_Dialog_Border_Shading::setShadingColorInGUI ( const UT_RGBColor clr  )  [pure virtual]

Implemented in AP_UnixDialog_Border_Shading.

Referenced by setCurBlockProps().

void AP_Dialog_Border_Shading::setShadingOffset ( const std::string &  sOffset  ) 
virtual void AP_Dialog_Border_Shading::setShadingOffsetInGUI ( const std::string &  sOffset  )  [pure virtual]
void AP_Dialog_Border_Shading::setShadingPattern ( const std::string &  sPattern  ) 
virtual void AP_Dialog_Border_Shading::setShadingPatternInGUI ( const std::string &  sPattern  )  [pure virtual]

Implemented in AP_UnixDialog_Border_Shading.

Referenced by setCurBlockProps().

void AP_Dialog_Border_Shading::stopUpdater ( void   )  [virtual]

Member Data Documentation

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