![]() |
Scanframe Modular Application 0.1.0
|
Manages all inspection project data. More...
#include <ProjectWidget.h>


Public Types | |
| enum | EColumnField : int { cfArea = 0 , cfTool , cfElement , cfMaterial , cfInspectionState , cfCalibrationSet , cfSettings , cfFilterConfig , cfMethod , cfCommand , cfScanState , cfUsername , cfDateTime , cfComment } |
| Enumeration of displayable scan-area information in the table. More... | |
Public Member Functions | |
| ProjectWidget (QWidget *parent) | |
| Default Qt constructor. | |
| ~ProjectWidget () override | |
| Overridden destructor. | |
| void | storeState (bool rd) |
| Stores and restores the state of the widget. | |
| void | updateAreaViewerTitle () |
| Sets the title on the area viewer parent reflecting the current selected area. | |
| void | updateModelViewerTitle () |
| Sets the title on the model viewer parent reflecting the current selected area. | |
| void | setAreaViewerParent (QWidget *widget) |
| Sets the parent for scan area viewer instances. | |
| QWidget * | getAreaViewerParent () const |
| Gets the parent for scan area viewer instances. | |
| void | setModelViewer (ModelViewerWidget *widget) |
| Sets the model viewer instance. | |
| ModelViewerWidget * | getModelViewer () const |
| Gets the parent for the model viewer instance. | |
| ProjectData * | getProjectData () const |
| Gets the project data associated with this widget. | |
| bool | isProjectActive () const |
| Gets the active status of the project. | |
| void | updateTitle () |
| Updates the title of the widget to represent the selected project and inspection. | |
| bool | store (StoreProject::EAction action) |
| Action to take on the project file. | |
| void | manageProjectData (bool create) |
| Creates or destroys the project data instance. When created it sets some required information. | |
| QColor | getStateColor (bool background, int state) |
| Gets the color associated with the project state. | |
| void | updateIndex (int index=-2, bool make_visible=false) |
| Updates information of an entry in the scan area tree view and the status bar. | |
| void | updateCount () |
| Updates the entry count in the list. | |
| int | getSelectedIndex () |
| Gets the current selected row index. | |
| void | setSelectedIndex (int index) |
| Sets the selected row index. | |
Manages all inspection project data.
| enum sf::ProjectWidget::EColumnField : int |
Enumeration of displayable scan-area information in the table.
|
explicit |
Default Qt constructor.
|
override |
Overridden destructor.
| QWidget * sf::ProjectWidget::getAreaViewerParent | ( | ) | const |
Gets the parent for scan area viewer instances.
| ModelViewerWidget * sf::ProjectWidget::getModelViewer | ( | ) | const |
Gets the parent for the model viewer instance.
| ProjectData * sf::ProjectWidget::getProjectData | ( | ) | const |
Gets the project data associated with this widget.
| int sf::ProjectWidget::getSelectedIndex | ( | ) |
Gets the current selected row index.
| QColor sf::ProjectWidget::getStateColor | ( | bool | background, |
| int | state | ||
| ) |
Gets the color associated with the project state.
| background | True for background and false for foreground color. |
| state | The project state. |
| bool sf::ProjectWidget::isProjectActive | ( | ) | const |
Gets the active status of the project.
| void sf::ProjectWidget::manageProjectData | ( | bool | create | ) |
Creates or destroys the project data instance. When created it sets some required information.
| create |
| void sf::ProjectWidget::setAreaViewerParent | ( | QWidget * | widget | ) |
Sets the parent for scan area viewer instances.
| void sf::ProjectWidget::setModelViewer | ( | ModelViewerWidget * | widget | ) |
Sets the model viewer instance.
| void sf::ProjectWidget::setSelectedIndex | ( | int | index | ) |
Sets the selected row index.
| bool sf::ProjectWidget::store | ( | StoreProject::EAction | action | ) |
Action to take on the project file.
| action | What to do. |
| void sf::ProjectWidget::storeState | ( | bool | rd | ) |
Stores and restores the state of the widget.
| void sf::ProjectWidget::updateAreaViewerTitle | ( | ) |
Sets the title on the area viewer parent reflecting the current selected area.
| void sf::ProjectWidget::updateCount | ( | ) |
Updates the entry count in the list.
| void sf::ProjectWidget::updateIndex | ( | int | index = -2, |
| bool | make_visible = false |
||
| ) |
Updates information of an entry in the scan area tree view and the status bar.
| index | Row to update. The default (-2) updates all. |
| make_visible | When a single row is updated it is made visible. |
| void sf::ProjectWidget::updateModelViewerTitle | ( | ) |
Sets the title on the model viewer parent reflecting the current selected area.
| void sf::ProjectWidget::updateTitle | ( | ) |
Updates the title of the widget to represent the selected project and inspection.