Isis Developer Reference
|
This widget provides full editing, filtering and viewing capabilities for the raw data in a control network. More...
#include <CnetEditorWidget.h>
Public Types | |
enum | View { PointView , ImageView , ConnectionView } |
Public Slots | |
void | configSorting () |
Configures the sorting dialog. | |
void | setTablesFrozen (bool) |
Sets if the tables are frozen. | |
void | rebuildModels () |
Rebuilds the models. | |
Signals | |
void | cnetModified () |
void | editControlPoint (ControlPoint *controlPoint, QString serialNumber) |
Public Member Functions | |
CnetEditorWidget (Control *control, QString pathForSettings) | |
virtual | ~CnetEditorWidget () |
Destructor. | |
void | readSettings () |
Reads the working version settings stored at the settings path. | |
void | writeSettings () |
Writes the configuration settings used. | |
QWidget * | pointTreeView () |
Returns the point tree view. | |
QWidget * | serialTreeView () |
Returns the serial tree view. | |
QWidget * | connectionTreeView () |
Returns the connection tree view. | |
QWidget * | pointFilterWidget () |
Returns the point filter widget. | |
QWidget * | serialFilterWidget () |
Returns the serial filter widget. | |
QWidget * | connectionFilterWidget () |
Returns the connection filter widget. | |
TableView * | pointTableView () |
Returns the point table view. | |
TableView * | measureTableView () |
Returns the measure table view. | |
ControlNet * | control () |
Returns the control network. | |
AbstractTableModel * | measureTableModel () |
Returns the measure table model. | |
AbstractTableModel * | pointTableModel () |
Returns the point table model. | |
QMap< QAction *, QList< QString > > | menuActions () |
Returns the menu actions. | |
QMap< QString, QList< QAction * > > | toolBarActions () |
Returns the tool bar actions. | |
ControlNet * | filteredNetwork () const |
Returns the filtered control net. | |
bool | measureTableSortingEnabled () const |
Returns true if the measure table can be sorted. | |
int | measureTableSortLimit () const |
Returns the sorting limit for the measure table. | |
bool | pointTableSortingEnabled () const |
Returns true if the point table can be sorted. | |
int | pointTableSortLimit () const |
Returns the sorting limit for the point table. | |
void | setMeasureTableSortingEnabled (bool enabled) |
Sets if the measure table can be sorted. | |
void | setMeasureTableSortLimit (int limit) |
Sets the measure table sorting limit. | |
void | setPointTableSortingEnabled (bool enabled) |
Sets if the point table can be sorted. | |
void | setPointTableSortLimit (int limit) |
Sets the point table sorting limit. | |
This widget provides full editing, filtering and viewing capabilities for the raw data in a control network.
The raw data is, for example, chooser name or cube serial number. The display is all textual. Please use the widget accessors to appropriately place the various ancillary sections of the editor.
Isis::CnetEditorWidget::CnetEditorWidget | ( | Control * | control, |
QString | pathForSettings ) |
References cnetModified(), control(), Isis::CnetDisplayProperties::getInstance(), readSettings(), and rebuildModels().
|
virtual |
Destructor.
References writeSettings().
|
signal |
Referenced by CnetEditorWidget().
|
slot |
Configures the sorting dialog.
If one does not already exist, create it, then show the dialog
QWidget * Isis::CnetEditorWidget::connectionFilterWidget | ( | ) |
Returns the connection filter widget.
QWidget * Isis::CnetEditorWidget::connectionTreeView | ( | ) |
Returns the connection tree view.
ControlNet * Isis::CnetEditorWidget::control | ( | ) |
Returns the control network.
References Isis::Control::controlNet().
Referenced by CnetEditorWidget().
|
signal |
ControlNet * Isis::CnetEditorWidget::filteredNetwork | ( | ) | const |
Returns the filtered control net.
References Isis::Control::controlNet(), Isis::AbstractTreeModel::getItems(), Isis::AbstractTreeItem::Measure, Isis::AbstractTreeModel::MeasureItems, Isis::AbstractTreeItem::Point, Isis::AbstractTreeModel::PointItems, Isis::ControlMeasure::SetEditLock(), and Isis::ControlPoint::SetEditLock().
AbstractTableModel * Isis::CnetEditorWidget::measureTableModel | ( | ) |
Returns the measure table model.
bool Isis::CnetEditorWidget::measureTableSortingEnabled | ( | ) | const |
Returns true if the measure table can be sorted.
References Isis::AbstractTableModel::sortingIsEnabled().
Referenced by writeSettings().
int Isis::CnetEditorWidget::measureTableSortLimit | ( | ) | const |
Returns the sorting limit for the measure table.
References Isis::AbstractTableModel::sortLimit().
Referenced by writeSettings().
TableView * Isis::CnetEditorWidget::measureTableView | ( | ) |
Returns the measure table view.
Referenced by Isis::Directory::addCnetEditorView().
Returns the menu actions.
QWidget * Isis::CnetEditorWidget::pointFilterWidget | ( | ) |
Returns the point filter widget.
AbstractTableModel * Isis::CnetEditorWidget::pointTableModel | ( | ) |
Returns the point table model.
bool Isis::CnetEditorWidget::pointTableSortingEnabled | ( | ) | const |
Returns true if the point table can be sorted.
References Isis::AbstractTableModel::sortingIsEnabled().
Referenced by writeSettings().
int Isis::CnetEditorWidget::pointTableSortLimit | ( | ) | const |
Returns the sorting limit for the point table.
References Isis::AbstractTableModel::sortLimit().
Referenced by writeSettings().
TableView * Isis::CnetEditorWidget::pointTableView | ( | ) |
Returns the point table view.
Referenced by Isis::Directory::addCnetEditorView().
QWidget * Isis::CnetEditorWidget::pointTreeView | ( | ) |
Returns the point tree view.
void Isis::CnetEditorWidget::readSettings | ( | ) |
Reads the working version settings stored at the settings path.
References Isis::AbstractMeasureItem::getColumnName(), Isis::AbstractPointItem::getColumnName(), Isis::TableView::getHorizontalHeader(), setMeasureTableSortingEnabled(), setMeasureTableSortLimit(), setPointTableSortingEnabled(), and setPointTableSortLimit().
Referenced by CnetEditorWidget().
|
slot |
Rebuilds the models.
References rebuildModels().
Referenced by CnetEditorWidget(), and rebuildModels().
QWidget * Isis::CnetEditorWidget::serialFilterWidget | ( | ) |
Returns the serial filter widget.
QWidget * Isis::CnetEditorWidget::serialTreeView | ( | ) |
Returns the serial tree view.
void Isis::CnetEditorWidget::setMeasureTableSortingEnabled | ( | bool | enabled | ) |
Sets if the measure table can be sorted.
bool | Bool if the table can be sorted or not |
References Isis::AbstractTableModel::setSortingEnabled().
Referenced by readSettings().
void Isis::CnetEditorWidget::setMeasureTableSortLimit | ( | int | limit | ) |
Sets the measure table sorting limit.
int | Sorting limit |
References Isis::AbstractTableModel::setSortLimit().
Referenced by readSettings().
void Isis::CnetEditorWidget::setPointTableSortingEnabled | ( | bool | enabled | ) |
Sets if the point table can be sorted.
bool | Bool if the table can be sorted or not |
References Isis::AbstractTableModel::setSortingEnabled().
Referenced by readSettings().
void Isis::CnetEditorWidget::setPointTableSortLimit | ( | int | limit | ) |
Sets the point table sorting limit.
int | Sorting limit |
References Isis::AbstractTableModel::setSortLimit().
Referenced by readSettings().
|
slot |
Sets if the tables are frozen.
bool | Bool that freezes the tables or not |
References Isis::AbstractTreeModel::setFrozen().
Returns the tool bar actions.
void Isis::CnetEditorWidget::writeSettings | ( | ) |
Writes the configuration settings used.
References Isis::AbstractMeasureItem::getColumnName(), Isis::AbstractPointItem::getColumnName(), Isis::TableView::getHorizontalHeader(), measureTableSortingEnabled(), measureTableSortLimit(), pointTableSortingEnabled(), and pointTableSortLimit().
Referenced by ~CnetEditorWidget().