Skip to content

Commit 14d6153

Browse files
committed
Merge pull request #70 from durga2112/grid_controls
Grid controls
2 parents a7a43e2 + 1608632 commit 14d6153

File tree

10 files changed

+1403
-8
lines changed

10 files changed

+1403
-8
lines changed

carta/cpp/core/Data/Image/Controller.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,6 @@ QString Controller::setClipValue( double clipVal ) {
11271127
return result;
11281128
}
11291129

1130-
11311130
void Controller::_viewResize( const QSize& newSize ){
11321131
for ( int i = 0; i < m_datas.size(); i++ ){
11331132
m_datas[i]->_viewResize( newSize );

carta/cpp/core/Data/Image/Controller.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ class Controller: public QObject, public Carta::State::CartaObject, public IColo
300300
*/
301301
void resetState( const QString& state );
302302

303+
std::shared_ptr<GridControls> getGridControls() {
304+
return m_gridControls;
305+
}
306+
303307
virtual ~Controller();
304308

305309
static const QString CLASS_NAME;
@@ -404,7 +408,7 @@ private slots:
404408
//Data View
405409
std::shared_ptr<ImageView> m_view;
406410

407-
std::unique_ptr<GridControls> m_gridControls;
411+
std::shared_ptr<GridControls> m_gridControls;
408412

409413

410414
std::unique_ptr<Settings> m_settings;

carta/cpp/core/Data/Image/DataGrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ QString DataGrid::_setAxesThickness( int thickness, bool* thicknessChanged ){
421421
QString result;
422422
if ( thickness < 0 || thickness > PEN_FACTOR ){
423423
result = "Axes thickness must be in [0,"+QString::number(PEN_FACTOR)+
424-
"1]: "+QString::number(thickness);
424+
"]: "+QString::number(thickness);
425425
}
426426
else {
427427
QString lookup = Carta::State::UtilState::getLookup( AXES, PEN_WIDTH );

0 commit comments

Comments
 (0)