Salome HOME
New item (FontItem), allowing to show information about font setting and to select...
[modules/gui.git] / src / SUIT / SUIT_Tools.h
1 #ifndef SUIT_TOOLS_H
2 #define SUIT_TOOLS_H
3
4 #include "SUIT.h"
5
6 #include <Qtx.h>
7
8 #include <qrect.h>
9 #include <qfont.h>
10 #include <qstring.h>
11 #include <qpopupmenu.h>
12 /*! \class Qtx
13  *  For more information see <a href="http://doc.trolltech.com">QT documentation</a>.
14  */
15 class SUIT_EXPORT SUIT_Tools : public Qtx
16 {
17 public:
18   static void    trace( const char* pLog, const char* szFormat, ... );//!< Traces output to log-file.
19   static QRect   makeRect( const int x1, const int y1, const int x2, const int y2 ); 
20
21   static QString fontToString( const QFont& font );
22   static QFont   stringToFont( const QString& fontDescription );
23
24   static void    centerWidget( QWidget* src, const QWidget* ref );
25   static void    alignWidget ( QWidget* src, const QWidget* ref, int alignFlags = AlignCenter );
26
27 };
28
29 #endif