![]() |
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 | setViewerParent (QWidget *widget) |
Sets the parent for scan method viewer instances. | |
void | updateViewerTitle () |
Sets the title on the viewer parent reflecting the current selected area. | |
QWidget * | getViewerParent () |
Gets the parent for scan method viewer instances. | |
ProjectData * | getProjectData () |
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.
ProjectData * sf::ProjectWidget::getProjectData | ( | ) |
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. |
QWidget * sf::ProjectWidget::getViewerParent | ( | ) |
Gets the parent for scan method viewer instances.
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::setSelectedIndex | ( | int | index | ) |
Sets the selected row index.
void sf::ProjectWidget::setViewerParent | ( | QWidget * | widget | ) |
Sets the parent for scan method viewer instances.
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::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::updateTitle | ( | ) |
Updates the title of the widget to represent the selected project and inspection.
void sf::ProjectWidget::updateViewerTitle | ( | ) |
Sets the title on the viewer parent reflecting the current selected area.