#include <QGo4Widget.h>
Inheritance diagram for QGo4Widget:
Public Types | |
enum | { service_DragEnter = 1, service_DropEvent = 2, service_CreateItem = 3, service_DrawItem = 4, service_EditItem = 5, service_ShowInfo = 6, service_EditInSlot = 7, service_SaveItem = 8, service_UpdateAnalysisItem = 9, service_StatusMessage = 15, service_CreateViewPanel = 17, service_BrowserItemRemote = 18, service_Browser = 19, service_SaveToMemory = 20, service_GetAnalysis = 21, service_AddEditorLink = 22, service_AddDirectLink = 23, service_AddLinkInSlot = 24, service_GetTopSlot = 25, service_AddEditorSlot = 26, service_SetLinkedName = 27, service_GetLinkedName = 28, service_GetLinkedName2 = 29, service_GetLinked0 = 30, service_GetLinked1 = 31, service_GetLinked2 = 32, service_RemoveLink = 33, service_RemoveAllLinks = 34, service_ObjectCreated = 35, service_ConnectPad = 36, service_LastActivePanel = 37, service_WhereItemDrawn = 38, service_UndrawItem = 39, service_General = 40, service_PanelTimer = 41, service_HelpWindow = 42, panel_Activated = 101, panel_Modified = 102, panel_Updated = 103, panel_ActiveUpdated = 104, panel_PadDeleted = 105, panel_Deleted = 106 } |
Public Slots | |
void | ResetWidgetSlot () |
Signals | |
void | widgetService (QGo4Widget *editor, int serviceid, const char *str, void *par) |
Public Member Functions | |
QGo4Widget (QWidget *parent=0, const char *name=0, WFlags f=0) | |
virtual | ~QGo4Widget () |
virtual bool | IsAcceptDrag (const char *itemname, TClass *cl, int kind) |
virtual void | DropItem (const char *itemname, TClass *cl, int kind) |
virtual void | ResetWidget () |
void | ObjectCreatedByWidget (const char *itemname, TClass *cl) |
void | ProcessSignal (const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot) |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *e) |
virtual void | dragEnterEvent (QDragEnterEvent *e) |
virtual void | dragMoveEvent (QDragMoveEvent *e) |
virtual void | dropEvent (QDropEvent *e) |
void | AddLink (const char *itemname, const char *linkname) |
create link for item with name linkname | |
void | AddLink (TGo4Slot *slot, const char *linkname) |
create link for object in slot with name linkname | |
TGo4Slot * | AddLink (const char *itemname, TGo4Slot *parent) |
create link for item in dedicated slot parent | |
TGo4Slot * | GetTopSlot (bool force=false) |
return top slot of structure, corresponding to this widget | |
TGo4Slot * | AddSlot (const char *slotname) |
add slot with specific name to widget top folder | |
void | SetLinkedName (TGo4Slot *slot, const char *itemname) |
set name of item, which was linked by this slot | |
const char * | GetLinkedName (const char *linkname) |
returns name of item, which was linked with linkname | |
const char * | GetLinkedName (TGo4Slot *slot) |
returns name of item, which was linked in that slot | |
TObject * | GetLinked (const char *linkname, int updatelevel) |
void | RemoveLink (const char *linkname, bool blockreset=true) |
void | RemoveAllLinks (bool blockreset=true) |
void | RemoveLinksMasked (const char *startedwith=0, bool blockreset=true) |
bool | BrowserItemRemote (const char *itemname) |
TGo4BrowserProxy * | Browser () |
void | StatusMessage (const char *message) |
void | AskToCreateObject (TClass *cl, int isremote) |
Function call dialog to create object of appropriate class isremote==0 - object should be created localy and widget will be informed isremote==1 - object should be created on analysis side and widget should be informaed isremote==-1 - activate creation dialog without restriction (remote or local), widget will not be informed. | |
void | ShowItemInfo (const char *itemname) |
TGo4ViewPanel * | CreateViewPanel (int ndiv=0) |
TGo4ViewPanel * | DrawItem (const char *itemname, TGo4ViewPanel *panel=0, TPad *pad=0, bool activate=true, int updatelevel=-1) |
TGo4ViewPanel * | WhereItemDrawn (const char *itemname) |
void | HelpWindow (const char *filename, const char *filedir) |
void | UndrawItem (const char *itemname) |
TGo4ViewPanel * | LastActivePanel () |
void | EditItem (const char *itemname) |
void | EditObjectInSlot (TGo4Slot *slot) |
QString | SaveObjectInMemory (const char *foldername, TObject *obj) |
bool | SaveItemToFile (const char *itemname, const char *subfolder=0) |
bool | UpdateItemInAnalysis (const char *itemname, TObject *obj=0) |
void | InformThatObjectCreated (const char *itemname, TClass *cl) |
TGo4AnalysisProxy * | GetAnalysis (const char *itemname=0) |
void | ConnectPad (TPad *pad) |
connect pad axis change signals to react on such signals | |
void | CallServiceFunc (int id, const char *str=0, void *par=0) |
void | ServiceCall (const char *name, void *par=0) |
virtual void | requestedObjectCreated (const char *itemname, TClass *cl) |
virtual void | linkedObjectUpdated (const char *linkname, TObject *obj) |
virtual void | linkedObjectRemoved (const char *linkname) |
virtual void | linkedUpdated (TGo4Slot *slot, TObject *obj) |
virtual void | linkedRemoved (TGo4Slot *slot, TObject *obj) |
void | setCanDestroyWidget (bool on=true) |
void | CallPanelFunc (int id, TPad *pad=0) |
void | ShootResetWidget () |
void | ShootCloseWidget () |
bool | IsUpdateBlocked () const |
Private Attributes | |
bool | fWaitsForObjectCreation |
bool | fCanDestroyWidget |
bool | fResetWidgetShooted |
bool | fBlockUpdate |
TGo4BrowserProxy * | fBrowserProxy |
Friends | |
class | TGo4MainWindow |
|
Definition at line 36 of file QGo4Widget.h. |
|
Definition at line 20 of file QGo4Widget.cpp. References fBlockUpdate, fBrowserProxy, fCanDestroyWidget, fResetWidgetShooted, and TRUE. |
|
Definition at line 31 of file QGo4Widget.cpp. References RemoveLinksMasked(). |
|
Definition at line 79 of file QGo4Widget.cpp. |
|
Definition at line 84 of file QGo4Widget.cpp. |
|
Definition at line 45 of file QGo4Widget.cpp. References fResetWidgetShooted, fWaitsForObjectCreation, and RemoveAllLinks(). Referenced by ResetWidgetSlot(). |
|
Definition at line 36 of file QGo4Widget.cpp. References fWaitsForObjectCreation, and requestedObjectCreated(). |
|
Definition at line 242 of file QGo4Widget.cpp. References IsUpdateBlocked(), linkedObjectRemoved(), linkedObjectUpdated(), linkedRemoved(), and linkedUpdated(). Referenced by TGo4WidgetProxy::PadModified(), TGo4WidgetProxy::PadRangeAxisChanged(), and TGo4WidgetProxy::ProcessEvent(). |
|
|
Definition at line 73 of file QGo4Widget.cpp. References ResetWidget(). Referenced by ShootResetWidget(). |
|
Definition at line 89 of file QGo4Widget.cpp. References fCanDestroyWidget. |
|
Definition at line 98 of file QGo4Widget.cpp. References service_DragEnter, and widgetService(). |
|
Definition at line 103 of file QGo4Widget.cpp. |
|
Definition at line 108 of file QGo4Widget.cpp. References service_DropEvent, and widgetService(). |
|
create link for item with name linkname
Definition at line 113 of file QGo4Widget.cpp. References service_AddEditorLink, and widgetService(). Referenced by TGo4AnalysisWindow::WorkWithUpdateObjectCmd(). |
|
create link for object in slot with name linkname
Definition at line 118 of file QGo4Widget.cpp. References service_AddDirectLink, and widgetService(). |
|
create link for item in dedicated slot parent
Definition at line 123 of file QGo4Widget.cpp. References service_AddLinkInSlot, and widgetService(). |
|
return top slot of structure, corresponding to this widget
Definition at line 130 of file QGo4Widget.cpp. References service_GetTopSlot, and widgetService(). |
|
add slot with specific name to widget top folder
Definition at line 137 of file QGo4Widget.cpp. References service_AddEditorSlot, and widgetService(). |
|
set name of item, which was linked by this slot
Definition at line 144 of file QGo4Widget.cpp. References service_SetLinkedName, and widgetService(). |
|
returns name of item, which was linked with linkname
Definition at line 149 of file QGo4Widget.cpp. References service_GetLinkedName, and widgetService(). |
|
returns name of item, which was linked in that slot
Definition at line 158 of file QGo4Widget.cpp. References service_GetLinkedName2, and widgetService(). |
|
Definition at line 168 of file QGo4Widget.cpp. References service_GetLinked0, service_GetLinked1, service_GetLinked2, and widgetService(). |
|
Definition at line 184 of file QGo4Widget.cpp. References fBlockUpdate, service_RemoveLink, and widgetService(). |
|
Definition at line 192 of file QGo4Widget.cpp. References fBlockUpdate, service_RemoveAllLinks, and widgetService(). Referenced by ResetWidget(). |
|
Definition at line 200 of file QGo4Widget.cpp. References fBlockUpdate, service_RemoveAllLinks, and widgetService(). Referenced by ~QGo4Widget(). |
|
Definition at line 208 of file QGo4Widget.cpp. References service_BrowserItemRemote, and widgetService(). |
|
Definition at line 215 of file QGo4Widget.cpp. References fBrowserProxy, service_Browser, and widgetService(). Referenced by TGo4AnalysisWindow::linkedObjectUpdated(), and TGo4AnalysisWindow::~TGo4AnalysisWindow(). |
|
Definition at line 236 of file QGo4Widget.cpp. References service_StatusMessage, and widgetService(). |
|
Function call dialog to create object of appropriate class isremote==0 - object should be created localy and widget will be informed isremote==1 - object should be created on analysis side and widget should be informaed isremote==-1 - activate creation dialog without restriction (remote or local), widget will not be informed.
Definition at line 273 of file QGo4Widget.cpp. References fWaitsForObjectCreation, service_CreateItem, and widgetService(). |
|
Definition at line 290 of file QGo4Widget.cpp. References service_ShowInfo, and widgetService(). |
|
Definition at line 295 of file QGo4Widget.cpp. References service_CreateViewPanel, and widgetService(). |
|
Definition at line 303 of file QGo4Widget.cpp. References service_DrawItem, and widgetService(). |
|
Definition at line 314 of file QGo4Widget.cpp. References service_WhereItemDrawn, and widgetService(). |
|
Definition at line 326 of file QGo4Widget.cpp. References service_HelpWindow, and widgetService(). |
|
Definition at line 321 of file QGo4Widget.cpp. References service_UndrawItem, and widgetService(). |
|
Definition at line 332 of file QGo4Widget.cpp. References service_LastActivePanel, and widgetService(). |
|
Definition at line 339 of file QGo4Widget.cpp. References service_EditItem, and widgetService(). Referenced by TGo4AnalysisWindow::linkedObjectUpdated(). |
|
Definition at line 344 of file QGo4Widget.cpp. References service_EditInSlot, and widgetService(). |
|
Definition at line 349 of file QGo4Widget.cpp. References service_SaveToMemory, and widgetService(). |
|
Definition at line 362 of file QGo4Widget.cpp. References service_SaveItem, and widgetService(). |
|
Definition at line 371 of file QGo4Widget.cpp. References service_UpdateAnalysisItem, and widgetService(). |
|
Definition at line 280 of file QGo4Widget.cpp. References service_ObjectCreated, and widgetService(). Referenced by TGo4AnalysisWindow::linkedObjectUpdated(). |
|
Definition at line 378 of file QGo4Widget.cpp. References service_GetAnalysis, and widgetService(). Referenced by TGo4AnalysisWindow::HistActivated(). |
|
connect pad axis change signals to react on such signals
Definition at line 225 of file QGo4Widget.cpp. References service_ConnectPad, and widgetService(). |
|
Definition at line 385 of file QGo4Widget.cpp. References widgetService(). Referenced by ServiceCall(). |
|
Definition at line 390 of file QGo4Widget.cpp. References CallServiceFunc(), and service_General. Referenced by TGo4AnalysisWindow::linkedObjectRemoved(), TGo4AnalysisWindow::PrintEvent(), and TGo4AnalysisWindow::RequestTerminate(). |
|
Definition at line 285 of file QGo4Widget.cpp. Referenced by ObjectCreatedByWidget(). |
|
Reimplemented in TGo4AnalysisWindow. Definition at line 255 of file QGo4Widget.cpp. Referenced by ProcessSignal(). |
|
Reimplemented in TGo4AnalysisWindow. Definition at line 259 of file QGo4Widget.cpp. References ShootResetWidget(). Referenced by ProcessSignal(). |
|
Definition at line 265 of file QGo4Widget.cpp. Referenced by ProcessSignal(). |
|
Definition at line 269 of file QGo4Widget.cpp. Referenced by ProcessSignal(). |
|
Definition at line 170 of file QGo4Widget.h. Referenced by TGo4AnalysisWindow::TGo4AnalysisWindow(). |
|
Definition at line 230 of file QGo4Widget.cpp. References widgetService(). |
|
Definition at line 54 of file QGo4Widget.cpp. References fResetWidgetShooted, and ResetWidgetSlot(). Referenced by linkedObjectRemoved(). |
|
Definition at line 63 of file QGo4Widget.cpp. References fResetWidgetShooted. |
|
Definition at line 177 of file QGo4Widget.h. Referenced by ProcessSignal(). |
|
Definition at line 33 of file QGo4Widget.h. |
|
Definition at line 180 of file QGo4Widget.h. Referenced by AskToCreateObject(), ObjectCreatedByWidget(), and ResetWidget(). |
|
Definition at line 181 of file QGo4Widget.h. Referenced by closeEvent(), and QGo4Widget(). |
|
Definition at line 182 of file QGo4Widget.h. Referenced by QGo4Widget(), ResetWidget(), ShootCloseWidget(), and ShootResetWidget(). |
|
Definition at line 183 of file QGo4Widget.h. Referenced by QGo4Widget(), RemoveAllLinks(), RemoveLink(), and RemoveLinksMasked(). |
|
Definition at line 185 of file QGo4Widget.h. Referenced by Browser(), and QGo4Widget(). |