Skip to content

Commit

Permalink
Merge pull request #70 from durga2112/grid_controls
Browse files Browse the repository at this point in the history
Grid controls
  • Loading branch information
alexstrilets committed Aug 5, 2015
2 parents a7a43e2 + 1608632 commit 14d6153
Show file tree
Hide file tree
Showing 10 changed files with 1,403 additions and 8 deletions.
1 change: 0 additions & 1 deletion carta/cpp/core/Data/Image/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,6 @@ QString Controller::setClipValue( double clipVal ) {
return result;
}


void Controller::_viewResize( const QSize& newSize ){
for ( int i = 0; i < m_datas.size(); i++ ){
m_datas[i]->_viewResize( newSize );
Expand Down
6 changes: 5 additions & 1 deletion carta/cpp/core/Data/Image/Controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ class Controller: public QObject, public Carta::State::CartaObject, public IColo
*/
void resetState( const QString& state );

std::shared_ptr<GridControls> getGridControls() {
return m_gridControls;
}

virtual ~Controller();

static const QString CLASS_NAME;
Expand Down Expand Up @@ -404,7 +408,7 @@ private slots:
//Data View
std::shared_ptr<ImageView> m_view;

std::unique_ptr<GridControls> m_gridControls;
std::shared_ptr<GridControls> m_gridControls;


std::unique_ptr<Settings> m_settings;
Expand Down
2 changes: 1 addition & 1 deletion carta/cpp/core/Data/Image/DataGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ QString DataGrid::_setAxesThickness( int thickness, bool* thicknessChanged ){
QString result;
if ( thickness < 0 || thickness > PEN_FACTOR ){
result = "Axes thickness must be in [0,"+QString::number(PEN_FACTOR)+
"1]: "+QString::number(thickness);
"]: "+QString::number(thickness);
}
else {
QString lookup = Carta::State::UtilState::getLookup( AXES, PEN_WIDTH );
Expand Down
Loading

0 comments on commit 14d6153

Please sign in to comment.