1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* This file is licensed under the terms of the GPL v2 or v3, as it has been publicly released by
OpenSUSE as part of their GPLed Qt library disribution */
#ifndef QKDEINTEGRATION_H
#define QKDEINTEGRATION_H
#include <qstringlist.h>
class QLibrary;
class QWidget;
class QColor;
class QFont;
class QKDEIntegration
{
public:
static bool enabled();
// ---
static bool initializeIntegration( );
static QStringList getOpenFileNames( const QString& filter, QString* workingDirectory,
QWidget* parent, const char* name, const QString& caption, QString* selectedFilter,
bool multiple );
static QString getSaveFileName( const QString& initialSelection, const QString& filter,
QString* workingDirectory, QWidget* parent, const char* name, const QString& caption,
QString* selectedFilter );
static QString getExistingDirectory( const QString& initialDirectory, QWidget* parent,
const char* name, const QString& caption );
static QColor getColor( const QColor& color, QWidget* parent, const char* name );
static QFont getFont( bool* ok, const QFont* def, QWidget* parent, const char* name );
static int messageBox1( int type, QWidget* parent, const QString& caption,
const QString& text, int button0, int button1, int button2 );
static int information( QWidget* parent, const QString& caption, const QString& text,
int button0, int button1, int button2 );
static int question( QWidget* parent, const QString& caption, const QString& text,
int button0, int button1, int button2 );
static int warning( QWidget* parent, const QString& caption, const QString& text,
int button0, int button1, int button2 );
static int critical( QWidget* parent, const QString& caption, const QString& text,
int button0, int button1, int button2 );
static int messageBox2( int type, QWidget* parent, const QString& caption,
const QString& text, const QString& button0Text, const QString& button1Text,
const QString& button2Text, int defaultButton, int escapeButton );
static int information( QWidget* parent, const QString& caption, const QString& text,
const QString& button0Text, const QString& button1Text, const QString& button2Text,
int defaultButton, int escapeButton );
static int question( QWidget* parent, const QString& caption, const QString& text,
const QString& button0Text, const QString& button1Text, const QString& button2Text,
int defaultButton, int escapeButton );
static int warning( QWidget* parent, const QString& caption, const QString& text,
const QString& button0Text, const QString& button1Text, const QString& button2Text,
int defaultButton, int escapeButton );
static int critical( QWidget* parent, const QString& caption, const QString& text,
const QString& button0Text, const QString& button1Text, const QString& button2Text,
int defaultButton, int escapeButton );
// ---
private:
static void initLibrary();
static bool inited;
static bool enable;
};
#endif
|