Skip to content

Commit

Permalink
Disable controls for un-implemented features
Browse files Browse the repository at this point in the history
Since the ImageViewer is not yet complete, it will be
less confusing for users if controls that don't do
anything yet are turned off.
refs #5058
  • Loading branch information
DennisMikkelson committed Apr 29, 2012
1 parent fd9003e commit 738f0eb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Code/Mantid/MantidQt/ImageViewer/src/IVConnections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ IVConnections::IVConnections( Ui_MainWindow* ui,
GraphDisplay* v_graph_display )
{
iv_ui = ui;
// first disable a few un-implemented controls
iv_ui->menuFile->setDisabled(true);
iv_ui->actionClose->setDisabled(true);
iv_ui->menuGraph_Selected->setDisabled(true);
iv_ui->actionClear_Selections->setDisabled(true);
iv_ui->actionOverlaid->setDisabled(true);
iv_ui->actionOffset_Vertically->setDisabled(true);
iv_ui->actionOffset_Diagonally->setDisabled(true);
iv_ui->actionGraph_Rebinned_Data->setDisabled(true);
iv_ui->menuHelp->setDisabled(true);
iv_ui->graph_max_slider->setDisabled(true);
iv_ui->graph_max_label->setDisabled(true);
iv_ui->label_2->setDisabled(true);

// now set up the gui components
this->image_display = image_display;
this->h_graph_display = h_graph_display;
this->v_graph_display = v_graph_display;
Expand Down

0 comments on commit 738f0eb

Please sign in to comment.