9#include "ControlHealthMonitorView.h"
17#include <QWidgetAction>
19#include "ControlHealthMonitorWidget.h"
20#include "ControlPointEditView.h"
21#include "ControlPointEditWidget.h"
22#include "CnetEditorView.h"
23#include "CubeDnView.h"
25#include "ControlNet.h"
26#include "ControlPoint.h"
28#include "ProjectItem.h"
29#include "ProjectItemModel.h"
41 m_directory = directory;
50 connect(m_controlHealthMonitorWidget, SIGNAL(
openImageEditor(QList<QString>)),
53 setCentralWidget(m_controlHealthMonitorWidget);
76 setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
85 return QSize(500, 700);
101 if (point && point != widget->editPoint()) {
117 foreach (QString serial, serials) {
118 QList<ImageList*> imageLists = m_directory->
project()->
images();
120 foreach(
Image *image, *list) {
122 if (imageSerial == serial) {
125 cubeView->addItem(item);
138 delete m_controlHealthMonitorWidget;
155 return m_controlHealthMonitorWidget;
175 QList<QAction *> actions;
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework.
void openPointEditor(ControlPoint *point)
This SLOT is designed to intercept the openPointEditor() signal that's emitted Whenever a point is do...
QToolBar * m_permToolBar
The permanent tool bar.
ControlHealthMonitorWidget * controlHealthMonitorWidget()
Returns the ControlHealthMonitorWidget.
virtual QList< QAction * > permToolBarActions()
Returns a list of actions for the permanent tool bar.
virtual QSize sizeHint() const
Return a reasonable size.
ControlHealthMonitorView(Directory *directory, QWidget *parent=0)
Constructor.
ToolPad * m_toolPad
The tool pad.
QWidgetAction * m_activeToolBarAction
Stores the active tool bar.
virtual QList< QAction * > toolPadActions()
Returns a list of actions for the tool pad.
void openImageEditor(QList< QString > serials)
This SLOT is designed to intercept the openImageEditor() signal that's emitted Whenever an image is d...
~ControlHealthMonitorView()
Destructor.
QToolBar * m_activeToolBar
The active tool bar.
virtual QList< QAction * > activeToolBarActions()
Returns a list of actions for the active tool bar.
ControlNet * controlNet()
Open and return a pointer to the ControlNet for this Control.
ControlPointEditWidget * controlPointEditWidget()
Returns the ControlPointEditWidget.
View that displays cubes in a QView-like way.
CubeDnView * addCubeDnView(QString objectName="")
Add the qview workspace to the window.
Project * project() const
Gets the Project for this directory.
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
This represents a cube in a project-based GUI interface.
QString serialNumber()
Returns the serial number of the Cube.
Internalizes a list of images and allows for operations on the entire list.
static QStringList images(QStringList)
Verify that the input fileNames are image files.
Control * activeControl()
Return the Active Control (control network)
Represents an item of a ProjectItemModel in Qt's model-view framework.
ProjectItem * findItemData(const QVariant &data, int role=Qt::UserRole+1)
Returns the first item found that contains the given data in the given role or a null pointer if no i...
This is free and unencumbered software released into the public domain.