digiKam
Loading...
Searching...
No Matches
digikam_globals.h File Reference

Go to the source code of this file.

Namespaces

namespace  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_HASH_TYPE   size_t
 

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::OperationType {
  Digikam::MetadataOps = 0 , Digikam::ImportExportOps , Digikam::BQMOps , Digikam::LightTableOps ,
  Digikam::SlideshowOps , Digikam::RenameOps , Digikam::ToolsOps , Digikam::UnspecifiedOps
}
 
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 ()
 
QDateTime Digikam::asDateTimeLocal (const QDateTime &dt)
 
QDateTime Digikam::asDateTimeUTC (const QDateTime &dt)
 
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 bool Digikam::isRunningOnNativeKDE ()
 
int Digikam::layoutMargin ()
 
int Digikam::layoutSpacing ()
 
DIGIKAM_EXPORT void Digikam::loadEcmQtTranslationFiles (QApplication &app)
 
DIGIKAM_EXPORT void Digikam::loadStdQtTranslationFiles (QApplication &app)
 
DIGIKAM_EXPORT QString Digikam::macOSBundlePrefix ()
 
void Digikam::openOnlineDocumentation (const QString &section, const QString &chapter, const QString &reference)
 
DIGIKAM_EXPORT void Digikam::setMacOSEnvironment ()
 
void Digikam::setOpenCLEnvironment (bool b)
 
DIGIKAM_EXPORT void Digikam::setWindowsEnvironment (QApplication &app)
 
void Digikam::showRawCameraList ()
 
QDateTime Digikam::startOfDay (const QDate &date)
 
QStringList Digikam::supportedImageMimeTypes (QIODevice::OpenModeFlag mode, QString &allTypes)
 
QString Digikam::toolButtonStyleSheet ()
 
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_HASH_TYPE

#define QT_HASH_TYPE   size_t

Macro to use right return type with qHash(), changed with new Qt6 API.