qt4_gui.hpp
Go to the documentation of this file.
/***************************************************************************
begin : Mon Feb 15 2010
copyright : (C) 2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef QT4_GUI_H
#define QT4_GUI_H
#if (defined __GNUC__ && (! defined (__sun)) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))) || defined _MSC_VER
# ifdef BUILDING_QT4_GUI
# define QT4GUI_API __attribute__ ((visibility("default")))
# else
# define QT4GUI_API
# endif
#else
# define QT4GUI_API
#endif
class QT4_Gui;
class QWidget;
#include <gwen-gui-cpp/cppgui.hpp>
#include <QString>
#include <string>
class QT4GUI_API QT4_Gui: public CppGui {
private:
QWidget *_parentWidget;
std::list<QWidget*> _pushedParents;
public:
QT4_Gui();
virtual ~QT4_Gui();
QWidget *getParentWidget() const { return _parentWidget;};
void pushParentWidget(QWidget *w);
void popParentWidget();
static QString extractHtml(const char *text);
protected:
virtual int execDialog(GWEN_DIALOG *dlg, uint32_t guiid);
virtual int openDialog(GWEN_DIALOG *dlg, uint32_t guiid);
virtual int closeDialog(GWEN_DIALOG *dlg);
virtual int runDialog(GWEN_DIALOG *dlg, int untilEnd);
virtual int getFileName(const char *caption,
GWEN_GUI_FILENAME_TYPE fnt,
uint32_t flags,
const char *patterns,
GWEN_BUFFER *pathBuffer,
uint32_t guiid);
};
#endif
CppGui::CppGui
CppGui()
QT4_Gui
Definition qt4_gui.hpp:43
QT4_Gui::getParentWidget
QWidget * getParentWidget() const
Definition qt4_gui.hpp:54
QT4_Gui::pushParentWidget
void pushParentWidget(QWidget *w)
QT4_Gui::openDialog
virtual int openDialog(GWEN_DIALOG *dlg, uint32_t guiid)
QT4_Gui::QT4_Gui
QT4_Gui()
QT4_Gui::popParentWidget
void popParentWidget()
QT4_Gui::closeDialog
virtual int closeDialog(GWEN_DIALOG *dlg)
QT4_Gui::getFileName
virtual int getFileName(const char *caption, GWEN_GUI_FILENAME_TYPE fnt, uint32_t flags, const char *patterns, GWEN_BUFFER *pathBuffer, uint32_t guiid)
QT4_Gui::~QT4_Gui
virtual ~QT4_Gui()
QT4_Gui::runDialog
virtual int runDialog(GWEN_DIALOG *dlg, int untilEnd)
QT4_Gui::extractHtml
static QString extractHtml(const char *text)
QT4_Gui::execDialog
virtual int execDialog(GWEN_DIALOG *dlg, uint32_t guiid)
cppgui.hpp
GWEN_DIALOG
struct GWEN_DIALOG GWEN_DIALOG
Definition dialog.h:54
GWEN_BUFFER
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition buffer.h:38
GWEN_GUI_FILENAME_TYPE
GWEN_GUI_FILENAME_TYPE
Definition gui.h:949
QT4GUI_API
#define QT4GUI_API
Definition qt4_gui.hpp:22