12 #ifndef GSAFE__GUILIB_HEADER_FILE_X_
13 #define GSAFE__GUILIB_HEADER_FILE_X_
18 #ifndef COMPILED_WITH_QT4X
22 #ifdef WEBKITBASED_HTMLSHOW
23 #ifndef COMPILED_WITH_QT4X
24 #include <QtWebKitWidgets>
35 #define EXT_EDIT_PROCESS "externaledit.bat"
38 #define CLICK_ON_CELL 1
59 #define DONT_DELETE_DATA 0
100 static QLayout *
abc_filt(QWidget *parent,
const QObject *receiver,
const char *member);
103 int clickHandler(
void);
106 void clickedValue(QString text);
142 int leChanged(
const QString& t);
157 class HTableBrowserElementPair
161 { left = lp; right = rp; }
333 void sort(
int keycol);
342 int mouseRightClickPosX;
343 int mouseRightClickPosY;
376 int limitCache(
void);
377 QLinkedList<HTableBrowserElement *> cachedElements;
383 QColor color_header_cursor;
384 QColor color_background;
393 void q_sort_run(HTableBrowserElementPair *p);
396 QStack<HTableBrowserElementPair *> *q_sort_stack;
400 int oldw,oldh,old_col_scroll;
405 QString last_right_clicked;
411 static bool staticinit;
412 static QPixmap *pix_up;
413 static QPixmap *pix_down;
414 static QPixmap *pix_asc;
415 static QPixmap *pix_desc;
416 static QPixmap *pix_asc2;
417 static QPixmap *pix_desc2;
422 QList<QString> spec_sort;
430 QMap<int,QColor> precolor;
441 void paintEvent(QPaintEvent *e);
442 void keyPressEvent(QKeyEvent *e);
443 void mousePressEvent(QMouseEvent *e);
444 void mouseReleaseEvent(QMouseEvent *e);
445 void mouseDoubleClickEvent(QMouseEvent *e);
446 void mouseMoveEvent(QMouseEvent *e);
447 void wheelEvent(QWheelEvent *e);
448 void resizeEvent(QResizeEvent *e);
488 HTableBrowserElement(QString k,QString v1,QString v2=
"",QString v3=
"",QString v4=
"",QString v5=
"",
489 QString v6=
"",QString v7=
"",QString v8=
"",QString v9=
"");
534 QString genhtml_parameters;
750 void keyPressEvent(QKeyEvent *e);
773 QHBoxLayout *sublayout;
775 static QHBoxLayout *static_sublayout;
781 virtual void enableControl(
void);
782 virtual void disableControl(
void);
785 int updateDisplaySlot(
void);
786 int timedUpdateSlot(
void);
789 int enableControlSlot(
void) { enableControl();
return 0; }
790 int disableControlSlot(
void) { disableControl();
return 0; }
793 void paintEvent(QPaintEvent *e);
808 QLabel *explain,*key;
814 virtual void enableControl(
void);
815 virtual void disableControl(
void);
818 int updateDisplaySlot(
void);
819 int updateStaticGuiElementsSlot(
void);
840 virtual void enableControl(
void);
841 virtual void disableControl(
void);
844 int textUpdate(
const QString& n);
845 int updateDisplaySlot(
void);
846 int updateStaticGuiElementsSlot(
void);
864 virtual void enableControl(
void);
865 virtual void disableControl(
void);
868 int textUpdate(
void);
869 int updateDisplaySlot(
void);
870 int updateStaticGuiElementsSlot(
void);
889 virtual void enableControl(
void);
890 virtual void disableControl(
void);
893 int itemSelected(
int index);
894 int updateDisplaySlot(
void);
895 int updateStaticGuiElementsSlot(
void);
914 virtual void enableControl(
void);
915 virtual void disableControl(
void);
918 int itemSelected(
int index);
919 int updateDisplaySlot(
void);
920 int updateStaticGuiElementsSlot(
void);
939 virtual void enableControl(
void);
940 virtual void disableControl(
void);
943 int valueUpdate(
int value);
944 int updateDisplaySlot(
void);
945 int updateStaticGuiElementsSlot(
void);
962 virtual void enableControl(
void);
963 virtual void disableControl(
void);
966 int updateDisplaySlot(
void);
967 int updateStaticGuiElementsSlot(
void);
986 virtual void enableControl(
void);
987 virtual void disableControl(
void);
990 int valueUpdate(
void);
991 int updateDisplaySlot(
void);
992 int updateStaticGuiElementsSlot(
void);
1012 virtual void enableControl(
void);
1013 virtual void disableControl(
void);
1016 int textUpdate(
const QString& n);
1017 int updateDisplaySlot(
void);
1018 int updateStaticGuiElementsSlot(
void);
1038 virtual void enableControl(
void);
1039 virtual void disableControl(
void);
1042 int valueUnkUpdate(
void);
1043 int valueUpdate(
const QDate& d);
1044 int updateDisplaySlot(
void);
1045 int updateStaticGuiElementsSlot(
void);
1063 virtual void enableControl(
void);
1064 virtual void disableControl(
void);
1068 int updateDisplaySlot(
void);
1069 int updateStaticGuiElementsSlot(
void);
1072 class SqlChooseDialog;
1084 QToolButton *rfbutt;
1087 SqlChooseDialog *pupup_dialog;
1093 virtual void enableControl(
void);
1094 virtual void disableControl(
void);
1096 void setToolbarbuttonSignalOn(QString text);
1097 void setToolbarbuttonSignalOff();
1102 int itemSelected(
int index);
1104 int updateDisplaySlot(
void);
1105 int updateStaticGuiElementsSlot(
void);
1107 int popupSelector(
void);
1108 int itemSelected(
const QString& s);
1116 class SqlChooseDialog :
public QDialog
1121 QString popupped_key;
1128 QPushButton* button;
1129 bool disabled_recvkey;
1131 QString received_key;
1136 QVBoxLayout* SqlChooseDialogLayout;
1137 QHBoxLayout* layout1;
1139 bool have_extra_func;
1142 int nullButtonPressed(
void);
1143 int buttonPressed(
void);
1144 int listviewitemSelected(
const QString& s);
1145 int updateList(
void);
1154 int toolbarButtonClicked(
void);
1156 int receivedASelectedKey(QString key);
1158 int popUpMenuActivated(
const QString& key);
1164 int popup_catch_0(
void);
1165 int popup_catch_1(
void);
1166 int popup_catch_2(
void);
1167 int popup_catch_3(
void);
1168 int popup_catch_4(
void);
1170 int captureNotify(QString tblname);
1173 void callToolButtonHandler(
void);
1174 void itemSelected(
const QString& s);
1176 void sigToExtraFunc_0(QString key);
1177 void sigToExtraFunc_1(QString key);
1178 void sigToExtraFunc_2(QString key);
1179 void sigToExtraFunc_3(QString key);
1180 void sigToExtraFunc_4(QString key);
1199 #ifdef WEBKITBASED_HTMLSHOW
1210 void setContent(QString str);
1211 void setWinTitle(QString t);
1214 void slotPrint(
void);
1215 void slotStart(
void);
1216 void slotSave(
void);
1257 void mouseMoveEvent(QMouseEvent *me);
1258 void mousePressEvent(QMouseEvent *me);
1274 static void step (
void);
1277 static void end (
void);
1320 HDecorDialog(QWidget *parent,QString title,
int no_action_closetime);
1352 void paintEvent(QPaintEvent *pe);
1354 void mousePressEvent(QMouseEvent *e);
1355 void mouseMoveEvent(QMouseEvent *e);
1356 void keyPressEvent(QKeyEvent *e);
1361 int no_action_closetime;
1383 HPressButton(QWidget *parent,QString text,QString code=
"");
1388 void setColor(
int red,
int green,
int blue);
1406 QString textstr,idstr;
1442 void paintEvent(QPaintEvent *e);
1444 void keyPressEvent(QKeyEvent *e);
1445 void keyReleaseEvent(QKeyEvent *e);
1447 void mousePressEvent(QMouseEvent *e);
1448 void mouseReleaseEvent(QMouseEvent *e);
1449 void mouseMoveEvent(QMouseEvent *e);
1493 QTableWidgetItem *glink;
1497 QList<cellData> cells;
void queryToCurrent(void)
QStringList * queryNextValues(void)
HDispPlainDataMatrix * getHDispPlainDataMatrix(void)
QString * queryNextKey(void)
void setColumnColor(int col, QColor color)
void setHeaderColor(QColor c)
HSpinBox(QWidget *parent)
HSpinBox ////////////////////////////////////////////////////////////////////.
HPlainDMD(QWidget *parent, HBase *d, bool htmlmode=false)
HTableBrowser * getBrowserObjectClass(void)
~HDispPlainDataMatrix(void)
void setColumnColor(int col, QColor c)
int setHeadTexts(QStringList h)
QStringList * rows
The visible data of the element.
HTableBrowserElement * elementByIndex(int n)
HDispTable(QWidget *parent, HTable *d, int datamodep=FULL_CLEAN, int ddata=DONT_DELETE_DATA)
QString * keyByIndex(int n)
HTableBrowserElement * next
Pointer to the next element.
HTable * data
The HTable data pointer;.
int datamode
Data handling mode.
HTableBrowser * list
The HTableBrowser object.
void activateItem(QString k)
HTableBrowserElement * currentElement(void)
void setSpecSort(int col, QString specsortname)
int setCurrentElement(QString c, QString t="")
int deletedata
Data allocation handling mode.
HTableBrowserElement * setColor(int r, int g, int b)
int addElement(HTableBrowserElement *e)
int setTopElement(int index)
int sortByColumn(int col)
bool owncolor
If this attribute is true the element has own color.
static HPleaseWaitWindow * start(void)
void wheelEvent(QWheelEvent *e)
void setBackgroundColor(QColor c)
void dataChangedByGui(void)
int fulshDrawingCache(void)
void setTitleFont(QFont f)
int removeAllElementByKey(QString key)
int deletedata
Data allocation handling mode.
int slotCellChanged(int row, int column)
int addStretchToEnd(void)
int deletedata
Data allocation handling mode.
HTableBrowserElement * prev
Pointer to the previous element.
HDispPlainDataMatrix(QWidget *parent, HBase *d, bool htmlmode=false, int keyfield=-1, int ddata=DONT_DELETE_DATA)
QStringList * valuesByIndex(int n)
bool anywhere_click_close
int slotActivateItem(const QString k)
HDecorDialog(QWidget *parent, QString title, int no_action_closetime)
void itemChanged(const QString &s)
QString operator[](int i)
HTableBrowser(QWidget *parent)
void setHeaderColorCursor(QColor c)
HDispList(QWidget *parent, HList *d, int datamodep=FULL_CLEAN, int ddata=DONT_DELETE_DATA)
int itemAlternateActivated(const QString &s)
HList * data
The HList data pointer.
bool mouseNetClick(QMouseEvent *e, int rmode=NEED_UPDATE)
HTableBrowserElement * topElement(void)
HTableBrowserElement * queryNextElement(void)
int ocb
If the owncolor is true these variables holds the color.
void alternateActivateItem(const QString &s)
void activateItem(const QString &s)
void listItemChanged(void)
HTableBrowserElement(QString k, QStringList *c)
HDynTableDispConnector(HDynTable *dynt, QTableWidget *qtw)
int itemAlternateActivated(const QString &s)
HTableBrowserElement * clearColor(void)
int itemActivated(const QString &s)
void paintEvent(QPaintEvent *pe)
int datamode
Data handling mode.
HList * getDataClass(void)
int litemChanged(const QString &s)
int index
Index of the element.
void swapWith(HTableBrowserElement *x)
int numberOfElements(void)
static HPleaseWaitWindow * pww
bool ro_mask
Readonly mask.
QString key
Key value of the element.
void setCursorColor(QColor c)
~HTableBrowserElement(void)
HTable * getDataClass(void)
void updateDisplaySignal(void)
void setGenHtmlParameters(QString p)