Back to index

salome-gui  6.5.0
Defines | Functions | Variables
ToolsGUI_RegWidget.cxx File Reference
#include "ToolsGUI_RegWidget.h"
#include <QApplication>
#include <QInputDialog>
#include <QMenuBar>
#include <QStatusBar>
#include <QTabWidget>
#include <QTextEdit>
#include <QTimer>
#include <QToolBar>
#include <QTreeWidget>
#include <QVBoxLayout>
#include <Qtx.h>
#include <SALOME_NamingService.hxx>
#include <Utils_SINGLETON.hxx>
#include <Utils_CommException.hxx>

Go to the source code of this file.

Defines

#define MARGIN_SIZE   11
#define SPACING_SIZE   6
#define MIN_SPIN_WIDTH   100
#define BOLD(text)   QString( "<b>%1</b>" ).arg( QString( text ) )

Functions

static Registry::Components_ptr GetRegistry (CORBA::ORB_ptr orb)
 Get access to the Registry service.

Variables

static const char *const time_data []
static const char *const close_data []
static const char *const refresh_data []

Define Documentation

#define BOLD (   text)    QString( "<b>%1</b>" ).arg( QString( text ) )

Definition at line 46 of file ToolsGUI_RegWidget.cxx.

#define MARGIN_SIZE   11

Definition at line 42 of file ToolsGUI_RegWidget.cxx.

#define MIN_SPIN_WIDTH   100

Definition at line 44 of file ToolsGUI_RegWidget.cxx.

#define SPACING_SIZE   6

Definition at line 43 of file ToolsGUI_RegWidget.cxx.


Function Documentation

static Registry::Components_ptr GetRegistry ( CORBA::ORB_ptr  orb) [static]

Get access to the Registry service.

Parameters:
orbCORBA ORB reference
Returns:
reference to the Registry service

Definition at line 128 of file ToolsGUI_RegWidget.cxx.

{
  static const char* registryName = "Registry";
  Registry::Components_var aRegistry;
  
  SALOME_NamingService& naming = *SINGLETON_<SALOME_NamingService>::Instance();
  naming.init_orb( orb );
  
  CORBA::Object_var object = 0;
  try
  {
    object = naming.Resolve( registryName );
    if ( CORBA::is_nil( object ) ) throw CommException( "Unable to find the Registry service" );
    aRegistry = Registry::Components::_narrow( object );
  }
  catch( const CORBA::Exception& ex )
  {
    MESSAGE( "Error: can't access Registry server" );
  }

  return aRegistry._retn();
}

Variable Documentation

const char* const close_data[] [static]
Initial value:
 { 
"16 16 6 1",
"d c None",
". c None",
"# c #000000",
"a c #4c4c4c",
"c c #5b5b5b",
"b c #ffffff",
".....#####a.....",
"...##bbbbb##a...",
"..#bbbbbbbbb#a..",
".#b#cbbbbbb#d#a.",
".#bc#cbbbb#cb#a.",
"#bbbc#cbb#cbbb#a",
"#bbbbc#c#cbbbb#a",
"#bbbbbc#cbbbbb#a",
"#bbbbc#c#cbbbb#a",
"#bbb#ccbb##bbb#a",
".#b#c#bbbbc#b#aa",
".#bc#bbbbbb#c#a.",
"..#bbbbbbbbb#aa.",
"...##bbbbb##aa..",
".....#####aaa...",
"......aaaaa....."}

Definition at line 73 of file ToolsGUI_RegWidget.cxx.

const char* const refresh_data[] [static]
Initial value:
 { 
"16 16 5 1",
". c None",
"# c #000000",
"a c #4c4c4c",
"c c #878787",
"b c #ffffff",
".....#####a.....",
"...##bb#bb##a...",
"..#bbbbc#bbb#a..",
".#bbbb####cbb#a.",
".#bbb#cc#cbbb#a.",
"#bbb#cb#cbbbbb#a",
"#bb#cbbbbbb#bb#a",
"#bb#cbbbbbb#cb#a",
"#bb#cbbbbbb#cb#a",
"#bbbbbb#bb#cbb#a",
".#bbbb#cb#cbb#aa",
".#bbb####cbbb#a.",
"..#bbb#cbbbb#aa.",
"...##bb#cb##aa..",
".....#####aaa...",
"......aaaaa....."}

Definition at line 98 of file ToolsGUI_RegWidget.cxx.

const char* const time_data[] [static]
Initial value:
 { 
"16 16 6 1",
". c None",
"b c None",
"# c #000000",
"a c #4c4c4c",
"d c #878787",
"c c #ffffff",
".....#####ab....",
"...##cc#dc##ab..",
"..#ccc###dcc#ab.",
".#ccccc#dcccc#a.",
".#ccccc#dcccc#ab",
"#cccccc#dccccc#a",
"#cccccc#dccc#c#a",
"#c##ccc########a",
"#ccddcccdddd#d#a",
"#cccccccccccdc#a",
".#ccccccccccc#aa",
".#ccccc#ccccc#a.",
"..#cccc#dccc#aa.",
"...##cccdc##aa..",
".....#####aaa...",
"......aaaaa....."}

Definition at line 48 of file ToolsGUI_RegWidget.cxx.