Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle

This commit is contained in:
DrSlony
2015-08-11 11:55:03 +02:00
parent effb46c3e1
commit 0e0cfb9b25
452 changed files with 133354 additions and 99460 deletions

View File

@@ -7,7 +7,7 @@
* 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
@@ -22,54 +22,59 @@
#include <gtkmm.h>
class LWButton;
class LWButtonListener {
class LWButtonListener
{
public:
virtual ~LWButtonListener () {}
virtual void buttonPressed (LWButton* button, int actionCode, void* actionData) {}
virtual void redrawNeeded (LWButton* button) {}
public:
virtual ~LWButtonListener () {}
virtual void buttonPressed (LWButton* button, int actionCode, void* actionData) {}
virtual void redrawNeeded (LWButton* button) {}
};
class LWButton {
public:
enum Alignment {Left, Right, Top, Bottom, Center};
enum State { Normal, Over, Pressed_In, Pressed_Out};
private:
int xpos, ypos, w, h;
Alignment halign, valign;
Cairo::RefPtr<Cairo::ImageSurface> icon;
double bgr, bgg, bgb;
double fgr, fgg, fgb;
State state;
LWButtonListener* listener;
int actionCode;
void* actionData;
Glib::ustring toolTip;
public:
LWButton (Cairo::RefPtr<Cairo::ImageSurface> i, int aCode, void* aData, Alignment ha=Left, Alignment va=Center, Glib::ustring tooltip="");
void getSize (int& minw, int& minh);
void getAlignment (Alignment& ha, Alignment& va);
void setPosition (int x, int y);
void getPosition (int& x, int& y);
bool inside (int x, int y);
void setIcon (Cairo::RefPtr<Cairo::ImageSurface> i);
Cairo::RefPtr<Cairo::ImageSurface> getIcon ();
void setColors (const Gdk::Color& bg, const Gdk::Color& fg);
void setToolTip (const Glib::ustring& tooltip);
bool motionNotify (int x, int y);
bool pressNotify (int x, int y);
bool releaseNotify (int x, int y);
class LWButton
{
Glib::ustring getToolTip (int x, int y);
void setButtonListener (LWButtonListener* bl) { listener = bl; }
public:
enum Alignment {Left, Right, Top, Bottom, Center};
enum State { Normal, Over, Pressed_In, Pressed_Out};
void redraw (Cairo::RefPtr<Cairo::Context> context);
private:
int xpos, ypos, w, h;
Alignment halign, valign;
Cairo::RefPtr<Cairo::ImageSurface> icon;
double bgr, bgg, bgb;
double fgr, fgg, fgb;
State state;
LWButtonListener* listener;
int actionCode;
void* actionData;
Glib::ustring toolTip;
public:
LWButton (Cairo::RefPtr<Cairo::ImageSurface> i, int aCode, void* aData, Alignment ha = Left, Alignment va = Center, Glib::ustring tooltip = "");
void getSize (int& minw, int& minh);
void getAlignment (Alignment& ha, Alignment& va);
void setPosition (int x, int y);
void getPosition (int& x, int& y);
bool inside (int x, int y);
void setIcon (Cairo::RefPtr<Cairo::ImageSurface> i);
Cairo::RefPtr<Cairo::ImageSurface> getIcon ();
void setColors (const Gdk::Color& bg, const Gdk::Color& fg);
void setToolTip (const Glib::ustring& tooltip);
bool motionNotify (int x, int y);
bool pressNotify (int x, int y);
bool releaseNotify (int x, int y);
Glib::ustring getToolTip (int x, int y);
void setButtonListener (LWButtonListener* bl)
{
listener = bl;
}
void redraw (Cairo::RefPtr<Cairo::Context> context);
};
#endif