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. More... | |
void | setTablesFrozen (bool) |
Sets if the tables are frozen. More... | |
void | rebuildModels () |
Rebuilds the models. More... | |
Signals | |
void | cnetModified () |
void | editControlPoint (ControlPoint *controlPoint, QString serialNumber) |
Public Member Functions | |
CnetEditorWidget (Control *control, QString pathForSettings) | |
virtual | ~CnetEditorWidget () |
Destructor. More... | |
void | readSettings () |
Reads the working version settings stored at the settings path. More... | |
void | writeSettings () |
Writes the configuration settings used. More... | |
QWidget * | pointTreeView () |
Returns the point tree view. More... | |
QWidget * | serialTreeView () |
Returns the serial tree view. More... | |
QWidget * | connectionTreeView () |
Returns the connection tree view. More... | |
QWidget * | pointFilterWidget () |
Returns the point filter widget. More... | |
QWidget * | serialFilterWidget () |
Returns the serial filter widget. More... | |
QWidget * | connectionFilterWidget () |
Returns the connection filter widget. More... | |
TableView * | pointTableView () |
Returns the point table view. More... | |
TableView * | measureTableView () |
Returns the measure table view. More... | |
ControlNet * | control () |
Returns the control network. More... | |
AbstractTableModel * | measureTableModel () |
Returns the measure table model. More... | |
AbstractTableModel * | pointTableModel () |
Returns the point table model. More... | |
QMap< QAction *, QList< QString > > | menuActions () |
Returns the menu actions. More... | |
QMap< QString, QList< QAction * > > | toolBarActions () |
Returns the tool bar actions. More... | |
ControlNet * | filteredNetwork () const |
Returns the filtered control net. More... | |
bool | measureTableSortingEnabled () const |
Returns true if the measure table can be sorted. More... | |
int | measureTableSortLimit () const |
Returns the sorting limit for the measure table. More... | |
bool | pointTableSortingEnabled () const |
Returns true if the point table can be sorted. More... | |
int | pointTableSortLimit () const |
Returns the sorting limit for the point table. More... | |
void | setMeasureTableSortingEnabled (bool enabled) |
Sets if the measure table can be sorted. More... | |
void | setMeasureTableSortLimit (int limit) |
Sets the measure table sorting limit. More... | |
void | setPointTableSortingEnabled (bool enabled) |
Sets if the point table can be sorted. More... | |
void | setPointTableSortLimit (int limit) |
Sets the point table sorting limit. More... | |
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::ControlPoint::Delete(), Isis::ControlNet::DeletePoint(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::AbstractTreeModel::getItems(), Isis::ControlPoint::GetMeasure(), Isis::ControlPoint::GetNumMeasures(), Isis::ControlNet::GetNumPoints(), Isis::ControlNet::GetPoint(), Isis::AbstractTreeItem::Measure, Isis::AbstractTreeModel::MeasureItems, Isis::ControlMeasure::Parent(), 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.
References ASSERT.
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 ASSERT, Isis::AbstractMeasureItem::getColumnName(), Isis::AbstractPointItem::getColumnName(), Isis::TableView::getHorizontalHeader(), setMeasureTableSortingEnabled(), setMeasureTableSortLimit(), setPointTableSortingEnabled(), and setPointTableSortLimit().
Referenced by CnetEditorWidget().
|
slot |
Rebuilds the models.
Referenced by CnetEditorWidget().
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.
References ASSERT.
void Isis::CnetEditorWidget::writeSettings | ( | ) |
Writes the configuration settings used.
References ASSERT, Isis::AbstractMeasureItem::getColumnName(), Isis::AbstractPointItem::getColumnName(), Isis::TableView::getHorizontalHeader(), measureTableSortingEnabled(), measureTableSortLimit(), pointTableSortingEnabled(), and pointTableSortLimit().
Referenced by ~CnetEditorWidget().