25 #ifndef WQTNETWORKEDITOR_H
26 #define WQTNETWORKEDITOR_H
32 #include <QDockWidget>
33 #include <QVBoxLayout>
36 #include "../WQtCombinerToolbar.h"
37 #include "../guiElements/WQtDockWidget.h"
38 #include "WQtNetworkEditorView.h"
39 #include "WQtNetworkItem.h"
40 #include "WQtNetworkScene.h"
41 #include "WQtNetworkSceneLayout.h"
42 #include "core/kernel/WModule.h"
This class contains the main window and the layout of the widgets within the window.
std::shared_ptr< WModule > SPtr
Shared pointer to a WModule.
This class extends the basic functionality of QGraphicsView to allow comfortable panning and zooming.
Container widget to hold the WQtNetworkScene.
void selectByModule(WModule::SPtr module)
Select the item representing the given module.
void updateCycle()
Called by a timer to allow updates of all module items.
virtual bool event(QEvent *event)
Everytime a module is associated, ready, connected, disconnected, removed or deleted the kernels emit...
void selectItem()
Determines possible Connections and the propertytab.
WQtNetworkItem * findItemByModule(std::shared_ptr< WModule > module)
Simple search the WQtNetworkItem that belongs to the WModule.
WQtNetworkEditorView * getView()
Get the view handling the scene.
WQtNetworkScene * m_scene
the scene managing the items
void clearSelection()
Clears the selection.
QAction * m_connectWithModuleAction
Action which uses a compatibles list (submenu) to connect a selected item with other existing modules...
QAction * m_connectWithPrototypeAction
Action which uses a compatibles list (submenu) to connect a selected item with other prototypes.
void updateSceneRect()
Set new scene rect.
WQtNetworkSceneLayout * m_layout
the layouter of the scene
WMainWindow * m_mainWindow
Reference to the main window of the application.
QList< QGraphicsItem * > selectedItems() const
Query a list of selected items.
void connectSlots()
Connect SIGNALS with SLOTS.
QList< WQtNetworkItem * > m_items
a list of the WQtNetworkItems in the WQtNetworkScene
WQtNetworkScene * getScene()
Returns the current scene.
WQtNetworkSceneLayout * getLayout()
Get the layouter of the scene.
QAction * m_disconnectAction
Action which disconnects a connector from the module.
WQtNetworkItemGrid * m_grid
we use a grid to place the items
WQtNetworkEditorView * m_view
The view controlling several scene transformations.
virtual ~WQtNetworkEditor()
destructor.
WQtNetworkEditor(WMainWindow *parent=0)
constructor
Implement a virtual grid for placing QGraphicsItems.
This class represents a WModule as QGraphicsItem and contains a reference to its in- and outports.
Layout manager class for a QGraphicsScene.
The scene containing the whole graph.