Salome HOME
*** empty log 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 #include <qpopupmenu.h>
12
13 class SUIT_EXPORT SUIT_Tools : public Qtx
14 {
15 public:
16   static void    trace( const char* pLog, const char* szFormat, ... );
17   static QRect   makeRect( const int x1, const int y1, const int x2, const int y2 ); 
18
19   static QString fontToString( const QFont& font );
20   static QFont   stringToFont( const QString& fontDescription );
21
22   static void    centerWidget( QWidget* src, const QWidget* ref );
23   static void    alignWidget ( QWidget* src, const QWidget* ref, int alignFlags = AlignCenter );
24
25 };
26
27 #endif