gwenhywfar  5.10.1
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
FOX16_Gui Class Reference

#include <fox16_gui.hpp>

Inheritance diagram for FOX16_Gui:
Inheritance graph
[legend]
Collaboration diagram for FOX16_Gui:
Collaboration graph
[legend]

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_GUIgetCInterface ()
 
HTML_FONTgetFont (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)
 
void setPasswordDb (GWEN_DB_NODE *dbPasswords, int persistent)
 
void setPasswordStore (GWEN_PASSWD_STORE *sto)
 
 ~FOX16_Gui ()
 

Static Public Member Functions

static CPPGUI_API CppGuigetCppGui ()
 
static FOX16GUI_API FOX16_GuigetFgGui ()
 
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_FONTfindFont (const char *fontName, int fontSize, uint32_t fontFlags)
 
WinScopefindWinScope (uint32_t id)
 
WinScopefindWinScopeExt (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, GWEN_GUI_PASSWORD_METHOD methodId, GWEN_DB_NODE *methodParams, 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 logHook (const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s)
 
int checkCertBuiltIn (const GWEN_SSLCERTDESCR *cert, GWEN_SYNCIO *sio, uint32_t guiid)
 

Protected Attributes

GWEN_GUI_gui
 
FXApp * m_app
 
HTML_FONT_LISTm_fontList
 
uint32_t m_lastId
 
WinScopePtrList m_scopeList
 
FOX16_GuiUpdaterm_updater
 

Detailed Description

Definition at line 34 of file fox16_gui.hpp.

Member Typedef Documentation

◆ WinScopePtrList

typedef std::list<WinScope*> WinScopePtrList

Definition at line 63 of file fox16_gui.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_MAINWINDOW 

Definition at line 65 of file fox16_gui.hpp.

Constructor & Destructor Documentation

◆ FOX16_Gui()

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(), HtmlFont_List_new(), m_fontList, and m_updater.

Here is the call graph for this function:

◆ ~FOX16_Gui()

~FOX16_Gui ( )

Definition at line 94 of file fox16_gui.cpp.

References DBG_ERROR, GWEN_LOGDOMAIN, HtmlFont_List_free(), m_fontList, m_scopeList, and m_updater.

Here is the call graph for this function:

Member Function Documentation

◆ addWinScope()

void addWinScope ( WinScope ws)
protected

Definition at line 121 of file fox16_gui.cpp.

References m_scopeList.

Referenced by FOX16_Gui::WinScope::WinScope().

Here is the caller graph for this function:

◆ checkCert()

int checkCert ( const GWEN_SSLCERTDESCR cert,
GWEN_SYNCIO sio,
uint32_t  guiid 
)
protectedvirtualinherited

Definition at line 248 of file cppgui.cpp.

References CppGui::checkCertBuiltIn().

Here is the call graph for this function:

◆ checkCertBuiltIn()

int checkCertBuiltIn ( const GWEN_SSLCERTDESCR cert,
GWEN_SYNCIO sio,
uint32_t  guiid 
)
protectedinherited

Definition at line 316 of file cppgui.cpp.

References CppGui::_gui, DBG_ERROR, and GWEN_ERROR_NOT_SUPPORTED.

Referenced by CppGui::checkCert().

Here is the caller graph for this function:

◆ closeDialog()

int closeDialog ( GWEN_DIALOG dlg)
virtual

Reimplemented from CppGui.

Definition at line 395 of file fox16_gui.cpp.

References FOX16_GuiDialog::closeDialog(), FOX16_GuiDialog::getDialog(), FOX16_GuiUpdater::guiUpdate(), and m_updater.

Here is the call graph for this function:

◆ delWinScope()

void delWinScope ( WinScope ws)
protected

Definition at line 127 of file fox16_gui.cpp.

References m_scopeList.

Referenced by FOX16_Gui::WinScope::~WinScope().

Here is the caller graph for this function:

◆ dumpScopeList()

void dumpScopeList ( )
protected

Definition at line 167 of file fox16_gui.cpp.

References m_scopeList, and FOX16_Gui::WinScope::WIN_SCOPE_TYPE_WINDOW.

◆ execDialog()

int execDialog ( GWEN_DIALOG dlg,
uint32_t  guiid 
)
protectedvirtual

Reimplemented from CppGui.

Definition at line 355 of file fox16_gui.cpp.

References FOX16_GuiDialog::execute(), GWEN_ERROR_GENERIC, m_app, and FOX16_GuiDialog::setup().

Here is the call graph for this function:

◆ findFont()

HTML_FONT * findFont ( const char *  fontName,
int  fontSize,
uint32_t  fontFlags 
)
protected

Definition at line 518 of file fox16_gui.cpp.

References HtmlFont_GetFontFlags(), HtmlFont_GetFontName(), HtmlFont_GetFontSize(), HtmlFont_List_First(), HtmlFont_List_Next(), and m_fontList.

Referenced by getFont().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findWinScope()

FOX16_Gui::WinScope * findWinScope ( uint32_t  id)
protected

Definition at line 133 of file fox16_gui.cpp.

References m_scopeList, and NULL.

◆ findWinScopeExt()

WinScope* findWinScopeExt ( uint32_t  id)
protected

◆ getApp()

FXApp* getApp ( )
inline

Definition at line 72 of file fox16_gui.hpp.

References m_app.

◆ getCInterface()

GWEN_GUI * getCInterface ( )
inherited

Definition at line 373 of file cppgui.cpp.

References CppGui::_gui.

Referenced by test1(), test10(), test11(), test12(), test2(), test3(), test4(), test5(), test6(), test7(), test8(), and test9().

Here is the caller graph for this function:

◆ getCppGui()

CppGui * getCppGui ( )
staticinherited

Definition at line 379 of file cppgui.cpp.

References GWEN_Gui_GetGui(), GWEN_INHERIT_GETDATA, and NULL.

Referenced by getFgGui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFgGui()

FOX16_Gui * getFgGui ( )
static

Definition at line 155 of file fox16_gui.cpp.

References CppGui::getCppGui(), and NULL.

Referenced by FOX16_HtmlCtx::getFont(), FOX16_Gui::WinScope::WinScope(), and FOX16_Gui::WinScope::~WinScope().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFileName()

int getFileName ( const char *  caption,
GWEN_GUI_FILENAME_TYPE  fnt,
uint32_t  flags,
const char *  patterns,
GWEN_BUFFER pathBuffer,
uint32_t  guiid 
)
protectedvirtual

◆ getFont()

HTML_FONT * getFont ( const char *  fontName,
int  fontSize,
uint32_t  fontFlags 
)

Definition at line 542 of file fox16_gui.cpp.

References findFont(), HtmlFont_List_Add(), HtmlFont_new(), HtmlFont_SetFontFlags(), HtmlFont_SetFontName(), HtmlFont_SetFontSize(), and m_fontList.

Referenced by FOX16_HtmlCtx::getFont().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGuiWindow()

FXWindow * getGuiWindow ( uint32_t  id)

Definition at line 148 of file fox16_gui.cpp.

References m_app.

◆ getHtmlText()

FXString getHtmlText ( const char *  text)
static

Definition at line 284 of file fox16_gui.cpp.

References NULL.

Referenced by FOX16_GuiDialog::setCharProperty(), and FOX16_GuiDialog::setupTree().

Here is the caller graph for this function:

◆ getIdOfLastScope()

uint32_t getIdOfLastScope ( )
protected

Definition at line 112 of file fox16_gui.cpp.

References m_scopeList.

Referenced by FOX16_Gui::WinScope::WinScope().

Here is the caller graph for this function:

◆ getNextId()

uint32_t getNextId ( )
protected

Definition at line 106 of file fox16_gui.cpp.

References m_lastId.

Referenced by FOX16_Gui::WinScope::WinScope().

Here is the caller graph for this function:

◆ getPassword()

int getPassword ( uint32_t  flags,
const char *  token,
const char *  title,
const char *  text,
char *  buffer,
int  minLen,
int  maxLen,
GWEN_GUI_PASSWORD_METHOD  methodId,
GWEN_DB_NODE methodParams,
uint32_t  guiid 
)
protectedvirtualinherited

Definition at line 329 of file cppgui.cpp.

References CppGui::_gui, and GWEN_ERROR_NOT_SUPPORTED.

◆ getRawText()

FXString getRawText ( const char *  text)
static

Definition at line 204 of file fox16_gui.cpp.

References NULL.

Referenced by FOX16_GuiDialog::setCharProperty().

Here is the caller graph for this function:

◆ logHook()

int logHook ( const char *  logDomain,
GWEN_LOGGER_LEVEL  priority,
const char *  s 
)
protectedvirtualinherited

Definition at line 256 of file cppgui.cpp.

◆ openDialog()

int openDialog ( GWEN_DIALOG dlg,
uint32_t  guiid 
)
virtual

Reimplemented from CppGui.

Definition at line 372 of file fox16_gui.cpp.

References FOX16_GuiUpdater::guiUpdate(), GWEN_ERROR_GENERIC, m_app, m_updater, FOX16_GuiDialog::openDialog(), and FOX16_GuiDialog::setup().

Here is the call graph for this function:

◆ print()

int print ( const char *  docTitle,
const char *  docType,
const char *  descr,
const char *  text,
uint32_t  guiid 
)
protectedvirtual

See CppGui_Print

Reimplemented from CppGui.

Definition at line 193 of file fox16_gui.cpp.

References DBG_ERROR, GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_LOGDOMAIN.

◆ runDialog()

int runDialog ( GWEN_DIALOG dlg,
int  untilEnd 
)
virtual

Reimplemented from CppGui.

Definition at line 410 of file fox16_gui.cpp.

References FOX16_GuiDialog::cont(), FOX16_GuiDialog::getDialog(), FOX16_GuiUpdater::guiUpdate(), and m_updater.

Here is the call graph for this function:

◆ setPasswordDb()

void setPasswordDb ( GWEN_DB_NODE dbPasswords,
int  persistent 
)
inherited

Definition at line 361 of file cppgui.cpp.

References CppGui::_gui, and GWEN_Gui_SetPasswordDb().

Referenced by test10().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPasswordStatus()

int setPasswordStatus ( const char *  token,
const char *  pin,
GWEN_GUI_PASSWORD_STATUS  status,
uint32_t  guiid 
)
protectedvirtualinherited

Definition at line 347 of file cppgui.cpp.

References CppGui::_gui, and GWEN_ERROR_NOT_SUPPORTED.

◆ setPasswordStore()

void setPasswordStore ( GWEN_PASSWD_STORE sto)
inherited

Definition at line 367 of file cppgui.cpp.

References CppGui::_gui, and GWEN_Gui_SetPasswdStore().

Referenced by test10().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _gui

GWEN_GUI* _gui
protectedinherited

◆ m_app

FXApp* m_app
protected

Definition at line 123 of file fox16_gui.hpp.

Referenced by execDialog(), getApp(), getFileName(), getGuiWindow(), and openDialog().

◆ m_fontList

HTML_FONT_LIST* m_fontList
protected

Definition at line 129 of file fox16_gui.hpp.

Referenced by findFont(), FOX16_Gui(), getFont(), and ~FOX16_Gui().

◆ m_lastId

uint32_t m_lastId
protected

Definition at line 125 of file fox16_gui.hpp.

Referenced by getNextId().

◆ m_scopeList

WinScopePtrList m_scopeList
protected

◆ m_updater

FOX16_GuiUpdater* m_updater
protected

Definition at line 127 of file fox16_gui.hpp.

Referenced by closeDialog(), FOX16_Gui(), openDialog(), runDialog(), and ~FOX16_Gui().


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