Base class of all dockable windows belonging to a document there are two ways of belonging to a document. More...
#include <DockWindow.h>
Public Member Functions | |
DockWindow (Gui::Document *pcDocument=0, QWidget *parent=0) | |
View constructor Attach the view to the given document. More... | |
virtual ~DockWindow () | |
View destructor Detach the view from the document, if attached. More... | |
![]() | |
BaseView (Gui::Document *pcDocument=0) | |
View constructor Attach the view to the given document. More... | |
virtual ~BaseView () | |
View destructor Detach the view from the document, if attached! More... | |
void setDocument (Gui::Document *pcDocument) | |
sets the view to another document (called by Application) More... | |
void onClose (void) | |
is sent from the document in order to close the document More... | |
Gui::Document * getGuiDocument () const | |
returns the document the view is attached to More... | |
App::Document * getAppDocument () const | |
returns the document the view is attached to More... | |
bool isPassive (void) const | |
indicates if the view is in passive mode More... | |
virtual void onRelabel (Gui::Document *) | |
get called when the document is relabeled (change of its user name) More... | |
virtual void onRename (Gui::Document *) | |
get called when the document is renamed (change of its internal name) More... | |
virtual void deleteSelf () | |
delete itself More... | |
![]() | |
BaseClass () | |
Construction. More... | |
virtual PyObject * getPyObject (void) | |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type getTypeId (void) const | |
bool isDerivedFrom (const Type type) const | |
virtual void setPyObject (PyObject *) | |
virtual ~BaseClass () | |
Destruction. More... | |
methods to override | |
virtual void onUpdate (void) | |
get called when the document is updated More... | |
virtual const char * getName (void) const | |
returns the name of the view (important for messages) More... | |
virtual bool onMsg (const char *, const char **) | |
Message handler. More... | |
virtual bool onHasMsg (const char *) const | |
Message handler test. More... | |
virtual bool canClose (void) | |
overwrite when checking on close state More... | |
void sendCloseView (MDIView *theView) | |
sends a message to the document More... | |
Additional Inherited Members | |
![]() | |
static void * create (void) | |
static Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) | |
![]() | |
bool bIsDetached | |
bool bIsPassive | |
Detailed Description
Base class of all dockable windows belonging to a document there are two ways of belonging to a document.
The first way is to a fixed one. The second way is to always belong to the active document, that means switching every time the active document is changing. It also means that the view belongs sometimes to no document at all!
- See also
- TreeView
- Gui::Document
- Application
Constructor & Destructor Documentation
◆ DockWindow()
DockWindow::DockWindow | ( | Gui::Document * | pcDocument = 0 , |
QWidget * | parent = 0 |
||
) |
View constructor Attach the view to the given document.
If the document is 0 the view will attach to the active document. Be aware there isn't always an active document available!
◆ ~DockWindow()
|
virtual |
View destructor Detach the view from the document, if attached.
Reimplemented in Gui::DAG::DockWindow.
Member Function Documentation
◆ canClose()
|
virtual |
overwrite when checking on close state
Reimplemented from Gui::BaseView.
◆ getName()
|
virtual |
returns the name of the view (important for messages)
Reimplemented from Gui::BaseView.
Reimplemented in Gui::DockWnd::SelectionView.
◆ onHasMsg()
|
virtual |
Message handler test.
Implements Gui::BaseView.
◆ onMsg()
|
virtual |
◆ onUpdate()
|
virtual |
get called when the document is updated
Reimplemented from Gui::BaseView.
Reimplemented in Gui::DockWnd::SelectionView.
Referenced by shipAreasCurve.TaskPanel.TaskPanel::initValues(), and shipAreasCurve.TaskPanel.TaskPanel::onData().
◆ sendCloseView
|
signal |
sends a message to the document
The documentation for this class was generated from the following files:
- src/Gui/DockWindow.h
- src/Gui/DockWindow.cpp