#include <fox16_gui.hpp>
Data Structures | |
class | WinScope |
Public Types | |
enum | { ID_MAINWINDOW = 1 } |
typedef std::list< WinScope * > | WinScopePtrList |
Public Member Functions | |
virtual int | closeDialog (GWEN_DIALOG *dlg) |
FOX16_Gui (FXApp *a) | |
FXApp * | getApp () |
GWEN_GUI * | getCInterface () |
GWEN_GUI * | getCInterface () |
HTML_FONT * | getFont (const char *fontName, int fontSize, uint32_t fontFlags) |
FXWindow * | getGuiWindow (uint32_t id) |
virtual int | openDialog (GWEN_DIALOG *dlg, uint32_t guiid) |
virtual int | runDialog (GWEN_DIALOG *dlg, int untilEnd) |
~FOX16_Gui () | |
Static Public Member Functions | |
static CppGui * | getCppGui () |
static FOX16GUI_API CppGui * | getCppGui () |
static FOX16GUI_API FOX16_Gui * | getFgGui () |
static FOX16GUI_API FXString | getHtmlText (const char *text) |
static FOX16GUI_API FXString | getRawText (const char *text) |
Protected Member Functions | |
void | addWinScope (WinScope *ws) |
void | delWinScope (WinScope *ws) |
void | dumpScopeList () |
int | execDialog (GWEN_DIALOG *dlg, uint32_t guiid) |
HTML_FONT * | findFont (const char *fontName, int fontSize, uint32_t fontFlags) |
WinScope * | findWinScope (uint32_t id) |
WinScope * | findWinScopeExt (uint32_t id) |
int | getFileName (const char *caption, GWEN_GUI_FILENAME_TYPE fnt, uint32_t flags, const char *patterns, GWEN_BUFFER *pathBuffer, uint32_t guiid) |
uint32_t | getIdOfLastScope () |
uint32_t | getNextId () |
int | print (const char *docTitle, const char *docType, const char *descr, const char *text, uint32_t guiid) |
User Interaction | |
virtual int | getPassword (uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid) |
virtual int | getPassword (uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid) |
virtual int | setPasswordStatus (const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, uint32_t guiid) |
virtual int | setPasswordStatus (const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, uint32_t guiid) |
virtual int | checkCert (const GWEN_SSLCERTDESCR *cert, GWEN_SYNCIO *sio, uint32_t guiid) |
virtual int | checkCert (const GWEN_SSLCERTDESCR *cert, GWEN_SYNCIO *sio, uint32_t guiid) |
virtual int | logHook (const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s) |
virtual int | logHook (const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s) |
int | checkCertBuiltIn (const GWEN_SSLCERTDESCR *cert, GWEN_SYNCIO *sio, uint32_t guiid) |
int | checkCertBuiltIn (const GWEN_SSLCERTDESCR *cert, GWEN_SYNCIO *sio, uint32_t guiid) |
Protected Attributes | |
GWEN_GUI * | _gui |
FXApp * | m_app |
HTML_FONT_LIST * | m_fontList |
uint32_t | m_lastId |
WinScopePtrList | m_scopeList |
FOX16_GuiUpdater * | m_updater |
Definition at line 33 of file fox16_gui.hpp.
typedef std::list<WinScope*> WinScopePtrList |
Definition at line 62 of file fox16_gui.hpp.
anonymous enum |
Definition at line 64 of file fox16_gui.hpp.
FOX16_Gui | ( | FXApp * | a | ) |
Definition at line 79 of file fox16_gui.cpp.
References CppGui::_gui, GWEN_Gui_AddFlags(), GWEN_GUI_FLAGS_DIALOGSUPPORTED, GWEN_Gui_SetName(), GWEN_Gui_UseDialogs(), m_fontList, and m_updater.
~FOX16_Gui | ( | ) |
Definition at line 95 of file fox16_gui.cpp.
References DBG_ERROR, GWEN_LOGDOMAIN, m_fontList, m_scopeList, and m_updater.
void addWinScope | ( | WinScope * | ws | ) | [protected] |
Definition at line 122 of file fox16_gui.cpp.
References m_scopeList.
Referenced by FOX16_Gui::WinScope::WinScope().
int checkCert | ( | const GWEN_SSLCERTDESCR * | cert, | |
GWEN_SYNCIO * | sio, | |||
uint32_t | guiid | |||
) | [protected, virtual, inherited] |
Definition at line 405 of file cpp/cppgui.cpp.
References CppGui::checkCertBuiltIn().
virtual int checkCert | ( | const GWEN_SSLCERTDESCR * | cert, | |
GWEN_SYNCIO * | sio, | |||
uint32_t | guiid | |||
) | [protected, virtual, inherited] |
int checkCertBuiltIn | ( | const GWEN_SSLCERTDESCR * | cert, | |
GWEN_SYNCIO * | sio, | |||
uint32_t | guiid | |||
) | [protected, inherited] |
Definition at line 460 of file cpp/cppgui.cpp.
References CppGui::_gui, and DBG_ERROR.
Referenced by CppGui::checkCert().
int checkCertBuiltIn | ( | const GWEN_SSLCERTDESCR * | cert, | |
GWEN_SYNCIO * | sio, | |||
uint32_t | guiid | |||
) | [protected, inherited] |
int closeDialog | ( | GWEN_DIALOG * | dlg | ) | [virtual] |
Reimplemented from CppGui.
Definition at line 396 of file fox16_gui.cpp.
References FOX16_GuiDialog::closeDialog(), FOX16_GuiDialog::getDialog(), FOX16_GuiUpdater::guiUpdate(), and m_updater.
void delWinScope | ( | WinScope * | ws | ) | [protected] |
Definition at line 128 of file fox16_gui.cpp.
References m_scopeList.
Referenced by FOX16_Gui::WinScope::~WinScope().
void dumpScopeList | ( | ) | [protected] |
Definition at line 168 of file fox16_gui.cpp.
References m_scopeList, and FOX16_Gui::WinScope::WIN_SCOPE_TYPE_WINDOW.
int execDialog | ( | GWEN_DIALOG * | dlg, | |
uint32_t | guiid | |||
) | [protected, virtual] |
Reimplemented from CppGui.
Definition at line 356 of file fox16_gui.cpp.
References FOX16_GuiDialog::execute(), m_app, and FOX16_GuiDialog::setup().
HTML_FONT * findFont | ( | const char * | fontName, | |
int | fontSize, | |||
uint32_t | fontFlags | |||
) | [protected] |
Definition at line 519 of file fox16_gui.cpp.
References HtmlFont_GetFontFlags(), HtmlFont_GetFontName(), HtmlFont_GetFontSize(), and m_fontList.
Referenced by getFont().
FOX16_Gui::WinScope * findWinScope | ( | uint32_t | id | ) | [protected] |
Definition at line 134 of file fox16_gui.cpp.
References m_scopeList.
WinScope* findWinScopeExt | ( | uint32_t | id | ) | [protected] |
FXApp* getApp | ( | ) | [inline] |
Definition at line 71 of file fox16_gui.hpp.
References m_app.
GWEN_GUI * getCInterface | ( | ) | [inherited] |
GWEN_GUI* getCInterface | ( | ) | [inherited] |
CppGui * getCppGui | ( | ) | [static, inherited] |
Definition at line 522 of file cpp/cppgui.cpp.
References GWEN_Gui_GetGui(), GWEN_INHERIT_GETDATA, and NULL.
Referenced by getFgGui().
static FOX16GUI_API CppGui* getCppGui | ( | ) | [static, inherited] |
FOX16_Gui * getFgGui | ( | ) | [static] |
Definition at line 156 of file fox16_gui.cpp.
References CppGui::getCppGui().
Referenced by FOX16_HtmlCtx::getFont(), FOX16_Gui::WinScope::WinScope(), and FOX16_Gui::WinScope::~WinScope().
int getFileName | ( | const char * | caption, | |
GWEN_GUI_FILENAME_TYPE | fnt, | |||
uint32_t | flags, | |||
const char * | patterns, | |||
GWEN_BUFFER * | pathBuffer, | |||
uint32_t | guiid | |||
) | [protected, virtual] |
Reimplemented from CppGui.
Definition at line 427 of file fox16_gui.cpp.
References DBG_ERROR, GWEN_Buffer_AppendString(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_Reset(), GWEN_Gui_FileNameType_OpenDirectory, GWEN_Gui_FileNameType_OpenFileName, GWEN_Gui_FileNameType_SaveFileName, GWEN_LOGDOMAIN, m_app, and NULL.
HTML_FONT * getFont | ( | const char * | fontName, | |
int | fontSize, | |||
uint32_t | fontFlags | |||
) |
Definition at line 543 of file fox16_gui.cpp.
References findFont(), HtmlFont_new(), HtmlFont_SetFontFlags(), HtmlFont_SetFontName(), HtmlFont_SetFontSize(), and m_fontList.
Referenced by FOX16_HtmlCtx::getFont().
FXWindow * getGuiWindow | ( | uint32_t | id | ) |
Definition at line 149 of file fox16_gui.cpp.
References m_app.
FXString getHtmlText | ( | const char * | text | ) | [static] |
Definition at line 285 of file fox16_gui.cpp.
References NULL.
Referenced by FOX16_GuiDialog::setCharProperty(), and FOX16_GuiDialog::setupTree().
uint32_t getIdOfLastScope | ( | ) | [protected] |
Definition at line 113 of file fox16_gui.cpp.
References m_scopeList.
Referenced by FOX16_Gui::WinScope::WinScope().
uint32_t getNextId | ( | ) | [protected] |
Definition at line 107 of file fox16_gui.cpp.
References m_lastId.
Referenced by FOX16_Gui::WinScope::WinScope().
int getPassword | ( | uint32_t | flags, | |
const char * | token, | |||
const char * | title, | |||
const char * | text, | |||
char * | buffer, | |||
int | minLen, | |||
int | maxLen, | |||
uint32_t | guiid | |||
) | [protected, virtual, inherited] |
Definition at line 298 of file cpp/cppgui.cpp.
References GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_GetCharValue(), GWEN_GUI_INPUT_FLAGS_CONFIRM, GWEN_GUI_INPUT_FLAGS_TAN, GWEN_Gui_InputBox(), GWEN_Gui_MessageBox(), GWEN_GUI_MSG_FLAGS_CONFIRM_B1, GWEN_GUI_MSG_FLAGS_SEVERITY_DANGEROUS, GWEN_GUI_MSG_FLAGS_TYPE_ERROR, GWEN_Text_EscapeToBufferTolerant(), I18N, and NULL.
virtual int getPassword | ( | uint32_t | flags, | |
const char * | token, | |||
const char * | title, | |||
const char * | text, | |||
char * | buffer, | |||
int | minLen, | |||
int | maxLen, | |||
uint32_t | guiid | |||
) | [protected, virtual, inherited] |
FXString getRawText | ( | const char * | text | ) | [static] |
Definition at line 205 of file fox16_gui.cpp.
References NULL.
Referenced by FOX16_GuiDialog::setCharProperty().
int logHook | ( | const char * | logDomain, | |
GWEN_LOGGER_LEVEL | priority, | |||
const char * | s | |||
) | [protected, virtual, inherited] |
Definition at line 413 of file cpp/cppgui.cpp.
virtual int logHook | ( | const char * | logDomain, | |
GWEN_LOGGER_LEVEL | priority, | |||
const char * | s | |||
) | [protected, virtual, inherited] |
int openDialog | ( | GWEN_DIALOG * | dlg, | |
uint32_t | guiid | |||
) | [virtual] |
Reimplemented from CppGui.
Definition at line 373 of file fox16_gui.cpp.
References FOX16_GuiUpdater::guiUpdate(), m_app, m_updater, FOX16_GuiDialog::openDialog(), and FOX16_GuiDialog::setup().
int print | ( | const char * | docTitle, | |
const char * | docType, | |||
const char * | descr, | |||
const char * | text, | |||
uint32_t | guiid | |||
) | [protected, virtual] |
See CppGui_Print
Reimplemented from CppGui.
Definition at line 194 of file fox16_gui.cpp.
References DBG_ERROR, and GWEN_LOGDOMAIN.
int runDialog | ( | GWEN_DIALOG * | dlg, | |
int | untilEnd | |||
) | [virtual] |
Reimplemented from CppGui.
Definition at line 411 of file fox16_gui.cpp.
References FOX16_GuiDialog::cont(), FOX16_GuiDialog::getDialog(), FOX16_GuiUpdater::guiUpdate(), and m_updater.
virtual int setPasswordStatus | ( | const char * | token, | |
const char * | pin, | |||
GWEN_GUI_PASSWORD_STATUS | status, | |||
uint32_t | guiid | |||
) | [protected, virtual, inherited] |
int setPasswordStatus | ( | const char * | token, | |
const char * | pin, | |||
GWEN_GUI_PASSWORD_STATUS | status, | |||
uint32_t | guiid | |||
) | [protected, virtual, inherited] |
Definition at line 473 of file cpp/cppgui.cpp.
References GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_ClearGroup(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), GWEN_Gui_PasswordStatus_Bad, GWEN_Gui_PasswordStatus_Ok, GWEN_Gui_PasswordStatus_Remove, GWEN_Text_EscapeToBufferTolerant(), and NULL.
Definition at line 67 of file cpp/cppgui.hpp.
Referenced by CppGui::checkCertBuiltIn(), CppGui::CppGui(), FOX16_Gui(), CppGui::getCInterface(), CppGui::print(), QT4_Gui::QT4_Gui(), and CppGui::~CppGui().
FXApp* m_app [protected] |
Definition at line 122 of file fox16_gui.hpp.
Referenced by execDialog(), getApp(), getFileName(), getGuiWindow(), and openDialog().
HTML_FONT_LIST* m_fontList [protected] |
Definition at line 128 of file fox16_gui.hpp.
Referenced by findFont(), FOX16_Gui(), getFont(), and ~FOX16_Gui().
uint32_t m_lastId [protected] |
Definition at line 124 of file fox16_gui.hpp.
Referenced by getNextId().
WinScopePtrList m_scopeList [protected] |
Definition at line 123 of file fox16_gui.hpp.
Referenced by addWinScope(), delWinScope(), dumpScopeList(), findWinScope(), getIdOfLastScope(), and ~FOX16_Gui().
FOX16_GuiUpdater* m_updater [protected] |
Definition at line 126 of file fox16_gui.hpp.
Referenced by closeDialog(), FOX16_Gui(), openDialog(), runDialog(), and ~FOX16_Gui().