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

@@ -22,7 +22,8 @@
#include <gtkmm.h>
#include "cairomm/cairomm.h"
namespace rtengine {
namespace rtengine
{
/** @brief Get a quick preview image out of a raw or standard file
*
@@ -31,21 +32,22 @@ namespace rtengine {
*
* For standard image, it simply read it with fast conversion for 32 bits images
*/
class PreviewImage {
class PreviewImage
{
private:
Cairo::RefPtr<Cairo::ImageSurface> previewImage;
Cairo::RefPtr<Cairo::ImageSurface> previewImage;
public:
typedef enum mode {
PIM_EmbeddedPreviewOnly, /// Get the embedded image only, fail if doesn't exist
PIM_EmbeddedOrRaw, /// Get the embedded image if it exist, or use the raw file otherwise
PIM_ForceRaw /// Get a preview of the raw file, even if an embedded image exist
} PreviewImageMode;
typedef enum mode {
PIM_EmbeddedPreviewOnly, /// Get the embedded image only, fail if doesn't exist
PIM_EmbeddedOrRaw, /// Get the embedded image if it exist, or use the raw file otherwise
PIM_ForceRaw /// Get a preview of the raw file, even if an embedded image exist
} PreviewImageMode;
PreviewImage (const Glib::ustring &fname, const Glib::ustring &ext, const PreviewImageMode mode);
PreviewImage (const Glib::ustring &fname, const Glib::ustring &ext, const PreviewImageMode mode);
Cairo::RefPtr<Cairo::ImageSurface> getImage();
Cairo::RefPtr<Cairo::ImageSurface> getImage();
};