cppdialog.hpp
Go to the documentation of this file.
/***************************************************************************
begin : Fri Jan 22 2010
copyright : (C) 2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef CPPDIALOG_HPP
#define CPPDIALOG_HPP
#include <gwen-gui-cpp/api.h>
#include <gwenhywfar/dialog_be.h>
#include <list>
#include <string>
class CppDialog;
class CPPGUI_API CppDialog {
friend class CppDialogLinker;
private:
GWEN_DIALOG_SETINTPROPERTY_FN _setIntPropertyFn;
GWEN_DIALOG_GETINTPROPERTY_FN _getIntPropertyFn;
GWEN_DIALOG_SETCHARPROPERTY_FN _setCharPropertyFn;
GWEN_DIALOG_GETCHARPROPERTY_FN _getCharPropertyFn;
public:
CppDialog(GWEN_DIALOG *dlg);
virtual ~CppDialog();
GWEN_DIALOG *getCInterface();
static CPPGUI_API CppDialog *getDialog(GWEN_DIALOG *dlg);
protected:
GWEN_DIALOG *_dialog;
CppDialog();
int emitSignal(GWEN_DIALOG_EVENTTYPE t, const char *sender);
GWEN_WIDGET_TREE *getWidgets() const;
GWEN_WIDGET *findWidgetByName(const char *name);
GWEN_WIDGET *findWidgetByImplData(int index, void *ptr);
virtual int setIntProperty(GWEN_WIDGET *w,
GWEN_DIALOG_PROPERTY prop,
int index,
int value,
int doSignal);
virtual int getIntProperty(GWEN_WIDGET *w,
GWEN_DIALOG_PROPERTY prop,
int index,
int defaultValue);
virtual int setCharProperty(GWEN_WIDGET *w,
GWEN_DIALOG_PROPERTY prop,
int index,
const char *value,
int doSignal);
virtual const char *getCharProperty(GWEN_WIDGET *w,
GWEN_DIALOG_PROPERTY prop,
int index,
const char *defaultValue);
};
#endif /* CPPDIALOG_HPP */
CppDialog
A C++ binding for the C module GWEN_DIALOG.
Definition cppdialog.hpp:32
CppDialog::emitSignal
int emitSignal(GWEN_DIALOG_EVENTTYPE t, const char *sender)
CppDialog::CppDialog
CppDialog()
CppDialog::getCInterface
GWEN_DIALOG * getCInterface()
CppDialog::CppDialog
CppDialog(GWEN_DIALOG *dlg)
CppDialog::getWidgets
GWEN_WIDGET_TREE * getWidgets() const
CppDialog::setCharProperty
virtual int setCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
CppDialog::~CppDialog
virtual ~CppDialog()
CppDialog::findWidgetByName
GWEN_WIDGET * findWidgetByName(const char *name)
CppDialog::getIntProperty
virtual int getIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
CppDialog::CppDialogLinker
friend class CppDialogLinker
Definition cppdialog.hpp:33
CppDialog::_dialog
GWEN_DIALOG * _dialog
Definition cppdialog.hpp:50
CppDialog::setIntProperty
virtual int setIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
CppDialog::getDialog
static CPPGUI_API CppDialog * getDialog(GWEN_DIALOG *dlg)
CppDialog::getCharProperty
virtual const char * getCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
CppDialog::findWidgetByImplData
GWEN_WIDGET * findWidgetByImplData(int index, void *ptr)
GWEN_DIALOG
struct GWEN_DIALOG GWEN_DIALOG
Definition dialog.h:54
GWEN_DIALOG_PROPERTY
GWEN_DIALOG_PROPERTY
Definition dialog.h:260
GWEN_DIALOG_EVENTTYPE
GWEN_DIALOG_EVENTTYPE
Definition dialog.h:98
dialog_be.h
GWEN_DIALOG_GETCHARPROPERTY_FN
const char *GWENHYWFAR_CB(* GWEN_DIALOG_GETCHARPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
Definition dialog_be.h:62
GWEN_DIALOG_GETINTPROPERTY_FN
int GWENHYWFAR_CB(* GWEN_DIALOG_GETINTPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
Definition dialog_be.h:49
GWEN_DIALOG_SETCHARPROPERTY_FN
int GWENHYWFAR_CB(* GWEN_DIALOG_SETCHARPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
Definition dialog_be.h:55
GWEN_DIALOG_SETINTPROPERTY_FN
int GWENHYWFAR_CB(* GWEN_DIALOG_SETINTPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
Definition dialog_be.h:42
api.h
GWEN_WIDGET
struct GWEN_WIDGET GWEN_WIDGET
Definition widget_be.h:34