Salome HOME
no message
[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
12 class SUIT_EXPORT SUIT_Tools : public Qtx
13 {
14 public:
15   static void    trace( const char* pLog, const char* szFormat, ... );//!< Traces output to log-file.
16   static QRect   makeRect( const int x1, const int y1, const int x2, const int y2 ); 
17
18   static QString fontToString( const QFont& font );
19   static QFont   stringToFont( const QString& fontDescription );
20
21   static void    centerWidget( QWidget* src, const QWidget* ref );
22 };
23
24 #endif