Brief description of class still missing. More...
#include <LineLayerProperties.h>
Public Member Functions | |
void | addLayer (LineLayer *layer) |
QAction * | addLineAction (QString title, QString toolTip) |
LineLayer * | currentLayer () const |
int | currentLine () const |
LineLayerProperties (QWidget *parent=0) | |
void | removeLayer (LineLayer *layer) |
void | updateCurrentLayer () |
void | updateCurrentLine () |
~LineLayerProperties () |
Brief description of class still missing.
Full description of class still missing
SciFigs::LineLayerProperties::LineLayerProperties | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References addLineAction(), QGpCoreTools::tr(), and TRACE.
: PropertyWidget(parent) { TRACE; setupUi(this); LineItem * model=new LineItem(this); lineTable->setModel(model); LineDelegate * del=new LineDelegate(this); lineTable->setItemDelegate(del); lineTable->setSelectionBehavior(QAbstractItemView::SelectItems); lineTable->setSelectionMode(QAbstractItemView::ExtendedSelection); lineTable->setEditTriggers(QAbstractItemView::AllEditTriggers); lineTable->resizeColumnsToContents(); Settings::columnWidth(lineTable, "LineLayerProperties"); connect(del, SIGNAL(dataChanged()), this, SLOT(applyAllSelected()) ); // Init the action menu QMenu * m=new QMenu(this); m->setTitle(tr("Actions")); m->setTearOffEnabled (true); actionsBut->setMenu(m); QAction * a; a=addLineAction(tr( "&Save" ), tr( "Save current line in a text file" )); connect(a, SIGNAL(triggered()), this, SLOT(save()) ); _removeAction=addLineAction(tr( "&Remove" ), tr( "Remove current line" )); connect(_removeAction, SIGNAL(triggered()), this, SLOT(remove()) ); lineScroll->setMinimum(0); lineScroll->setMaximum(0); _legendEditor=0; }
void SciFigs::LineLayerProperties::addLayer | ( | LineLayer * | layer | ) |
References TRACE.
Referenced by SciFigs::LineLayer::addProperties().
{ TRACE; if(_layerSet.contains(layer)) return; _layerSet.insert(layer); setLayerList(); on_currentLayerCombo_currentIndexChanged(0); }
QAction * SciFigs::LineLayerProperties::addLineAction | ( | QString | title, |
QString | toolTip | ||
) |
References TRACE.
Referenced by SciFigs::GridMaxFollower::addProperties(), and LineLayerProperties().
{ TRACE; QAction * a; a=new QAction(title, this); a->setToolTip(toolTip); actionsBut->menu()->addAction(a); return a; }
LineLayer * SciFigs::LineLayerProperties::currentLayer | ( | ) | const |
int SciFigs::LineLayerProperties::currentLine | ( | ) | const |
void SciFigs::LineLayerProperties::removeLayer | ( | LineLayer * | layer | ) |
References TRACE.
Referenced by SciFigs::LineLayer::removeProperties().
{ TRACE; if(!_layerSet.contains(layer)) return; _layerSet.remove(layer); setLayerList(); on_currentLayerCombo_currentIndexChanged(0); }
References TRACE.
Referenced by SciFigs::LineLayer::resetLineProperties().
{ TRACE; on_currentLayerCombo_currentIndexChanged(0); }