digiKam
digikam_globals.h File Reference

Go to the source code of this file.

Namespaces

 Digikam
 

Macros

#define CLAMP(x, l, u)   qBound(l,x,u)
 
#define CLAMP0255(a)   qBound(0,a,255)
 
#define CLAMP065535(a)   qBound(0,a,65535)
 
#define DEG2RAD   0.017453292519943
 
#define MAX3(a, b, c)   (qMax(qMax(a,b),c))
 
#define MIN3(a, b, c)   (qMin(qMin(a,b),c))
 
#define QT_ENDL   Qt::endl
 
#define QT_KEEP_EMPTY_PARTS   Qt::KeepEmptyParts
 
#define QT_SKIP_EMPTY_PARTS   Qt::SkipEmptyParts
 

Enumerations

enum  Digikam::ChannelType {
  Digikam::LuminosityChannel = 0 , Digikam::RedChannel , Digikam::GreenChannel , Digikam::BlueChannel ,
  Digikam::AlphaChannel , Digikam::ColorChannels
}
 
enum  Digikam::ColorLabel {
  Digikam::NoColorLabel = 0 , Digikam::RedLabel , Digikam::OrangeLabel , Digikam::YellowLabel ,
  Digikam::GreenLabel , Digikam::BlueLabel , Digikam::MagentaLabel , Digikam::GrayLabel ,
  Digikam::BlackLabel , Digikam::WhiteLabel , Digikam::FirstColorLabel = NoColorLabel , Digikam::LastColorLabel = WhiteLabel ,
  Digikam::NumberOfColorLabels = LastColorLabel + 1
}
 
enum  Digikam::HistogramBoxType {
  Digikam::RGB = 0 , Digikam::RGBA , Digikam::LRGB , Digikam::LRGBA ,
  Digikam::LRGBC , Digikam::LRGBAC
}
 
enum  Digikam::HistogramRenderingType { Digikam::FullImageHistogram = 0 , Digikam::ImageSelectionHistogram }
 
enum  Digikam::HistogramScale { Digikam::LinScaleHistogram = 0 , Digikam::LogScaleHistogram }
 
enum  Digikam::PickLabel {
  Digikam::NoPickLabel = 0 , Digikam::RejectedLabel , Digikam::PendingLabel , Digikam::AcceptedLabel ,
  Digikam::FirstPickLabel = NoPickLabel , Digikam::LastPickLabel = AcceptedLabel , Digikam::NumberOfPickLabels = LastPickLabel + 1
}
 

Functions

DIGIKAM_EXPORT QProcessEnvironment Digikam::adjustedEnvironmentForAppImage ()
 
QShortcut * Digikam::defineShortcut (QWidget *const w, const QKeySequence &key, const QObject *receiver, const char *slot)
 
DIGIKAM_EXPORT void Digikam::installQtTranslationFiles (QApplication &app)
 
bool Digikam::isReadableImageFile (const QString &filePath)
 
DIGIKAM_EXPORT bool Digikam::isRunningInAppImageBundle ()
 
DIGIKAM_EXPORT void Digikam::loadEcmQtTranslationFiles (QApplication &app)
 
DIGIKAM_EXPORT void Digikam::loadStdQtTranslationFiles (QApplication &app)
 
DIGIKAM_EXPORT QString Digikam::macOSBundlePrefix ()
 
void Digikam::showRawCameraList ()
 
QDateTime Digikam::startOfDay (const QDate &date)
 
QStringList Digikam::supportedImageMimeTypes (QIODevice::OpenModeFlag mode, QString &allTypes)
 
QString Digikam::toolButtonStyleSheet ()
 
DIGIKAM_EXPORT void Digikam::tryInitDrMingw ()
 
DIGIKAM_EXPORT void Digikam::unloadQtTranslationFiles (QApplication &app)
 

Macro Definition Documentation

◆ CLAMP

#define CLAMP (   x,
  l,
 
)    qBound(l,x,u)

◆ CLAMP0255

#define CLAMP0255 (   a)    qBound(0,a,255)

Macros for image filters.

◆ CLAMP065535

#define CLAMP065535 (   a)    qBound(0,a,65535)

◆ DEG2RAD

#define DEG2RAD   0.017453292519943

Degrees to radian conversion coeff (PI/180). To optimize computation.

◆ MAX3

#define MAX3 (   a,
  b,
 
)    (qMax(qMax(a,b),c))

◆ MIN3

#define MIN3 (   a,
  b,
 
)    (qMin(qMin(a,b),c))

◆ QT_ENDL

#define QT_ENDL   Qt::endl

Macro for Qt::endl which was introduced in Qt 5.14.0

◆ QT_KEEP_EMPTY_PARTS

#define QT_KEEP_EMPTY_PARTS   Qt::KeepEmptyParts

Macro for Qt::KeepEmptyParts and Qt::SkipEmptyParts which were introduced in Qt 5.14.0 to be used with QString::split()

◆ QT_SKIP_EMPTY_PARTS

#define QT_SKIP_EMPTY_PARTS   Qt::SkipEmptyParts