Skip to content

Commit

Permalink
Added middle mouse scroll holding shift as a way of scrolling through…
Browse files Browse the repository at this point in the history
… dataset
  • Loading branch information
RussellGarwood committed May 24, 2020
1 parent 5873ffa commit 6773d2a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SPIERSedit/docs/basicconcepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ mirrored!

Figure 2. The SPIERSedit default window layout. Note that the GUI and layout shown corresponds
to SPIERS 2.X.X. The GUI for 3.X.X employs a dark theme, and has a slightly modified layout, but
all instructions in the documentation applies to 3.X.X.
all instructions in the documentation apply to 3.X.X.

Window Layout, Zoom, and Navigation
-----------------------------------
Expand Down Expand Up @@ -130,13 +130,14 @@ SPIERSedit only displays one image at a time from the dataset. The ','
through the dataset one slice at time. The *Position in Dataset* slider
allows the user to move through the dataset at will; the current slice
number is displayed in the associated spinbox (labelled Slice number in
Fig. 2); values can be entered in here to jump to slices. The title bar
Fig. 2); values can be entered in here to jump to slices. Shift and missle mouse
zoom also allows you to scroll through the dataset. The title bar
displays the current dataset, and image file path. The *Slice Selector*
Panel, if visible, will also show the current file, as moving to a slice
automatically selects it. Note however that changing selections in this
panel does not move to a different image, but selects images for various
operations discussed later. Control + mouse scroll modifies the selected
slice.
operations discussed later. Control + mouse scroll modifies the slice selected
in the *Slice Selector*.

At the top of the window, below the menus, is a permanently visible
toolbar – this contains buttons for selecting/indicating which of its
Expand Down
5 changes: 5 additions & 0 deletions SPIERSedit/src/mainwindowimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,11 @@ void MainWindowImpl:: MouseZoom(int delta)
if (newRow > SliceSelectorList->count() - 1) newRow = SliceSelectorList->count() - 1;
SliceSelectorList->setCurrentRow(newRow, QItemSelectionModel::ClearAndSelect);
}
else if (QGuiApplication::keyboardModifiers() == Qt::SHIFT)
{
CurrentFile += delta / 10;
SliderPos->setValue(CurrentFile);
}
else ZoomSlider->setValue(ZoomSlider->value() + delta / 5);
}

Expand Down

0 comments on commit 6773d2a

Please sign in to comment.