rawTherapee/rtgui/previewmodepanel.h
Michael Ezra e1d274a808 Focus Mask (beta) and shortcuts for preview modes (issue 1172)
Preview Red channel:   r
Preview Blue channel:  b
Preview Green channel: g
Preview Luminosity:    v
Preview Focus Mask:    Shift-F

Before-After:          changed to Shift-B
2012-01-02 00:10:55 -05:00

57 lines
1.7 KiB
C++

/*
* This file is part of RawTherapee.
*
*
* RawTherapee is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* RawTherapee is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _PREVIEWMODEPANEL_
#define _PREVIEWMODEPANEL_
#include <gtkmm.h>
#include "adjuster.h"//dev
class ImageArea;
class PreviewModePanel : public Gtk::HBox {
protected:
Gtk::ToggleButton* previewR;
Gtk::ToggleButton* previewG;
Gtk::ToggleButton* previewB;
Gtk::ToggleButton* previewL;
Gtk::ToggleButton* previewFocusMask;
ImageArea* imageArea;
public:
PreviewModePanel (ImageArea* ia);
void toggleR ();
void toggleG ();
void toggleB ();
void toggleL ();
void toggleFocusMask ();
sigc::connection connR, connB, connG, connL, connFocusMask;
void buttonToggled(Gtk::ToggleButton* tbpreview);
bool showR () { return previewR->get_active (); }
bool showG () { return previewG->get_active (); }
bool showB () { return previewB->get_active (); }
bool showL () { return previewL->get_active (); }
bool showFocusMask () { return previewFocusMask->get_active (); }
};
#endif