Project

General

Profile

GWEN GUI - How to Use It In Your Projects

AqBanking sometimes needs to interact with the user, e.g. to get a PIN, a password or to inform about the progress of a lengthy operation.

For this the class GWEN_GUI is used. This class has some functions for pin/password input, message showing etc.

There are implementations of GWEN_GUI using GTK2, GTK3, QT4, QT5, FOX 1.6 and simple console. Which one to use depends on the GUI toolkit used by your application.

The simplest way to use such an implementation is this:

  GWEN_GUI *gui;

  gui=GWEN_Gui_CGui_new();
  GWEN_Gui_SetGui(gui);

Or for the QT5 implementation:

    QT5_Gui *gui;

    gui=new QT5_Gui();
    GWEN_Gui_SetGui(gui->getCInterface());