1 //=============================================================================
2 // File : RegWidget.hxx
3 // Created : Mon Nov 5 17:26:23 CET 2001
4 // Author : Pascale NOYRET, EDF
6 // Copyright : EDF 2001
8 //=============================================================================
10 # ifndef __REGWIDGET_H__
11 # define __REGWIDGET_H__
12 # include <qapplication.h>
13 # include <qmainwindow.h>
15 #include <SALOMEconfig.h>
16 #include CORBA_CLIENT_HEADER(SALOME_Registry)
18 #include <IntervalWindow.hxx>
33 class RegWidget : public QMainWindow
39 RegWidget( CORBA::ORB_var &orb , QWidget *parent = 0, const char *name = 0 );
42 void SetListeHistory();
46 bool eventFilter( QObject* object, QEvent* event );
48 static RegWidget* GetRegWidget( CORBA::ORB_var &orb , QWidget *parent = 0, const char *name = 0 );
52 void slotListeSelect();
53 void slotClientChanged( QListViewItem* );
54 void slotHistoryChanged( QListViewItem* );
55 void slotSelectRefresh();
56 void slotIntervalOk();
58 static QString setlongText( const Registry::Infos &c_info );
59 int numitem( const QString& name, const QString& pid, const QString& machine, const Registry::AllInfos* c_info );
60 void closeEvent( QCloseEvent *e);
66 QTabWidget* _tabWidget;
67 QPushButton* _refresh;
68 QPushButton* _interval;
70 Registry::AllInfos* _serverhistory;
71 Registry::AllInfos* _serverclients;
72 InfoWindow* myInfoWindow;
73 HelpWindow* myHelpWindow;
74 IntervalWindow* myIntervalWindow;
75 int myRefreshInterval;
78 const Registry::Components_var _VarComponents;
79 static RegWidget* myRegWidgetPtr;
82 class InfoWindow : public QMainWindow {
84 InfoWindow( QWidget* parent = 0, const char* name = 0);
86 void setText( const QString& text );
87 QTextView* textView() const { return myTextView; }
90 QTextView* myTextView;
94 # endif /* # ifndef __REGWIDGET_H__ */