summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqtkdeintegration_x11_p.h
blob: 10ee4443bfd1a4bd8001e6ebfba33f30be3ff184 (plain)
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 TQt library disribution */

#ifndef TQKDEINTEGRATION_H
#define TQKDEINTEGRATION_H

#include <ntqstringlist.h>

class TQLibrary;
class TQWidget;
class TQColor;
class TQFont;

class TQKDEIntegration
    {
    public:
        static bool enabled();
// --- 
        static bool initializeIntegration( );
        static TQStringList getOpenFileNames( const TQString& filter, TQString* workingDirectory,
            TQWidget* parent, const char* name, const TQString& caption, TQString* selectedFilter,
            bool multiple );
        static TQString getSaveFileName( const TQString& initialSelection, const TQString& filter,
            TQString* workingDirectory, TQWidget* parent, const char* name, const TQString& caption,
            TQString* selectedFilter );
        static TQString getExistingDirectory( const TQString& initialDirectory, TQWidget* parent,
            const char* name, const TQString& caption );
        static TQColor getColor( const TQColor& color, TQWidget* parent, const char* name );
        static TQFont getFont( bool* ok, const TQFont* def, TQWidget* parent, const char* name );
        static int messageBox1( int type, TQWidget* parent, const TQString& caption,
            const TQString& text, int button0, int button1, int button2 );
        static int information( TQWidget* parent, const TQString& caption, const TQString& text,
            int button0, int button1, int button2 );
        static int question( TQWidget* parent, const TQString& caption, const TQString& text,
            int button0, int button1, int button2 );
        static int warning( TQWidget* parent, const TQString& caption, const TQString& text,
            int button0, int button1, int button2 );
        static int critical( TQWidget* parent, const TQString& caption, const TQString& text,
            int button0, int button1, int button2 );
        static int messageBox2( int type, TQWidget* parent, const TQString& caption,
            const TQString& text, const TQString& button0Text, const TQString& button1Text,
            const TQString& button2Text, int defaultButton, int escapeButton );
        static int information( TQWidget* parent, const TQString& caption, const TQString& text,
            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
            int defaultButton, int escapeButton );
        static int question( TQWidget* parent, const TQString& caption, const TQString& text,
            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
            int defaultButton, int escapeButton );
        static int warning( TQWidget* parent, const TQString& caption, const TQString& text,
            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
            int defaultButton, int escapeButton );
        static int critical( TQWidget* parent, const TQString& caption, const TQString& text,
            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
            int defaultButton, int escapeButton );
// ---
    private:
        static void initLibrary();
        static bool inited;
        static bool enable;
    };

#endif