diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kcoloredit/main.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcoloredit/main.h')
-rw-r--r-- | kcoloredit/main.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/kcoloredit/main.h b/kcoloredit/main.h new file mode 100644 index 00000000..5e0b086a --- /dev/null +++ b/kcoloredit/main.h @@ -0,0 +1,52 @@ +/*************************************************************************** + main.h - description + ------------------- + begin : Sat Jul 8 2000 + copyright : (C) 2000 by Artur Rataj + email : art@zeus.polsl.gliwice.pl + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef __MAIN_H__ +#define __MAIN_H__ + +#include <qstring.h> +#include <qdir.h> + +/** The maximum red, green or blue component value in RGB scheme + */ +const int RGB_MAX_COMPONENT_VALUE = 255; + +/** The maximum hue in HSV scheme + */ +const int HSV_MAX_H_VALUE = 359; + +/** The maximum saturation in HSV scheme + */ +const int HSV_MAX_S_VALUE = 255; + +/** The maximum value in HSV scheme + */ +const int HSV_MAX_V_VALUE = 255; + +/** name of KDE config directories containing palette files + */ +static const QString palettesDir("colors"); + +/** last open file dialog path + */ +static QString lastOpenPaletteFileDir = QDir::homeDirPath(); + +/** last save file as dialog path + */ +static QString lastSavePaletteAsFileDir = QDir::homeDirPath(); + +#endif /* !defined( __MAIN_H__ ) */ |