#include <xap_UnixDlg_Image.h>
Public Member Functions | |
XAP_UnixDialog_Image (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~XAP_UnixDialog_Image (void) |
virtual void | runModal (XAP_Frame *pFrame) |
void | setPositionToGUI (void) |
void | setWrappingGUI (void) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *, XAP_Dialog_Id id) |
Protected Member Functions | |
void | _constructWindowContents (GtkWidget *container) |
virtual GtkWidget * | _constructWindow () |
void | _connectSignals () |
Private Types | |
enum | ResponseId { BUTTON_OK = GTK_RESPONSE_OK, BUTTON_CANCEL = GTK_RESPONSE_CANCEL } |
Private Member Functions | |
void | event_Ok () |
void | event_Cancel () |
void | doHeightSpin (void) |
void | doWidthSpin (void) |
void | doHeightEntry (void) |
void | doWidthEntry (void) |
void | setHeightEntry (void) |
void | setWidthEntry (void) |
void | adjustHeightForAspect (void) |
void | adjustWidthForAspect (void) |
void | aspectCheckbox () |
void | wrappingChanged (void) |
void | wrapTypeChanged (void) |
Static Private Member Functions | |
static void | s_HeightSpin_changed (GtkWidget *widget, XAP_UnixDialog_Image *dlg) |
static void | s_WidthSpin_changed (GtkWidget *widget, XAP_UnixDialog_Image *dlg) |
static void | s_HeightEntry_changed (GtkWidget *widget, XAP_UnixDialog_Image *dlg) |
static gboolean | s_HeightEntry_FocusOut (GtkWidget *widget, GdkEvent *event, XAP_UnixDialog_Image *dlg) |
static gboolean | s_WidthEntry_FocusOut (GtkWidget *widget, GdkEvent *event, XAP_UnixDialog_Image *dlg) |
static void | s_WidthEntry_changed (GtkWidget *widget, XAP_UnixDialog_Image *dlg) |
static void | s_aspect_clicked (GtkWidget *widget, XAP_UnixDialog_Image *dlg) |
static void | s_wrapping_changed (GtkWidget *widget, XAP_UnixDialog_Image *dlg) |
static void | s_wrapType_changed (GtkWidget *widget, XAP_UnixDialog_Image *dlg) |
Private Attributes | |
GtkWidget * | mMainWindow |
GtkWidget * | m_wAspectCheck |
GtkWidget * | m_wHeightSpin |
GtkWidget * | m_wHeightEntry |
GtkWidget * | m_wWidthSpin |
GtkWidget * | m_wWidthEntry |
GtkWidget * | m_wTitleEntry |
GtkWidget * | m_wDescriptionEntry |
GtkWidget * | m_wrbInLine |
GtkWidget * | m_wrbNone |
GtkWidget * | m_wrbWrappedRight |
GtkWidget * | m_wrbWrappedLeft |
GtkWidget * | m_wrbWrappedBoth |
GtkWidget * | m_wrbPlaceParagraph |
GtkWidget * | m_wrbPlaceColumn |
GtkWidget * | m_wrbPlacePage |
GtkWidget * | m_wrbSquareWrap |
GtkWidget * | m_wrbTightWrap |
GtkAdjustment * | m_oHeightSpin_adj |
GtkAdjustment * | m_oWidthSpin_adj |
guint | m_iHeightID |
guint | m_iWidthID |
UT_sint32 | m_iHeight |
UT_sint32 | m_iWidth |
bool | m_bAspect |
double | m_dHeightWidth |
enum XAP_UnixDialog_Image::ResponseId [private] |
XAP_UnixDialog_Image::XAP_UnixDialog_Image | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
Referenced by static_constructor().
XAP_UnixDialog_Image::~XAP_UnixDialog_Image | ( | void | ) | [virtual] |
void XAP_UnixDialog_Image::_connectSignals | ( | void | ) | [protected] |
References m_iHeightID, m_iWidthID, m_wAspectCheck, m_wHeightEntry, m_wHeightSpin, m_wrbInLine, m_wrbNone, m_wrbSquareWrap, m_wrbTightWrap, m_wrbWrappedBoth, m_wrbWrappedLeft, m_wrbWrappedRight, m_wWidthEntry, m_wWidthSpin, s_aspect_clicked(), s_HeightEntry_changed(), s_HeightEntry_FocusOut(), s_HeightSpin_changed(), s_WidthEntry_changed(), s_WidthEntry_FocusOut(), s_WidthSpin_changed(), and s_wrapping_changed().
Referenced by _constructWindow().
GtkWidget * XAP_UnixDialog_Image::_constructWindow | ( | void | ) | [protected, virtual] |
References _connectSignals(), abiDialogSetTitle(), XAP_Dialog_Image::getDescription(), XAP_Dialog_Image::getPreserveAspect(), XAP_App::getStringSet(), XAP_Dialog_Image::getTitle(), XAP_StringSet::getValueUTF8(), localizeButton(), localizeLabel(), localizeLabelMarkup(), m_bAspect, m_iHeight, m_iWidth, m_oHeightSpin_adj, m_oWidthSpin_adj, XAP_Dialog::m_pApp, m_wAspectCheck, m_wDescriptionEntry, m_wHeightEntry, m_wHeightSpin, m_wrbInLine, m_wrbNone, m_wrbPlaceColumn, m_wrbPlacePage, m_wrbPlaceParagraph, m_wrbSquareWrap, m_wrbTightWrap, m_wrbWrappedBoth, m_wrbWrappedLeft, m_wrbWrappedRight, m_wTitleEntry, m_wWidthEntry, m_wWidthSpin, mMainWindow, newDialogBuilder(), and s.
Referenced by runModal().
void XAP_UnixDialog_Image::_constructWindowContents | ( | GtkWidget * | container | ) | [protected] |
void XAP_UnixDialog_Image::adjustHeightForAspect | ( | void | ) | [private] |
References m_bAspect, and setHeightEntry().
Referenced by doWidthEntry(), and doWidthSpin().
void XAP_UnixDialog_Image::adjustWidthForAspect | ( | void | ) | [private] |
References m_bAspect, and setWidthEntry().
Referenced by doHeightEntry(), and doHeightSpin().
void XAP_UnixDialog_Image::aspectCheckbox | ( | ) | [private] |
References m_bAspect, m_dHeightWidth, m_wAspectCheck, and XAP_Dialog_Image::setPreserveAspect().
Referenced by s_aspect_clicked().
void XAP_UnixDialog_Image::doHeightEntry | ( | void | ) | [private] |
References adjustWidthForAspect(), DIM_none, XAP_Dialog_Image::getHeightString(), m_iHeightID, m_wHeightEntry, XAP_Dialog_Image::setHeight(), and UT_determineDimension().
Referenced by s_HeightEntry_changed(), and s_HeightEntry_FocusOut().
void XAP_UnixDialog_Image::doHeightSpin | ( | void | ) | [private] |
References adjustWidthForAspect(), XAP_Dialog_Image::getHeightString(), XAP_Dialog_Image::incrementHeight(), m_iHeight, m_wHeightEntry, and m_wHeightSpin.
Referenced by s_HeightSpin_changed().
void XAP_UnixDialog_Image::doWidthEntry | ( | void | ) | [private] |
References adjustHeightForAspect(), DIM_none, XAP_Dialog_Image::getWidthString(), m_iWidthID, m_wWidthEntry, XAP_Dialog_Image::setWidth(), and UT_determineDimension().
Referenced by s_WidthEntry_changed(), and s_WidthEntry_FocusOut().
void XAP_UnixDialog_Image::doWidthSpin | ( | void | ) | [private] |
References adjustHeightForAspect(), XAP_Dialog_Image::getWidthString(), XAP_Dialog_Image::incrementWidth(), m_iWidth, m_wWidthEntry, and m_wWidthSpin.
Referenced by s_WidthSpin_changed().
void XAP_UnixDialog_Image::event_Cancel | ( | void | ) | [private] |
References XAP_Dialog_Image::a_Cancel, and XAP_Dialog_Image::setAnswer().
Referenced by runModal().
void XAP_UnixDialog_Image::event_Ok | ( | void | ) | [private] |
References XAP_Dialog_Image::a_OK, m_wDescriptionEntry, m_wrbInLine, m_wrbNone, m_wrbPlaceColumn, m_wrbPlacePage, m_wrbPlaceParagraph, m_wrbTightWrap, m_wrbWrappedBoth, m_wrbWrappedLeft, m_wrbWrappedRight, m_wTitleEntry, POSITION_TO_COLUMN, POSITION_TO_PAGE, POSITION_TO_PARAGRAPH, XAP_Dialog_Image::setAnswer(), XAP_Dialog_Image::setDescription(), XAP_Dialog_Image::setPositionTo(), XAP_Dialog_Image::setTightWrap(), XAP_Dialog_Image::setTitle(), XAP_Dialog_Image::setWrapping(), WRAP_INLINE, WRAP_NONE, WRAP_TEXTBOTH, WRAP_TEXTLEFT, and WRAP_TEXTRIGHT.
Referenced by runModal().
void XAP_UnixDialog_Image::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements XAP_Dialog_Image.
References _constructWindow(), abiDestroyWidget(), abiRunModalDialog(), BUTTON_CANCEL, event_Cancel(), event_Ok(), XAP_Dialog_Image::getHeightString(), XAP_Dialog_Image::getWidthString(), m_dHeightWidth, m_wAspectCheck, setHeightEntry(), setPositionToGUI(), setWidthEntry(), setWrappingGUI(), UT_convertToInches(), UT_return_if_fail, and wrappingChanged().
void XAP_UnixDialog_Image::s_aspect_clicked | ( | GtkWidget * | widget, | |
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References aspectCheckbox(), and UT_return_if_fail.
Referenced by _connectSignals().
void XAP_UnixDialog_Image::s_HeightEntry_changed | ( | GtkWidget * | widget, | |
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References doHeightEntry(), and UT_return_if_fail.
Referenced by _connectSignals().
gboolean XAP_UnixDialog_Image::s_HeightEntry_FocusOut | ( | GtkWidget * | widget, | |
GdkEvent * | event, | |||
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References doHeightEntry(), UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by _connectSignals().
void XAP_UnixDialog_Image::s_HeightSpin_changed | ( | GtkWidget * | widget, | |
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References doHeightSpin(), and UT_return_if_fail.
Referenced by _connectSignals().
void XAP_UnixDialog_Image::s_WidthEntry_changed | ( | GtkWidget * | widget, | |
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References doWidthEntry(), and UT_return_if_fail.
Referenced by _connectSignals().
gboolean XAP_UnixDialog_Image::s_WidthEntry_FocusOut | ( | GtkWidget * | widget, | |
GdkEvent * | event, | |||
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References doWidthEntry(), UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by _connectSignals().
void XAP_UnixDialog_Image::s_WidthSpin_changed | ( | GtkWidget * | widget, | |
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References doWidthSpin(), and UT_return_if_fail.
Referenced by _connectSignals().
void XAP_UnixDialog_Image::s_wrapping_changed | ( | GtkWidget * | widget, | |
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
References UT_return_if_fail, and wrappingChanged().
Referenced by _connectSignals().
static void XAP_UnixDialog_Image::s_wrapType_changed | ( | GtkWidget * | widget, | |
XAP_UnixDialog_Image * | dlg | |||
) | [static, private] |
void XAP_UnixDialog_Image::setHeightEntry | ( | void | ) | [private] |
References XAP_Dialog_Image::getHeightString(), m_iHeightID, and m_wHeightEntry.
Referenced by adjustHeightForAspect(), and runModal().
void XAP_UnixDialog_Image::setPositionToGUI | ( | void | ) |
References XAP_Dialog_Image::getPositionTo(), XAP_Dialog_Image::isInHdrFtr(), m_wrbPlaceColumn, m_wrbPlacePage, m_wrbPlaceParagraph, POSITION_TO_COLUMN, POSITION_TO_PAGE, and POSITION_TO_PARAGRAPH.
Referenced by runModal().
void XAP_UnixDialog_Image::setWidthEntry | ( | void | ) | [private] |
References XAP_Dialog_Image::getWidthString(), m_iWidthID, and m_wWidthEntry.
Referenced by adjustWidthForAspect(), and runModal().
void XAP_UnixDialog_Image::setWrappingGUI | ( | void | ) |
References XAP_Dialog_Image::getWrapping(), XAP_Dialog_Image::isInHdrFtr(), XAP_Dialog_Image::isTightWrap(), m_wrbInLine, m_wrbNone, m_wrbSquareWrap, m_wrbTightWrap, m_wrbWrappedBoth, m_wrbWrappedLeft, m_wrbWrappedRight, WRAP_INLINE, WRAP_NONE, WRAP_TEXTBOTH, WRAP_TEXTLEFT, and WRAP_TEXTRIGHT.
Referenced by runModal().
XAP_Dialog * XAP_UnixDialog_Image::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References XAP_UnixDialog_Image().
void XAP_UnixDialog_Image::wrappingChanged | ( | void | ) | [private] |
References m_wrbInLine, m_wrbPlaceColumn, m_wrbPlacePage, m_wrbPlaceParagraph, m_wrbSquareWrap, and m_wrbTightWrap.
Referenced by runModal(), and s_wrapping_changed().
void XAP_UnixDialog_Image::wrapTypeChanged | ( | void | ) | [private] |
bool XAP_UnixDialog_Image::m_bAspect [private] |
Reimplemented from XAP_Dialog_Image.
Referenced by _constructWindow(), adjustHeightForAspect(), adjustWidthForAspect(), and aspectCheckbox().
double XAP_UnixDialog_Image::m_dHeightWidth [private] |
Referenced by aspectCheckbox(), and runModal().
UT_sint32 XAP_UnixDialog_Image::m_iHeight [private] |
Referenced by _constructWindow(), and doHeightSpin().
guint XAP_UnixDialog_Image::m_iHeightID [private] |
Referenced by _connectSignals(), doHeightEntry(), and setHeightEntry().
UT_sint32 XAP_UnixDialog_Image::m_iWidth [private] |
Referenced by _constructWindow(), and doWidthSpin().
guint XAP_UnixDialog_Image::m_iWidthID [private] |
Referenced by _connectSignals(), doWidthEntry(), and setWidthEntry().
GtkAdjustment* XAP_UnixDialog_Image::m_oHeightSpin_adj [private] |
Referenced by _constructWindow().
GtkAdjustment* XAP_UnixDialog_Image::m_oWidthSpin_adj [private] |
Referenced by _constructWindow().
GtkWidget* XAP_UnixDialog_Image::m_wAspectCheck [private] |
Referenced by _connectSignals(), _constructWindow(), aspectCheckbox(), and runModal().
GtkWidget* XAP_UnixDialog_Image::m_wDescriptionEntry [private] |
Referenced by _constructWindow(), and event_Ok().
GtkWidget* XAP_UnixDialog_Image::m_wHeightEntry [private] |
Referenced by _connectSignals(), _constructWindow(), doHeightEntry(), doHeightSpin(), and setHeightEntry().
GtkWidget* XAP_UnixDialog_Image::m_wHeightSpin [private] |
Referenced by _connectSignals(), _constructWindow(), and doHeightSpin().
GtkWidget* XAP_UnixDialog_Image::m_wrbInLine [private] |
Referenced by _connectSignals(), _constructWindow(), event_Ok(), setWrappingGUI(), and wrappingChanged().
GtkWidget* XAP_UnixDialog_Image::m_wrbNone [private] |
Referenced by _connectSignals(), _constructWindow(), event_Ok(), and setWrappingGUI().
GtkWidget* XAP_UnixDialog_Image::m_wrbPlaceColumn [private] |
Referenced by _constructWindow(), event_Ok(), setPositionToGUI(), and wrappingChanged().
GtkWidget* XAP_UnixDialog_Image::m_wrbPlacePage [private] |
Referenced by _constructWindow(), event_Ok(), setPositionToGUI(), and wrappingChanged().
GtkWidget* XAP_UnixDialog_Image::m_wrbPlaceParagraph [private] |
Referenced by _constructWindow(), event_Ok(), setPositionToGUI(), and wrappingChanged().
GtkWidget* XAP_UnixDialog_Image::m_wrbSquareWrap [private] |
Referenced by _connectSignals(), _constructWindow(), setWrappingGUI(), and wrappingChanged().
GtkWidget* XAP_UnixDialog_Image::m_wrbTightWrap [private] |
Referenced by _connectSignals(), _constructWindow(), event_Ok(), setWrappingGUI(), and wrappingChanged().
GtkWidget* XAP_UnixDialog_Image::m_wrbWrappedBoth [private] |
Referenced by _connectSignals(), _constructWindow(), event_Ok(), and setWrappingGUI().
GtkWidget* XAP_UnixDialog_Image::m_wrbWrappedLeft [private] |
Referenced by _connectSignals(), _constructWindow(), event_Ok(), and setWrappingGUI().
GtkWidget* XAP_UnixDialog_Image::m_wrbWrappedRight [private] |
Referenced by _connectSignals(), _constructWindow(), event_Ok(), and setWrappingGUI().
GtkWidget* XAP_UnixDialog_Image::m_wTitleEntry [private] |
Referenced by _constructWindow(), and event_Ok().
GtkWidget* XAP_UnixDialog_Image::m_wWidthEntry [private] |
Referenced by _connectSignals(), _constructWindow(), doWidthEntry(), doWidthSpin(), and setWidthEntry().
GtkWidget* XAP_UnixDialog_Image::m_wWidthSpin [private] |
Referenced by _connectSignals(), _constructWindow(), and doWidthSpin().
GtkWidget* XAP_UnixDialog_Image::mMainWindow [private] |
Referenced by _constructWindow().