2 // Author: Sergey TELKOV
7 #if defined QTX_EXPORTS
9 #define QTX_EXPORT _declspec( dllexport )
15 #define QTX_EXPORT _declspec( dllimport )
27 #ifndef INCLUDE_MENUITEM_DEF
28 #define INCLUDE_MENUITEM_DEF
31 #include <qnamespace.h>
36 #if QT_VERSION >= 0x30000
61 template <class> class QValueList;
64 #define QPtrList QList
65 #define QPtrListIterator QListIterator
68 typedef QValueList<int> QIntList;
69 typedef QValueList<short> QShortList;
70 typedef QValueList<double> QDoubleList;
72 class QTX_EXPORT Qtx : public Qt
77 AlignOutLeft = AlignVCenter << 2,
78 AlignOutRight = AlignOutLeft << 2,
79 AlignOutTop = AlignOutRight << 2,
80 AlignOutBottom = AlignOutTop << 2
83 static void setTabOrder( QWidget*, ... );
84 static void setTabOrder( const QWidgetList& );
85 static void alignWidget( QWidget*, const QWidget*, const int );
87 static void simplifySeparators( QToolBar* );
88 static void simplifySeparators( QPopupMenu*, const bool = true );
90 static bool isParent( QObject*, QObject* );
92 static QString extension( const QString& );
93 static QString dir( const QString&, const bool = true );
94 static QString file( const QString&, const bool = true );
96 static QString library( const QString& );
98 static QString tmpDir();
99 static bool mkDir( const QString& );
100 static bool rmDir( const QString& );
101 static bool dos2unix( const QString& );
102 static QString addSlash( const QString& );
104 static int rgbSet( const QColor& );
105 static int rgbSet( const int, const int, const int );
107 static void rgbSet( const int, QColor& );
108 static void rgbSet( const int, int&, int&, int& );
110 static QColor scaleColor( const int, const int, const int );
111 static void scaleColors( const int, QValueList<QColor>& );