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
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)
48 #include <Standard_Macro.hxx>
50 class ToolsGUI_HelpWindow;
51 class ToolsGUI_IntervalWindow;
53 class Standard_EXPORT ToolsGUI_InfoWindow : public QMainWindow {
55 ToolsGUI_InfoWindow( QWidget* parent = 0, const char* name = 0);
57 void setText( const QString& text );
58 QTextView* textView() const { return myTextView; }
61 void keyPressEvent( QKeyEvent * e );
64 QTextView* myTextView;
67 class Standard_EXPORT ToolsGUI_RegWidget : public QMainWindow
73 ToolsGUI_RegWidget( CORBA::ORB_var &orb , QWidget *parent = 0, const char *name = 0 );
74 ~ToolsGUI_RegWidget();
76 void SetListeHistory();
80 bool eventFilter( QObject* object, QEvent* event );
82 static ToolsGUI_RegWidget* GetRegWidget( CORBA::ORB_var &orb , QWidget *parent = 0, const char *name = 0 );
86 void slotListeSelect();
87 void slotClientChanged( QListViewItem* );
88 void slotHistoryChanged( QListViewItem* );
89 void slotSelectRefresh();
90 void slotIntervalOk();
92 static QString setlongText( const Registry::Infos &c_info );
93 int numitem( const QString& name, const QString& pid, const QString& machine, const Registry::AllInfos* c_info );
94 void closeEvent( QCloseEvent *e);
100 QTabWidget* _tabWidget;
101 QPushButton* _refresh;
102 QPushButton* _interval;
105 Registry::AllInfos* _serverhistory;
106 Registry::AllInfos* _serverclients;
107 ToolsGUI_InfoWindow* myInfoWindow;
108 ToolsGUI_HelpWindow* myHelpWindow;
109 ToolsGUI_IntervalWindow* myIntervalWindow;
110 int myRefreshInterval;
113 const Registry::Components_var _VarComponents;
114 static ToolsGUI_RegWidget* myRegWidgetPtr;
117 # endif /* # ifndef __REGWIDGET_H__ */