Source: /app/hbasic/hbasic/runtime_lib/compiler/runtime_form.h
|
|
|
|
#ifndef RUNTIME_FORM
#define RUNTIME_FORM
#include "qobject.h"
#include "qmetaobject.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "../../src/defines.h"
#include "../../src/structs.h"
class QPushButton;
class DBCursorForm;
class HbToolButton : public QToolButton
{
public:
short tb_entry_id;
HbToolButton( QWidget *parent, QPixmap *pic_ptr, short entry_id );
};
class CRuntimeForm : public QMainWindow
{
Q_OBJECT
protected:
/* Number of form in global description */
int form_number;
short current_x; /* x-pixel output position in form */
short current_y; /* y-pixel output position in form */
/* Length of internal gui description. */
long gui_length;
/* Position for original gui description */
char *start_gui_desc;
long *start_form_pointer;
public:
CRuntimeForm( QWidget *parent, int my_formnum );
~CRuntimeForm( void );
void createCompList( long *guicomp_ptr, short dbcomp );
void printFormString( QString *str );
void readCompprop( long var_offset, long read_function_number );
private:
long form_exit_function;
char *rt_formvar_ptr;
/* Pointer to menubar and toolbar description. */
short *menu_desc;
short *toolbar_desc;
short *action_desc;
QWidget *main_widget;
QSqlDatabase *project_db;
DBCursorForm *db_comp;
// void mousePressEvent( QMouseEvent *ev);
bool eventFilter( QObject *sender, QEvent *evt);
long *findEventWidget( QObject *sender, long *guicomp_ptr );
QWidget *createVisibleComponent( GUI_HEADER *hguiptr, QWidget *parent );
void create_subwidget( void );
void setCompProperties( long *wgt_ptr, short *prop_ptr, short comp_flags );
/* Methods to create and handle menubars and toolbars. */
void setupMenuBar( void );
void setupToolBar( void );
void resizeOneComponent( QWidget *comp_ptr, short resize_mode, int xdiff, int ydiff );
void resize_components( long *guicomp_ptr, int xdiff, int ydiff );
void resizeEvent( QResizeEvent *evt );
private slots:
void slotMenuActivated( int selected_id );
void slotToolbarActivated( void );
};
#endif
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |