1 // SALOME RegistryDisplay : GUI for Registry server implementation
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : RegWidget.hxx
25 // Author : Pascale NOYRET, EDF
29 # ifndef __REGWIDGET_H__
30 # define __REGWIDGET_H__
31 # include <qapplication.h>
32 # include <qmainwindow.h>
34 #include <SALOMEconfig.h>
35 #include CORBA_CLIENT_HEADER(SALOME_Registry)
37 #include <IntervalWindow.hxx>
52 class RegWidget : public QMainWindow
58 RegWidget( CORBA::ORB_var &orb , QWidget *parent = 0, const char *name = 0 );
61 void SetListeHistory();
65 bool eventFilter( QObject* object, QEvent* event );
67 static RegWidget* GetRegWidget( CORBA::ORB_var &orb , QWidget *parent = 0, const char *name = 0 );
71 void slotListeSelect();
72 void slotClientChanged( QListViewItem* );
73 void slotHistoryChanged( QListViewItem* );
74 void slotSelectRefresh();
75 void slotIntervalOk();
77 static QString setlongText( const Registry::Infos &c_info );
78 int numitem( const QString& name, const QString& pid, const QString& machine, const Registry::AllInfos* c_info );
79 void closeEvent( QCloseEvent *e);
85 QTabWidget* _tabWidget;
86 QPushButton* _refresh;
87 QPushButton* _interval;
89 Registry::AllInfos* _serverhistory;
90 Registry::AllInfos* _serverclients;
91 InfoWindow* myInfoWindow;
92 HelpWindow* myHelpWindow;
93 IntervalWindow* myIntervalWindow;
94 int myRefreshInterval;
97 const Registry::Components_var _VarComponents;
98 static RegWidget* myRegWidgetPtr;
101 class InfoWindow : public QMainWindow {
103 InfoWindow( QWidget* parent = 0, const char* name = 0);
105 void setText( const QString& text );
106 QTextView* textView() const { return myTextView; }
109 QTextView* myTextView;
113 # endif /* # ifndef __REGWIDGET_H__ */