"Fossies" - the Fresh Open Source Software Archive

Member "rawtherapee-5.7/rtgui/indclippedpanel.h" (10 Sep 2019, 1825 Bytes) of package /linux/misc/rawtherapee-5.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "indclippedpanel.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.6_vs_5.7.

    1 /*
    2  *  This file is part of RawTherapee.
    3  *
    4  *
    5  *  RawTherapee is free software: you can redistribute it and/or modify
    6  *  it under the terms of the GNU General Public License as published by
    7  *  the Free Software Foundation, either version 3 of the License, or
    8  *  (at your option) any later version.
    9  *
   10  *  RawTherapee is distributed in the hope that it will be useful,
   11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  *  GNU General Public License for more details.
   14  *
   15  *  You should have received a copy of the GNU General Public License
   16  *  along with RawTherapee.  If not, see <https://www.gnu.org/licenses/>.
   17  */
   18 #ifndef _INDCLIPPEDPANEL_
   19 #define _INDCLIPPEDPANEL_
   20 
   21 #include <gtkmm.h>
   22 #include <iostream>
   23 
   24 class ImageArea;
   25 class IndicateClippedPanel : public Gtk::HBox
   26 {
   27 
   28 protected:
   29     Gtk::Image* iFon, *iFoff, *iSon, *iSoff;
   30     Gtk::ToggleButton* previewSharpMask;
   31     Gtk::ToggleButton* previewFocusMask;
   32     Gtk::ToggleButton* indClippedH;
   33     Gtk::ToggleButton* indClippedS;
   34     ImageArea* imageArea;
   35 
   36 public:
   37     explicit IndicateClippedPanel(ImageArea* ia);
   38     ~IndicateClippedPanel() override;
   39 
   40     void buttonToggled(Gtk::ToggleButton* tb);
   41     void toggleClipped(bool highlights);  // inverts a toggle programmatically
   42     void toggleFocusMask();
   43     void silentlyDisableSharpMask();  // toggle the button off without throwing a toggle event
   44     void toggleSharpMask();
   45 
   46     sigc::connection connFocusMask, connSharpMask, connClippedS, connClippedH;
   47 
   48 
   49     bool showFocusMask ()
   50     {
   51         return previewFocusMask->get_active ();
   52     }
   53     bool showClippedShadows()
   54     {
   55         return indClippedS->get_active();
   56     }
   57     bool showClippedHighlights()
   58     {
   59         return indClippedH->get_active();
   60     }
   61 };
   62 
   63 #endif