gwenhywfar  4.8.0beta
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
FOX16_GuiDialog Class Reference

#include <fox16_gui_dialog_l.hpp>

Inheritance diagram for FOX16_GuiDialog:
CppDialog

Data Structures

class  RadioButtonGroup
 

Public Types

enum  { ID_WIDGET_FIRST =1, ID_WIDGET_LAST =1000, ID_LAST }
 

Public Member Functions

int closeDialog ()
 
int cont ()
 
int execute ()
 
 FOX16_GuiDialog (FOX16_Gui *gui, GWEN_DIALOG *dlg)
 
GWEN_DIALOGgetCInterface ()
 
FXIcon * getIcon (const char *fileName)
 
FXDialogBox * getMainWindow ()
 
long onSelChanged (FXObject *sender, FXSelector sel, void *ptr)
 
long onSelCommand (FXObject *sender, FXSelector sel, void *ptr)
 
long onSelKeyPress (FXObject *sender, FXSelector sel, void *ptr)
 
long onSelKeyRelease (FXObject *sender, FXSelector sel, void *ptr)
 
int openDialog ()
 
bool setup (FXWindow *parentWindow)
 
virtual ~FOX16_GuiDialog ()
 

Static Public Member Functions

static FOX16_GuiDialoggetDialog (GWEN_DIALOG *dlg)
 

Protected Member Functions

int emitSignal (GWEN_DIALOG_EVENTTYPE t, const char *sender)
 
GWEN_WIDGETfindWidgetByImplData (int index, void *ptr)
 
GWEN_WIDGETfindWidgetByName (const char *name)
 
 FOX16_GuiDialog ()
 
virtual const char * getCharProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
 
virtual int getIntProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
 
GWEN_WIDGET_TREE * getWidgets () const
 
void guiUpdate ()
 
virtual int setCharProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
 
virtual int setIntProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
 
FXWindow * setupTree (FXWindow *parentWindow, GWEN_WIDGET *w)
 

Protected Attributes

GWEN_DIALOG_dialog
 
FOX16_Gui_gui
 
FXDialogBox * _mainWidget
 
int _widgetCount
 
std::list< FXIcon * > m_iconList
 
FXIconSource * m_iconSource
 
std::list< RadioButtonGroup * > m_radioGroups
 
bool m_sizeChanged
 

Detailed Description

Definition at line 26 of file fox16_gui_dialog_l.hpp.

Member Enumeration Documentation

anonymous enum
Enumerator
ID_WIDGET_FIRST 
ID_WIDGET_LAST 
ID_LAST 

Definition at line 64 of file fox16_gui_dialog_l.hpp.

Constructor & Destructor Documentation

FOX16_GuiDialog ( FOX16_Gui gui,
GWEN_DIALOG dlg 
)

Definition at line 67 of file fox16_gui_dialog.cpp.

~FOX16_GuiDialog ( )
virtual

Definition at line 80 of file fox16_gui_dialog.cpp.

References _mainWidget, m_iconList, m_iconSource, and m_radioGroups.

FOX16_GuiDialog ( )
protected

Definition at line 54 of file fox16_gui_dialog.cpp.

Member Function Documentation

int closeDialog ( )
int cont ( )

Definition at line 2314 of file fox16_gui_dialog.cpp.

References _mainWidget.

Referenced by FOX16_Gui::runDialog().

int emitSignal ( GWEN_DIALOG_EVENTTYPE  t,
const char *  sender 
)
protectedinherited

Definition at line 220 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_EmitSignal().

int execute ( )
GWEN_WIDGET * findWidgetByImplData ( int  index,
void *  ptr 
)
protectedinherited

Definition at line 241 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_FindWidgetByImplData().

GWEN_WIDGET * findWidgetByName ( const char *  name)
protectedinherited

Definition at line 234 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_FindWidgetByName().

const char * getCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  defaultValue 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 1243 of file fox16_gui_dialog.cpp.

References DBG_ERROR, DBG_WARN, FOX16_DIALOG_STRING_TITLE, FOX16_DIALOG_STRING_VALUE, FOX16_DIALOG_WIDGET_REAL, FOX16_HtmlText::getText(), FOX16_HtmlLabel::getText(), GWEN_DialogProperty_AddValue, GWEN_DialogProperty_ClearValues, GWEN_DialogProperty_ColumnWidth, GWEN_DialogProperty_Enabled, GWEN_DialogProperty_Focus, GWEN_DialogProperty_Height, GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_MinValue, GWEN_DialogProperty_None, GWEN_DialogProperty_SelectionMode, GWEN_DialogProperty_SelectionState, GWEN_DialogProperty_Sort, GWEN_DialogProperty_SortDirection, GWEN_DialogProperty_Title, GWEN_DialogProperty_ToolTip, GWEN_DialogProperty_Unknown, GWEN_DialogProperty_Value, GWEN_DialogProperty_ValueCount, GWEN_DialogProperty_Visibility, GWEN_DialogProperty_Width, GWEN_LOGDOMAIN, GWEN_Widget_GetImplData(), GWEN_Widget_GetText(), GWEN_Widget_GetType(), GWEN_Widget_SetText(), GWEN_Widget_Type_toString(), GWEN_Widget_TypeCheckBox, GWEN_Widget_TypeComboBox, GWEN_Widget_TypeDialog, GWEN_Widget_TypeGridLayout, GWEN_Widget_TypeGroupBox, GWEN_Widget_TypeHLayout, GWEN_Widget_TypeHLine, GWEN_Widget_TypeHSpacer, GWEN_Widget_TypeLabel, GWEN_Widget_TypeLineEdit, GWEN_Widget_TypeListBox, GWEN_Widget_TypeNone, GWEN_Widget_TypeProgressBar, GWEN_Widget_TypePushButton, GWEN_Widget_TypeRadioButton, GWEN_Widget_TypeScrollArea, GWEN_Widget_TypeSpinBox, GWEN_Widget_TypeTabBook, GWEN_Widget_TypeTabPage, GWEN_Widget_TypeTextBrowser, GWEN_Widget_TypeTextEdit, GWEN_Widget_TypeUnknown, GWEN_Widget_TypeVLayout, GWEN_Widget_TypeVLine, GWEN_Widget_TypeVSpacer, GWEN_Widget_TypeWidgetStack, THEMEBUTTON, THEMECOMBOBOX, and THEMETABITEM.

GWEN_DIALOG * getCInterface ( )
inherited
FOX16_GuiDialog * getDialog ( GWEN_DIALOG dlg)
static

Definition at line 103 of file fox16_gui_dialog.cpp.

References CppDialog::getDialog(), and NULL.

Referenced by FOX16_Gui::closeDialog(), and FOX16_Gui::runDialog().

FXIcon * getIcon ( const char *  fileName)
int getIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  defaultValue 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 560 of file fox16_gui_dialog.cpp.

References DBG_ERROR, DBG_WARN, FOX16_DIALOG_WIDGET_REAL, FOX16_GuiSortingList::getHeaderArrowDir(), GWEN_Dialog_SelectionMode_Multi, GWEN_Dialog_SelectionMode_None, GWEN_Dialog_SelectionMode_Single, GWEN_DialogProperty_AddValue, GWEN_DialogProperty_ClearValues, GWEN_DialogProperty_ColumnWidth, GWEN_DialogProperty_Enabled, GWEN_DialogProperty_Focus, GWEN_DialogProperty_Height, GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_MinValue, GWEN_DialogProperty_None, GWEN_DialogProperty_SelectionMode, GWEN_DialogProperty_SelectionState, GWEN_DialogProperty_Sort, GWEN_DialogProperty_SortDirection, GWEN_DialogProperty_Title, GWEN_DialogProperty_ToolTip, GWEN_DialogProperty_Unknown, GWEN_DialogProperty_Value, GWEN_DialogProperty_ValueCount, GWEN_DialogProperty_Visibility, GWEN_DialogProperty_Width, GWEN_DialogSortDirection_Down, GWEN_DialogSortDirection_None, GWEN_DialogSortDirection_Up, GWEN_LOGDOMAIN, GWEN_Widget_GetImplData(), GWEN_Widget_GetType(), GWEN_Widget_Type_toString(), GWEN_Widget_TypeCheckBox, GWEN_Widget_TypeComboBox, GWEN_Widget_TypeDialog, GWEN_Widget_TypeGridLayout, GWEN_Widget_TypeGroupBox, GWEN_Widget_TypeHLayout, GWEN_Widget_TypeHLine, GWEN_Widget_TypeHSpacer, GWEN_Widget_TypeLabel, GWEN_Widget_TypeLineEdit, GWEN_Widget_TypeListBox, GWEN_Widget_TypeNone, GWEN_Widget_TypeProgressBar, GWEN_Widget_TypePushButton, GWEN_Widget_TypeRadioButton, GWEN_Widget_TypeScrollArea, GWEN_Widget_TypeSpinBox, GWEN_Widget_TypeTabBook, GWEN_Widget_TypeTabPage, GWEN_Widget_TypeTextBrowser, GWEN_Widget_TypeTextEdit, GWEN_Widget_TypeUnknown, GWEN_Widget_TypeVLayout, GWEN_Widget_TypeVLine, GWEN_Widget_TypeVSpacer, GWEN_Widget_TypeWidgetStack, NULL, and THEMECOMBOBOX.

FXDialogBox* getMainWindow ( )
inline

Definition at line 91 of file fox16_gui_dialog_l.hpp.

References _mainWidget.

GWEN_WIDGET_TREE * getWidgets ( ) const
protectedinherited

Definition at line 227 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_GetWidgets().

void guiUpdate ( )
protected
long onSelChanged ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
long onSelCommand ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
long onSelKeyPress ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
long onSelKeyRelease ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)
int openDialog ( )

Definition at line 2323 of file fox16_gui_dialog.cpp.

References _mainWidget.

Referenced by FOX16_Gui::openDialog().

int setCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  value,
int  doSignal 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 870 of file fox16_gui_dialog.cpp.

References DBG_WARN, FOX16_DIALOG_WIDGET_REAL, FOX16_Gui::getHtmlText(), FOX16_Gui::getRawText(), FOX16_HtmlText::getText(), GWEN_DialogProperty_AddValue, GWEN_DialogProperty_ClearValues, GWEN_DialogProperty_ColumnWidth, GWEN_DialogProperty_Enabled, GWEN_DialogProperty_Focus, GWEN_DialogProperty_Height, GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_MinValue, GWEN_DialogProperty_None, GWEN_DialogProperty_SelectionMode, GWEN_DialogProperty_SelectionState, GWEN_DialogProperty_Sort, GWEN_DialogProperty_SortDirection, GWEN_DialogProperty_Title, GWEN_DialogProperty_ToolTip, GWEN_DialogProperty_Unknown, GWEN_DialogProperty_Value, GWEN_DialogProperty_ValueCount, GWEN_DialogProperty_Visibility, GWEN_DialogProperty_Width, GWEN_ERROR_GENERIC, GWEN_ERROR_INVALID, GWEN_Widget_GetImplData(), GWEN_Widget_GetType(), GWEN_Widget_Type_toString(), GWEN_Widget_TypeCheckBox, GWEN_Widget_TypeComboBox, GWEN_Widget_TypeDialog, GWEN_Widget_TypeGridLayout, GWEN_Widget_TypeGroupBox, GWEN_Widget_TypeHLayout, GWEN_Widget_TypeHLine, GWEN_Widget_TypeHSpacer, GWEN_Widget_TypeLabel, GWEN_Widget_TypeLineEdit, GWEN_Widget_TypeListBox, GWEN_Widget_TypeNone, GWEN_Widget_TypeProgressBar, GWEN_Widget_TypePushButton, GWEN_Widget_TypeRadioButton, GWEN_Widget_TypeScrollArea, GWEN_Widget_TypeSpinBox, GWEN_Widget_TypeTabBook, GWEN_Widget_TypeTabPage, GWEN_Widget_TypeTextBrowser, GWEN_Widget_TypeTextEdit, GWEN_Widget_TypeUnknown, GWEN_Widget_TypeVLayout, GWEN_Widget_TypeVLine, GWEN_Widget_TypeVSpacer, GWEN_Widget_TypeWidgetStack, FOX16_HtmlText::makePositionVisible(), NULL, FOX16_HtmlText::setText(), FOX16_HtmlLabel::setText(), THEMEBUTTON, THEMECOMBOBOX, and THEMETABITEM.

int setIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  value,
int  doSignal 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 174 of file fox16_gui_dialog.cpp.

References DBG_DEBUG, DBG_ERROR, DBG_WARN, FOX16_DIALOG_WIDGET_REAL, FOX16_GuiSortingList::getHeaderArrowDir(), FOX16_GuiSortingList::getItem(), GWEN_Dialog_SelectionMode_Multi, GWEN_Dialog_SelectionMode_None, GWEN_Dialog_SelectionMode_Single, GWEN_DialogProperty_AddValue, GWEN_DialogProperty_ClearValues, GWEN_DialogProperty_ColumnWidth, GWEN_DialogProperty_Enabled, GWEN_DialogProperty_Focus, GWEN_DialogProperty_Height, GWEN_DialogProperty_MaxValue, GWEN_DialogProperty_MinValue, GWEN_DialogProperty_None, GWEN_DialogProperty_SelectionMode, GWEN_DialogProperty_SelectionState, GWEN_DialogProperty_Sort, GWEN_DialogProperty_SortDirection, GWEN_DialogProperty_Title, GWEN_DialogProperty_ToolTip, GWEN_DialogProperty_Unknown, GWEN_DialogProperty_Value, GWEN_DialogProperty_ValueCount, GWEN_DialogProperty_Visibility, GWEN_DialogProperty_Width, GWEN_DialogSortDirection_Down, GWEN_DialogSortDirection_None, GWEN_DialogSortDirection_Up, GWEN_ERROR_GENERIC, GWEN_ERROR_INVALID, GWEN_LOGDOMAIN, GWEN_Widget_GetImplData(), GWEN_Widget_GetName(), GWEN_Widget_GetType(), GWEN_Widget_Type_toString(), GWEN_Widget_TypeCheckBox, GWEN_Widget_TypeComboBox, GWEN_Widget_TypeDialog, GWEN_Widget_TypeGridLayout, GWEN_Widget_TypeGroupBox, GWEN_Widget_TypeHLayout, GWEN_Widget_TypeHLine, GWEN_Widget_TypeHSpacer, GWEN_Widget_TypeLabel, GWEN_Widget_TypeLineEdit, GWEN_Widget_TypeListBox, GWEN_Widget_TypeNone, GWEN_Widget_TypeProgressBar, GWEN_Widget_TypePushButton, GWEN_Widget_TypeRadioButton, GWEN_Widget_TypeScrollArea, GWEN_Widget_TypeSpinBox, GWEN_Widget_TypeTabBook, GWEN_Widget_TypeTabPage, GWEN_Widget_TypeTextBrowser, GWEN_Widget_TypeTextEdit, GWEN_Widget_TypeUnknown, GWEN_Widget_TypeVLayout, GWEN_Widget_TypeVLine, GWEN_Widget_TypeVSpacer, GWEN_Widget_TypeWidgetStack, m_sizeChanged, NULL, FOX16_GuiSortingList::setHeaderArrowDir(), FOX16_GuiSortingList::sortByColumn(), and THEMECOMBOBOX.

bool setup ( FXWindow *  parentWindow)
FXWindow * setupTree ( FXWindow *  parentWindow,
GWEN_WIDGET w 
)
protected

Definition at line 1939 of file fox16_gui_dialog.cpp.

References CppDialog::_dialog, _widgetCount, FOX16_GuiDialog::RadioButtonGroup::addButton(), FOX16_HtmlLabel::addMediaPath(), DBG_ERROR, FOX16_HtmlLabel::FLAGS_NO_WORDWRAP, FOX16_DIALOG_WIDGET_CONTENT, FOX16_DIALOG_WIDGET_REAL, FOX16_GuiDialog::RadioButtonGroup::getButtonCount(), FOX16_GuiDialog::RadioButtonGroup::getDataTarget(), FOX16_Gui::getHtmlText(), getIcon(), GWEN_Dialog_GetMediaPaths(), GWEN_LOGDOMAIN, GWEN_StringList_FirstEntry(), GWEN_StringListEntry_Data(), GWEN_StringListEntry_Next(), GWEN_WIDGET_FLAGS_DECOR_CLOSE, GWEN_WIDGET_FLAGS_DECOR_MAXIMIZE, GWEN_WIDGET_FLAGS_DECOR_MENU, GWEN_WIDGET_FLAGS_DECOR_MINIMIZE, GWEN_WIDGET_FLAGS_DECOR_SHRINKABLE, GWEN_WIDGET_FLAGS_DECOR_STRETCHABLE, GWEN_WIDGET_FLAGS_DEFAULT_WIDGET, GWEN_WIDGET_FLAGS_EQUAL_HEIGHT, GWEN_WIDGET_FLAGS_EQUAL_WIDTH, GWEN_WIDGET_FLAGS_FILLX, GWEN_WIDGET_FLAGS_FILLY, GWEN_WIDGET_FLAGS_JUSTIFY_BOTTOM, GWEN_WIDGET_FLAGS_JUSTIFY_CENTERX, GWEN_WIDGET_FLAGS_JUSTIFY_CENTERY, GWEN_WIDGET_FLAGS_JUSTIFY_LEFT, GWEN_WIDGET_FLAGS_JUSTIFY_RIGHT, GWEN_WIDGET_FLAGS_JUSTIFY_TOP, GWEN_WIDGET_FLAGS_NO_WORDWRAP, GWEN_WIDGET_FLAGS_PASSWORD, GWEN_WIDGET_FLAGS_READONLY, GWEN_Widget_GetColumns(), GWEN_Widget_GetFlags(), GWEN_Widget_GetGroupId(), GWEN_Widget_GetIconFileName(), GWEN_Widget_GetName(), GWEN_Widget_GetRows(), GWEN_Widget_GetText(), GWEN_Widget_GetType(), GWEN_Widget_GetWidth(), GWEN_Widget_SetImplData(), GWEN_Widget_TypeCheckBox, GWEN_Widget_TypeComboBox, GWEN_Widget_TypeDialog, GWEN_Widget_TypeGridLayout, GWEN_Widget_TypeGroupBox, GWEN_Widget_TypeHLayout, GWEN_Widget_TypeHLine, GWEN_Widget_TypeHSpacer, GWEN_Widget_TypeLabel, GWEN_Widget_TypeLineEdit, GWEN_Widget_TypeListBox, GWEN_Widget_TypeNone, GWEN_Widget_TypeProgressBar, GWEN_Widget_TypePushButton, GWEN_Widget_TypeRadioButton, GWEN_Widget_TypeScrollArea, GWEN_Widget_TypeSpinBox, GWEN_Widget_TypeTabBook, GWEN_Widget_TypeTabPage, GWEN_Widget_TypeTextBrowser, GWEN_Widget_TypeTextEdit, GWEN_Widget_TypeUnknown, GWEN_Widget_TypeVLayout, GWEN_Widget_TypeVLine, GWEN_Widget_TypeVSpacer, GWEN_Widget_TypeWidgetStack, ID_WIDGET_FIRST, m_radioGroups, NULL, FOX16_HtmlLabel::setIcon(), FOX16_HtmlLabel::setMaxDefaultWidth(), THEMEBUTTON, THEMECOMBOBOX, and THEMETABITEM.

Referenced by setup().

Field Documentation

GWEN_DIALOG* _dialog
protectedinherited
FOX16_Gui* _gui
protected

Definition at line 91 of file fox16_gui_dialog_l.hpp.

FXDialogBox* _mainWidget
protected
int _widgetCount
protected

Definition at line 95 of file fox16_gui_dialog_l.hpp.

Referenced by setupTree().

std::list<FXIcon*> m_iconList
protected

Definition at line 98 of file fox16_gui_dialog_l.hpp.

Referenced by getIcon(), and ~FOX16_GuiDialog().

FXIconSource* m_iconSource
protected

Definition at line 97 of file fox16_gui_dialog_l.hpp.

Referenced by getIcon(), and ~FOX16_GuiDialog().

std::list<RadioButtonGroup*> m_radioGroups
protected

Definition at line 99 of file fox16_gui_dialog_l.hpp.

Referenced by onSelCommand(), setupTree(), and ~FOX16_GuiDialog().

bool m_sizeChanged
protected

Definition at line 100 of file fox16_gui_dialog_l.hpp.

Referenced by setIntProperty(), and setup().


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