Main Page   Namespace List   Alphabetical List   Data Structures   File List   Data Fields   Globals  

MDIWindow Class Reference


Signals

void message (const QString &, int)
 signal used to send strings to the status bar


Public Methods

 MDIWindow (int multWin, QWidget *parent, const char *name, int wflags)
 ~MDIWindow ()
void load (const QString filename)
GLWidget * getGLWidget ()
void multiWindow ()
QSize sizeHint () const
 arbitrary advised size

QSize minimumSizeHint () const
 arbitrary minimum size


Data Fields

ObjProperties * op
 dialog opened if picking succeeds to shos the object properties


Protected Methods

void closeEvent (QCloseEvent *)

Private Methods

void keyPressEvent (QKeyEvent *e)

Private Attributes

GLWidget * glw
 this is the main GLWidget

GLWidget * hd
GLWidget * bg
GLWidget * bd
 these 3 GLWidgets serve in case of a multiwindow


Detailed Description

The class MDIWindow defines the behaviour of MDI windows (Multiple Document Interface) It can return its GLWidget content through the getGLWidget function. It also contains an obect properties dialog and 3 secondary GLWidget allocated only in the case of a multi view window which is a wy to arrange equally 4 GLWidgets in a single window. Be aware that to create that type of window you have to change the first param of the constructor. The message sent by the MDI window is relayed to the status bar by the Application window.


Constructor & Destructor Documentation

MDIWindow::MDIWindow (  int    multWin,
QWidget *    parent,
const char *    name,
int    wflags
) 
 

Constructor

Parameters:
multWin  : is true if you want to make this instance a multiwindow
parent  : makes this window a child or top level if parent==0
name  : internal name of the object
wflags  : behaviour of the window (TopLevel, dialog, popup, ...)

MDIWindow::~MDIWindow (    ) 
 

Destroys the MDI window. Don't need to call explicitly the destruction of GLWidget objproperties or other widgets since they are child of the MDI window


Member Function Documentation

void MDIWindow::closeEvent (  QCloseEvent *    e )  [protected]
 

The window is asked to close itself and accepts

GLWidget* MDIWindow::getGLWidget (    ) 
 

void MDIWindow::keyPressEvent (  QKeyEvent *    e )  [private]
 

Dispatches the keypress events to the class glw->engine->mouse->camera->vm for camera movement or others

void MDIWindow::load (  const QString    fileName ) 
 

The window is asked to load a file, it uses glw->engine->loadFile to do the real work writes a warning if the extension is strange and updates the status bar and the glw->engine->ready status

void MDIWindow::message (  const QString &   ,
int   
)  [signal]
 

signal used to send strings to the status bar

QSize MDIWindow::minimumSizeHint (    )  const
 

arbitrary minimum size

void MDIWindow::multiWindow (    ) 
 

This procedure allocates 4 gl widgets and produces an equal layout, using QFrames and QGridLayout

QSize MDIWindow::sizeHint (    )  const
 

arbitrary advised size


Field Documentation

GLWidget * MDIWindow::bd [private]
 

these 3 GLWidgets serve in case of a multiwindow

GLWidget * MDIWindow::bg [private]
 

GLWidget* MDIWindow::glw [private]
 

this is the main GLWidget

GLWidget* MDIWindow::hd [private]
 

ObjProperties* MDIWindow::op
 

dialog opened if picking succeeds to shos the object properties


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 16:32:54 2004 for POVAMA by doxygen1.2.18