Solving issue 735 : "Zooming with mouse wheel should zoom where the mouse is".
The scroll wheel is now used for scrolling the editor's tab content. If you want to change the spin button's/slider's value or combobox entry, press the SHIFT key while using the scroll wheel. This patch also: - reduce the spin buttons size (50px wide, instead of 70px) - reduce the minimum size of the combobox (tool panels can now be narrower before showing the horizontal scrollbar) Note to developers: ------------------- When creating GUI for editor tools, please use the MyComboBox, MyComboBoxText, MySpinButton and MyFileChooserButton derived class only in order to handle the scroll wheel properly (-> #include <guiutils.h>). Known bug: The MyFileChooserButton thas is a FILE_CHOOSER_ACTION_SELECT_FOLDER does not respond correctly to the new behaviour.
This commit is contained in:
17
rtgui/crop.h
17
rtgui/crop.h
@@ -22,6 +22,7 @@
|
||||
#include <gtkmm.h>
|
||||
#include <cropguilistener.h>
|
||||
#include <toolpanel.h>
|
||||
#include <guiutils.h>
|
||||
|
||||
class CropPanelListener {
|
||||
|
||||
@@ -35,17 +36,17 @@ class Crop : public Gtk::VBox, public CropGUIListener, public FoldableToolPanel,
|
||||
protected:
|
||||
Gtk::CheckButton* enabled;
|
||||
Gtk::CheckButton* fixr;
|
||||
Gtk::ComboBoxText* ratio;
|
||||
Gtk::ComboBoxText* orientation;
|
||||
Gtk::ComboBoxText* guide;
|
||||
MyComboBoxText* ratio;
|
||||
MyComboBoxText* orientation;
|
||||
MyComboBoxText* guide;
|
||||
Gtk::Button* selectCrop;
|
||||
CropPanelListener* clistener;
|
||||
int opt;
|
||||
Gtk::SpinButton* x;
|
||||
Gtk::SpinButton* y;
|
||||
Gtk::SpinButton* w;
|
||||
Gtk::SpinButton* h;
|
||||
Gtk::SpinButton* ppi;
|
||||
MySpinButton* x;
|
||||
MySpinButton* y;
|
||||
MySpinButton* w;
|
||||
MySpinButton* h;
|
||||
MySpinButton* ppi;
|
||||
Gtk::Label* sizecm;
|
||||
Gtk::Label* sizein;
|
||||
Gtk::VBox* ppibox;
|
||||
|
Reference in New Issue
Block a user