diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-09-28 14:42:37 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-09-28 14:42:37 +0900 |
commit | 5774d0780734ba03e9e65abb13d9799761c34ae4 (patch) | |
tree | 2879abe9f959ed1f49784b306aea752689e734ae /src/kernel/tqtkdeintegration_x11_p.h | |
parent | 5fd88f2a2099db96bee7a208d09843fd32fd6bf3 (diff) | |
download | tqt3-5774d0780734ba03e9e65abb13d9799761c34ae4.tar.gz tqt3-5774d0780734ba03e9e65abb13d9799761c34ae4.zip |
qt -> tqt conversion:
kdeqt -> kdetqt
qtkde -> tqtkde
qtdesigner -> tqtdesigner
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/tqtkdeintegration_x11_p.h')
-rw-r--r-- | src/kernel/tqtkdeintegration_x11_p.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/kernel/tqtkdeintegration_x11_p.h b/src/kernel/tqtkdeintegration_x11_p.h new file mode 100644 index 000000000..10ee4443b --- /dev/null +++ b/src/kernel/tqtkdeintegration_x11_p.h @@ -0,0 +1,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 |