Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle
This commit is contained in:
@@ -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
|
||||
@@ -25,42 +25,54 @@
|
||||
#include "dirselectionlistener.h"
|
||||
#include "multilangmgr.h"
|
||||
|
||||
class PlacesBrowser : public Gtk::VBox, public DirSelectionListener {
|
||||
|
||||
class PlacesColumns : public Gtk::TreeModel::ColumnRecord {
|
||||
public:
|
||||
Gtk::TreeModelColumn<Glib::RefPtr<Gio::Icon> > icon;
|
||||
Gtk::TreeModelColumn<Glib::ustring> label;
|
||||
Gtk::TreeModelColumn<Glib::ustring> root;
|
||||
Gtk::TreeModelColumn<int> type;
|
||||
Gtk::TreeModelColumn<bool> rowSeparator;
|
||||
PlacesColumns() { add(icon); add(label); add(root); add(type); add(rowSeparator); }
|
||||
};
|
||||
PlacesColumns placesColumns;
|
||||
Gtk::ScrolledWindow* scrollw;
|
||||
Gtk::TreeView* treeView;
|
||||
Glib::RefPtr<Gtk::ListStore> placesModel;
|
||||
Glib::RefPtr<Gio::VolumeMonitor> vm;
|
||||
DirBrowserRemoteInterface* listener;
|
||||
Glib::ustring lastSelectedDir;
|
||||
Gtk::Button* add;
|
||||
Gtk::Button* del;
|
||||
class PlacesBrowser : public Gtk::VBox, public DirSelectionListener
|
||||
{
|
||||
|
||||
class PlacesColumns : public Gtk::TreeModel::ColumnRecord
|
||||
{
|
||||
public:
|
||||
|
||||
PlacesBrowser ();
|
||||
|
||||
void setDirBrowserRemoteInterface (DirBrowserRemoteInterface* l) { listener = l; }
|
||||
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile="");
|
||||
|
||||
void refreshPlacesList ();
|
||||
void mountChanged (const Glib::RefPtr<Gio::Mount>& m);
|
||||
void volumeChanged (const Glib::RefPtr<Gio::Volume>& v);
|
||||
void driveChanged (const Glib::RefPtr<Gio::Drive>& d);
|
||||
bool rowSeparatorFunc (const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::iterator& iter);
|
||||
void selectionChanged ();
|
||||
void addPressed ();
|
||||
void delPressed ();
|
||||
Gtk::TreeModelColumn<Glib::RefPtr<Gio::Icon> > icon;
|
||||
Gtk::TreeModelColumn<Glib::ustring> label;
|
||||
Gtk::TreeModelColumn<Glib::ustring> root;
|
||||
Gtk::TreeModelColumn<int> type;
|
||||
Gtk::TreeModelColumn<bool> rowSeparator;
|
||||
PlacesColumns()
|
||||
{
|
||||
add(icon);
|
||||
add(label);
|
||||
add(root);
|
||||
add(type);
|
||||
add(rowSeparator);
|
||||
}
|
||||
};
|
||||
PlacesColumns placesColumns;
|
||||
Gtk::ScrolledWindow* scrollw;
|
||||
Gtk::TreeView* treeView;
|
||||
Glib::RefPtr<Gtk::ListStore> placesModel;
|
||||
Glib::RefPtr<Gio::VolumeMonitor> vm;
|
||||
DirBrowserRemoteInterface* listener;
|
||||
Glib::ustring lastSelectedDir;
|
||||
Gtk::Button* add;
|
||||
Gtk::Button* del;
|
||||
|
||||
public:
|
||||
|
||||
PlacesBrowser ();
|
||||
|
||||
void setDirBrowserRemoteInterface (DirBrowserRemoteInterface* l)
|
||||
{
|
||||
listener = l;
|
||||
}
|
||||
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile = "");
|
||||
|
||||
void refreshPlacesList ();
|
||||
void mountChanged (const Glib::RefPtr<Gio::Mount>& m);
|
||||
void volumeChanged (const Glib::RefPtr<Gio::Volume>& v);
|
||||
void driveChanged (const Glib::RefPtr<Gio::Drive>& d);
|
||||
bool rowSeparatorFunc (const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::iterator& iter);
|
||||
void selectionChanged ();
|
||||
void addPressed ();
|
||||
void delPressed ();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user