#include <ap_Dialog_Border_Shading.h>
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] |
References DELETEP, m_pBorderShadingPreview, and stopUpdater().
void AP_Dialog_Border_Shading::_createPreviewFromGC | ( | GR_Graphics * | gc, | |
UT_uint32 | width, | |||
UT_uint32 | height | |||
) |
References m_pBorderShadingPreview, XAP_Preview::setWindowSize(), and UT_return_if_fail.
Referenced by AP_Win32Dialog_Border_Shading::_onInitDialog(), and AP_UnixDialog_Border_Shading::runModeless().
guint AP_Dialog_Border_Shading::_findClosestOffset | ( | const char * | sOffset | ) | const [protected] |
References m_dShadingOffset, and UT_convertToInches().
Referenced by AP_Win32Dialog_Border_Shading::setShadingOffsetInGUI(), and AP_UnixDialog_Border_Shading::setShadingOffsetInGUI().
guint AP_Dialog_Border_Shading::_findClosestThickness | ( | const char * | sthickness | ) | const [protected] |
References m_dThickness, and UT_convertToInches().
Referenced by setBorderThickness(), AP_Win32Dialog_Border_Shading::setBorderThicknessInGUI(), and AP_UnixDialog_Border_Shading::setBorderThicknessInGUI().
bool AP_Dialog_Border_Shading::_getToggleButtonStatus | ( | const char * | lineStyle | ) | const [private] |
References LS_OFF, m_vecProps, PP_getAttribute(), and UT_std_string_sprintf().
Referenced by getBottomToggled(), getLeftToggled(), getRightToggled(), and getTopToggled().
void AP_Dialog_Border_Shading::applyChanges | ( | void | ) |
void AP_Dialog_Border_Shading::autoUpdateMC | ( | UT_Worker * | pTimer | ) | [static] |
Auto-updater of the dialog.
References UT_Worker::getInstanceData(), m_bAutoUpdate_happening_now, m_bDestroy_says_stopupdating, setAllSensitivities(), setCurBlockProps(), and UT_return_if_fail.
Referenced by startUpdater().
void AP_Dialog_Border_Shading::ConstructWindowName | ( | void | ) |
References XAP_Dialog_Modeless::BuildWindowName(), FREEP, gchar, XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValue(), m_WindowName, and UT_XML_cloneNoAmpersands().
Referenced by AP_UnixDialog_Border_Shading::_constructWindow(), AP_Win32Dialog_Border_Shading::activate(), AP_UnixDialog_Border_Shading::activate(), AP_Win32Dialog_Border_Shading::notifyActiveFrame(), and AP_UnixDialog_Border_Shading::notifyActiveFrame().
void AP_Dialog_Border_Shading::event_update | ( | void | ) |
void AP_Dialog_Border_Shading::finalize | ( | void | ) |
AP_Dialog_Border_Shading::tAnswer AP_Dialog_Border_Shading::getAnswer | ( | void | ) | const |
References m_answer.
bool AP_Dialog_Border_Shading::getBottomToggled | ( | ) | const |
bool AP_Dialog_Border_Shading::getLeftToggled | ( | ) | const |
const PP_PropertyVector& AP_Dialog_Border_Shading::getPropVector | ( | ) | const [inline] |
PP_PropertyVector& AP_Dialog_Border_Shading::getPropVector | ( | ) | [inline] |
Referenced by AP_Border_Shading_preview::draw().
bool AP_Dialog_Border_Shading::getRightToggled | ( | ) | const |
bool AP_Dialog_Border_Shading::getTopToggled | ( | ) | const |
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] |
Reimplemented from XAP_Dialog_Modeless.
References XAP_Dialog_Modeless::getActiveFrame(), and XAP_Dialog_Modeless::notifyActiveFrame().
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().
void AP_Dialog_Border_Shading::setBorderColor | ( | const UT_RGBColor & | clr | ) |
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 | ) |
References m_bSettingsChanged, m_vecProps, and PP_addOrSetAttribute().
Referenced by AP_Win32Dialog_Border_Shading::_onCommand(), and AP_UnixDialog_Border_Shading::event_BorderStyleChanged().
virtual void AP_Dialog_Border_Shading::setBorderStyleInGUI | ( | const std::string & | sStyle | ) | [pure virtual] |
Implemented in AP_UnixDialog_Border_Shading.
Referenced by setCurBlockProps().
void AP_Dialog_Border_Shading::setBorderThickness | ( | const std::string & | sThick | ) |
virtual void AP_Dialog_Border_Shading::setBorderThicknessInGUI | ( | const std::string & | sThick | ) | [pure virtual] |
Implemented in AP_UnixDialog_Border_Shading.
Referenced by setCurBlockProps().
void AP_Dialog_Border_Shading::setCurBlockProps | ( | void | ) |
References BORDER_SHADING_SHADING_DISABLE, XAP_Dialog::getApp(), FV_View::getCurrentBlock(), XAP_Frame::getCurrentView(), XAP_App::getLastFocussedFrame(), FV_View::getPoint(), fl_BlockLayout::getProperty(), m_bSettingsChanged, m_iOldPos, m_pBorderShadingPreview, m_sDefaultStyle, m_vecProps, PP_addOrSetAttribute(), PP_removeAttribute(), XAP_CustomWidget::queueDraw(), setBorderColorInGUI(), setBorderStyleInGUI(), setBorderThicknessInGUI(), UT_RGBColor::setColor(), setShadingColorInGUI(), setShadingPatternInGUI(), and xxx_UT_DEBUGMSG.
Referenced by autoUpdateMC().
virtual void AP_Dialog_Border_Shading::setSensitivity | ( | bool | bSens | ) | [pure virtual] |
Implemented in AP_UnixDialog_Border_Shading.
Referenced by setAllSensitivities().
void AP_Dialog_Border_Shading::setShadingColor | ( | const UT_RGBColor & | clr | ) |
References UT_RGBColor::isTransparent(), UT_RGBColor::m_blu, m_bSettingsChanged, UT_RGBColor::m_grn, UT_RGBColor::m_red, m_vecProps, PP_addOrSetAttribute(), PP_removeAttribute(), UT_std_string_sprintf(), and xxx_UT_DEBUGMSG.
Referenced by AP_Win32Dialog_Border_Shading::_onCommand(), and s_on_shading_color_clicked().
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] |
Implemented in AP_UnixDialog_Border_Shading.
void AP_Dialog_Border_Shading::setShadingPattern | ( | const std::string & | sPattern | ) |
References m_bSettingsChanged, m_vecProps, PP_addOrSetAttribute(), and xxx_UT_DEBUGMSG.
Referenced by AP_Win32Dialog_Border_Shading::_onCommand(), and AP_UnixDialog_Border_Shading::event_shadingPatternChange().
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::startUpdater | ( | void | ) | [virtual] |
void AP_Dialog_Border_Shading::stopUpdater | ( | void | ) | [virtual] |
References DELETEP, m_bDestroy_says_stopupdating, m_pAutoUpdaterMC, and UT_Timer::stop().
Referenced by finalize(), and ~AP_Dialog_Border_Shading().
void AP_Dialog_Border_Shading::toggleLineType | ( | toggle_button | btn, | |
bool | enabled | |||
) |
Set the color and style and thickness of the toggled button
References LS_OFF, UT_RGBColor::m_blu, m_borderColor, m_bSettingsChanged, UT_RGBColor::m_grn, m_lineStyle, UT_RGBColor::m_red, m_sBorderThickness, m_vecProps, PP_addOrSetAttribute(), toggle_bottom, toggle_left, toggle_right, toggle_top, UT_std_string_sprintf(), and xxx_UT_DEBUGMSG.
Referenced by AP_Win32Dialog_Border_Shading::_onCommand(), s_line_bottom(), s_line_left(), s_line_right(), and s_line_top().
bool AP_Dialog_Border_Shading::m_bAutoUpdate_happening_now [private] |
Referenced by autoUpdateMC(), and startUpdater().
bool AP_Dialog_Border_Shading::m_bDestroy_says_stopupdating [private] |
Referenced by autoUpdateMC(), startUpdater(), and stopUpdater().
gchar* AP_Dialog_Border_Shading::m_bgFillStyle [protected] |
UT_RGBColor AP_Dialog_Border_Shading::m_borderColor [protected] |
Referenced by setBorderColor(), and toggleLineType().
bool AP_Dialog_Border_Shading::m_bSettingsChanged [private] |
double AP_Dialog_Border_Shading::m_dShadingOffset[BORDER_SHADING_NUMOFFSETS] [protected] |
double AP_Dialog_Border_Shading::m_dThickness[BORDER_SHADING_NUMTHICKNESS] [protected] |
Referenced by setCurBlockProps().
UT_sint32 AP_Dialog_Border_Shading::m_lineStyle [protected] |
Referenced by toggleLineType().
Referenced by startUpdater(), and stopUpdater().
std::string AP_Dialog_Border_Shading::m_sBorderThickness [protected] |
Referenced by setBorderThickness(), and toggleLineType().
std::string AP_Dialog_Border_Shading::m_sDefaultStyle [private] |
Referenced by AP_Dialog_Border_Shading(), and setCurBlockProps().
char AP_Dialog_Border_Shading::m_WindowName[100] [protected] |