32#include <QtDesigner/QDesignerExportWidget>
33#define GO4_QWIDGET_EXPORT QDESIGNER_WIDGET_EXPORT
35#define GO4_QWIDGET_EXPORT
45 bool fWaitsForObjectCreation{
false};
46 bool fCanDestroyWidget{
false};
47 bool fResetWidgetShooted{
false};
48 bool fBlockUpdate{
false};
53 enum { service_DragEnter = 1,
54 service_DropEvent = 2,
55 service_CreateItem = 3,
59 service_EditInSlot = 7,
61 service_UpdateAnalysisItem = 9,
62 service_StatusMessage = 15,
63 service_CreateViewPanel = 17,
64 service_BrowserItemRemote = 18,
66 service_SaveToMemory = 20,
67 service_GetAnalysis = 21,
68 service_AddEditorLink = 22,
69 service_AddDirectLink = 23,
70 service_AddLinkInSlot = 24,
71 service_GetTopSlot = 25,
72 service_AddEditorSlot = 26,
73 service_SetLinkedName = 27,
74 service_GetLinkedName = 28,
75 service_GetLinkedName2 = 29,
76 service_GetLinked0 = 30,
77 service_GetLinked1 = 31,
78 service_GetLinked2 = 32,
79 service_RemoveLink = 33,
80 service_RemoveAllLinks = 34,
81 service_ObjectCreated = 35,
82 service_ConnectPad = 36,
83 service_LastActivePanel = 37,
84 service_WhereItemDrawn = 38,
85 service_UndrawItem = 39,
87 service_PanelTimer = 41,
88 service_HelpWindow = 42,
89 service_HotStart = 43,
90 panel_Activated = 101,
93 panel_ActiveUpdated = 104,
94 panel_PadDeleted = 105,
95 panel_Deleted = 106 };
97 QGo4Widget(QWidget *parent =
nullptr,
const char *name =
nullptr, Qt::WindowFlags f = Qt::Widget);
101 virtual void DropItem(
const char *itemname, TClass *cl,
int kind);
109 const QString& text,
int id,
int enabled = -1,
int checked = -1);
112 const QIcon& icon,
const QString& text,
int id,
int enabled = -1,
int checked = -1);
114 static QAction*
CreateChkAction(QMenu* menu,
const QString& text,
bool checked,
bool enabled =
true);
116 static QAction*
SetIdAction(QSignalMapper* map,
int id,
int enabled = -1,
int checked = -1);
131 void AddLink(
const char *itemname,
const char *linkname);
154 TObject *
GetLinked(
const char *linkname,
int updatelevel = 0);
157 T*
GetLinkedCast(
const char *linkname,
int updatelevel = 0) {
return dynamic_cast<T *
>(
GetLinked(linkname, updatelevel)); }
159 void RemoveLink(
const char *linkname,
bool blockreset =
true);
177 void HelpWindow(
const char *filename,
const char *msg =
nullptr);
This is the Go4 Main Window.
special base class for remote data servers like DABC, HTTP, hist server