rawTherapee/rtgui/previewmodepanel.h
Pandagrapher 89d2bdce5b Initial commit for real hidpi support
Note: This commit has only been tested on MacOS

Changes:
- Icons now use the native hidpi support from Gtk (through Icon Theme)
- Icons are now directly generated from scalable file (i.e. SVG file)
- Widget sizes are scaled based on DPI and scale factor
- Font size is scaled based on DPI and scale factor
2022-08-19 16:47:28 +02:00

95 lines
2.4 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 <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <gtkmm.h>
class ImageArea;
class RTImage;
class PreviewModePanel :
public Gtk::Box
{
protected:
Gtk::ToggleButton* previewR;
Gtk::ToggleButton* previewG;
Gtk::ToggleButton* previewB;
Gtk::ToggleButton* previewL;
Gtk::ToggleButton* backColor0;
Gtk::ToggleButton* backColor1;
Gtk::ToggleButton* backColor2;
Gtk::ToggleButton* backColor3;
ImageArea* imageArea;
const Glib::ustring nR, ngR;
const Glib::ustring nG, ngG;
const Glib::ustring nB, ngB;
const Glib::ustring nL, ngL;
const Glib::ustring nBC0, ngBC0;
const Glib::ustring nBC1, ngBC1;
const Glib::ustring nBC2, ngBC2;
const Glib::ustring nBC3, ngBC3;
RTImage* const iR;
RTImage* const iG;
RTImage* const iB;
RTImage* const iL;
RTImage* const iBC0;
RTImage* const iBC1;
RTImage* const iBC2;
RTImage* const iBC3;
public:
explicit PreviewModePanel (ImageArea* ia);
~PreviewModePanel() override;
void toggleR ();
void toggleG ();
void toggleB ();
void toggleL ();
void togglebackColor0();
void togglebackColor1();
void togglebackColor2();
void togglebackColor3();
void togglebackColor();
sigc::connection connR, connB, connG, connL, connbackColor0, connbackColor1, connbackColor2, connbackColor3;
void buttonToggled(Gtk::ToggleButton* tbpreview);
void buttonToggled_backColor(Gtk::ToggleButton* tbbackColor);
bool showR ()
{
return previewR->get_active ();
}
bool showG ()
{
return previewG->get_active ();
}
bool showB ()
{
return previewB->get_active ();
}
bool showL ()
{
return previewL->get_active ();
}
int GetbackColor();
};