From a410cb031faef27b87337dbd2600083add7dce97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 4 Jun 2019 12:34:06 +0200 Subject: Rename tqt-kde integration to tqt-tde. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/kernel/tqttdeintegration_x11_p.h | 62 ++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/kernel/tqttdeintegration_x11_p.h (limited to 'src/kernel/tqttdeintegration_x11_p.h') diff --git a/src/kernel/tqttdeintegration_x11_p.h b/src/kernel/tqttdeintegration_x11_p.h new file mode 100644 index 000000000..fe8c23028 --- /dev/null +++ b/src/kernel/tqttdeintegration_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 TQTDEINTEGRATION_H +#define TQTDEINTEGRATION_H + +#include + +class TQLibrary; +class TQWidget; +class TQColor; +class TQFont; + +class TQTDEIntegration + { + 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 -- cgit v1.2.1