QoccMainWindow Class Reference

#include <qoccmainwindow.h>

Collaboration diagram for QoccMainWindow:

Collaboration graph
[legend]
List of all members.

Signals

void fileOpening ()
void fileOpened ()

Public Member Functions

 QoccMainWindow ()
 ~QoccMainWindow ()

Private Slots

void fileNew ()
void fileOpen ()
void fileSave ()
void filePrint ()
void fileClose ()
void undo ()
void redo ()
void cut ()
void copy ()
void paste ()
void about ()
void bottle ()
void aboutQt ()
void statusMessage (const QString aMessage)
void selectNeutralPoint (void)
void selectVertices (void)
void selectEdges (void)
void selectWires (void)
void selectFaces (void)
void selectShells (void)
void selectSolids (void)
void selectCompSolids (void)
void selectCompounds (void)
void selectShapes (void)
void circleCentre (void)
void line2Pt (void)
void vertex (void)
void cancelDraw (void)

Private Member Functions

QAction * createAction (const QString &caption, const QString &shortcut, const QString &tip, const char *slot, const QObject *target=NULL)
 This routine is a utility function for creating actions. Use tr("str") in the calling function to provide support for language translations.
void createActions (void)
void createMenus (void)
void createToolBars (void)

Private Attributes

QMenu * fileMenu
QMenu * editMenu
QMenu * drawMenu
QMenu * viewMenu
QMenu * viewActionsMenu
QMenu * viewDisplayMenu
QMenu * formatMenu
QMenu * helpMenu
QMenu * gridMenu
QMenu * selectMenu
QAction * newAction
QAction * openAction
QAction * saveAction
QAction * printAction
QAction * exitAction
QAction * undoAction
QAction * redoAction
QAction * cutAction
QAction * copyAction
QAction * pasteAction
QAction * aboutAction
QAction * fitAction
QAction * fitAllAction
QAction * zoomAction
QAction * panAction
QAction * rotAction
QAction * gridXYAction
QAction * gridXZAction
QAction * gridYZAction
QAction * gridOnAction
QAction * gridOffAction
QAction * gridRectAction
QAction * gridCircAction
QAction * viewFrontAction
QAction * viewBackAction
QAction * viewTopAction
QAction * viewBottomAction
QAction * viewLeftAction
QAction * viewRightAction
QAction * viewAxoAction
QAction * viewResetAction
QAction * viewGridAction
QAction * selectNeutralAction
QAction * selectCompoundAction
QAction * selectCompSolidAction
QAction * selectSolidAction
QAction * selectShellAction
QAction * selectFaceAction
QAction * selectWireAction
QAction * selectEdgeAction
QAction * selectVertexAction
QAction * selectShapeAction
QAction * pointAction
QAction * circle2PtAction
QAction * line2PtAction
QAction * cancelDrawAction
QAction * backgroundAction
QAction * aboutQtAction
QAction * bottleAction
QoccControllermyController
QTabBar * myTabBar
QTabWidget * myTabWidget
QWidget * myTab
QoccFramemySketchFrame
QoccFramemyGeometryFrame
QoccFramemyAssemblyFrame
QoccFramemyMeshFrame
QToolBar * drawToolBar
QString myLastFolder

Detailed Description

Definition at line 53 of file qoccmainwindow.h.


Constructor & Destructor Documentation

QoccMainWindow::QoccMainWindow (  ) 

Definition at line 44 of file qoccmainwindow.cpp.

References createActions(), createMenus(), createToolBars(), QoccController::getDocument(), Handle(), QoccDocument::id(), myController, mySketchFrame, myTabWidget, qGeomApp, qGeomEngine, and QoccDocument::RemovePresentation().

Here is the call graph for this function:

QoccMainWindow::~QoccMainWindow (  )  [inline]

Definition at line 60 of file qoccmainwindow.h.


Member Function Documentation

void QoccMainWindow::about (  )  [private, slot]

Definition at line 243 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

Referenced by createActions().

void QoccMainWindow::aboutQt (  )  [private, slot]

Definition at line 252 of file qoccmainwindow.cpp.

Referenced by createActions().

void QoccMainWindow::bottle (  )  [private, slot]

Definition at line 338 of file qoccmainwindow.cpp.

References QoccController::clearAllLocalContexts(), QoccController::clearCommand(), QoccController::deleteAllObjects(), LoadBottle(), and myController.

Referenced by createActions().

void QoccMainWindow::cancelDraw ( void   )  [private, slot]

Definition at line 332 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

Referenced by createActions().

void QoccMainWindow::circleCentre ( void   )  [private, slot]

Definition at line 311 of file qoccmainwindow.cpp.

References circle2PtAction, myController, and QoccController::setCommand().

Referenced by createActions().

void QoccMainWindow::copy (  )  [private, slot]

Definition at line 231 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

Referenced by createActions().

QAction * QoccMainWindow::createAction ( const QString &  caption,
const QString &  shortcut,
const QString &  tip,
const char *  slot,
const QObject *  target = NULL 
) [private]

This routine is a utility function for creating actions. Use tr("str") in the calling function to provide support for language translations.

Parameters:
caption the menu caption.
shortcut keyboard shot.
tip the tool tip text.
slot the slot function to be called, e.g. use SLOT(fooBar()) .
target the QObject target of the connection, if not this object.

Definition at line 379 of file qoccmainwindow.cpp.

Referenced by createActions().

Here is the caller graph for this function:

void QoccMainWindow::createActions ( void   )  [private]

Definition at line 392 of file qoccmainwindow.cpp.

References about(), aboutAction, aboutQt(), aboutQtAction, bottle(), bottleAction, cancelDraw(), cancelDrawAction, circle2PtAction, circleCentre(), copy(), copyAction, createAction(), cut(), cutAction, exitAction, fileNew(), fileOpen(), filePrint(), fileSave(), gridCircAction, gridOffAction, gridOnAction, gridRectAction, gridXYAction, gridXZAction, gridYZAction, line2Pt(), line2PtAction, myController, newAction, openAction, paste(), pasteAction, pointAction, printAction, redo(), redoAction, saveAction, selectEdgeAction, selectEdges(), selectFaceAction, selectFaces(), selectNeutralAction, selectNeutralPoint(), selectShellAction, selectShells(), selectVertexAction, selectVertices(), selectWireAction, selectWires(), undo(), undoAction, and vertex().

Referenced by QoccMainWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

void QoccMainWindow::createMenus ( void   )  [private]

Definition at line 464 of file qoccmainwindow.cpp.

References aboutAction, aboutQtAction, bottleAction, cancelDrawAction, circle2PtAction, copyAction, cutAction, drawMenu, editMenu, exitAction, fileMenu, gridCircAction, gridMenu, gridOffAction, gridOnAction, gridRectAction, gridXYAction, gridXZAction, gridYZAction, helpMenu, line2PtAction, newAction, openAction, pasteAction, pointAction, printAction, redoAction, saveAction, selectEdgeAction, selectFaceAction, selectMenu, selectNeutralAction, selectShellAction, selectVertexAction, selectWireAction, undoAction, and viewMenu.

Referenced by QoccMainWindow().

Here is the caller graph for this function:

void QoccMainWindow::createToolBars ( void   )  [private]

Definition at line 630 of file qoccmainwindow.cpp.

References circle2PtAction, drawToolBar, line2PtAction, and pointAction.

Referenced by QoccMainWindow().

Here is the caller graph for this function:

void QoccMainWindow::cut (  )  [private, slot]

Definition at line 225 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

Referenced by createActions().

void QoccMainWindow::fileClose (  )  [private, slot]

Definition at line 205 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

void QoccMainWindow::fileNew (  )  [private, slot]

Definition at line 137 of file qoccmainwindow.cpp.

References QoccController::clearAllLocalContexts(), QoccController::clearCommand(), QoccController::deleteAllObjects(), and myController.

Referenced by createActions().

void QoccMainWindow::fileOpen (  )  [private, slot]

Definition at line 145 of file qoccmainwindow.cpp.

References QoccController::clearAllLocalContexts(), QoccController::clearCommand(), fileOpened(), fileOpening(), QoccInputOutput::FormatBREP, QoccInputOutput::FormatIGES, QoccInputOutput::FormatSTEP, QoccInputOutput::FormatSTL, QoccInputOutput::importModel(), myController, and myLastFolder.

Referenced by createActions().

void QoccMainWindow::fileOpened (  )  [signal]

Referenced by fileOpen().

void QoccMainWindow::fileOpening (  )  [signal]

Referenced by fileOpen().

void QoccMainWindow::filePrint (  )  [private, slot]

Definition at line 199 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

Referenced by createActions().

void QoccMainWindow::fileSave (  )  [private, slot]

Definition at line 193 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

Referenced by createActions().

void QoccMainWindow::line2Pt ( void   )  [private, slot]

Definition at line 318 of file qoccmainwindow.cpp.

References line2PtAction, myController, and QoccController::setCommand().

Referenced by createActions().

void QoccMainWindow::paste (  )  [private, slot]

Definition at line 237 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), and myController.

Referenced by createActions().

void QoccMainWindow::redo (  )  [private, slot]

Definition at line 218 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), myController, and QoccController::redo().

Referenced by createActions().

void QoccMainWindow::selectCompounds ( void   )  [private, slot]

Definition at line 300 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

void QoccMainWindow::selectCompSolids ( void   )  [private, slot]

Definition at line 295 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

void QoccMainWindow::selectEdges ( void   )  [private, slot]

Definition at line 275 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

Referenced by createActions().

void QoccMainWindow::selectFaces ( void   )  [private, slot]

Definition at line 263 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

Referenced by createActions().

void QoccMainWindow::selectNeutralPoint ( void   )  [private, slot]

Definition at line 258 of file qoccmainwindow.cpp.

References QoccController::clearAllLocalContexts(), and myController.

Referenced by createActions().

void QoccMainWindow::selectShapes ( void   )  [private, slot]

Definition at line 305 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

void QoccMainWindow::selectShells ( void   )  [private, slot]

Definition at line 285 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

Referenced by createActions().

void QoccMainWindow::selectSolids ( void   )  [private, slot]

Definition at line 290 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

void QoccMainWindow::selectVertices ( void   )  [private, slot]

Definition at line 269 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

Referenced by createActions().

void QoccMainWindow::selectWires ( void   )  [private, slot]

Definition at line 280 of file qoccmainwindow.cpp.

References myController, and QoccController::setLocalContext().

Referenced by createActions().

void QoccMainWindow::statusMessage ( const QString  aMessage  )  [private, slot]

Definition at line 366 of file qoccmainwindow.cpp.

void QoccMainWindow::undo (  )  [private, slot]

Definition at line 211 of file qoccmainwindow.cpp.

References QoccController::clearCommand(), myController, and QoccController::undo().

Referenced by createActions().

void QoccMainWindow::vertex ( void   )  [private, slot]

Definition at line 325 of file qoccmainwindow.cpp.

References myController, pointAction, and QoccController::setCommand().

Referenced by createActions().


Member Data Documentation

QAction* QoccMainWindow::aboutAction [private]

Definition at line 134 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::aboutQtAction [private]

Definition at line 178 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::backgroundAction [private]

Definition at line 176 of file qoccmainwindow.h.

QAction* QoccMainWindow::bottleAction [private]

Definition at line 181 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::cancelDrawAction [private]

Definition at line 174 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::circle2PtAction [private]

Definition at line 172 of file qoccmainwindow.h.

Referenced by circleCentre(), createActions(), createMenus(), and createToolBars().

QAction* QoccMainWindow::copyAction [private]

Definition at line 132 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::cutAction [private]

Definition at line 131 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QMenu* QoccMainWindow::drawMenu [private]

Definition at line 115 of file qoccmainwindow.h.

Referenced by createMenus().

QToolBar* QoccMainWindow::drawToolBar [private]

Definition at line 193 of file qoccmainwindow.h.

Referenced by createToolBars().

QMenu* QoccMainWindow::editMenu [private]

Definition at line 114 of file qoccmainwindow.h.

Referenced by createMenus().

QAction* QoccMainWindow::exitAction [private]

Definition at line 128 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QMenu* QoccMainWindow::fileMenu [private]

Definition at line 113 of file qoccmainwindow.h.

Referenced by createMenus().

QAction* QoccMainWindow::fitAction [private]

Definition at line 136 of file qoccmainwindow.h.

QAction* QoccMainWindow::fitAllAction [private]

Definition at line 137 of file qoccmainwindow.h.

QMenu* QoccMainWindow::formatMenu [private]

Definition at line 119 of file qoccmainwindow.h.

QAction* QoccMainWindow::gridCircAction [private]

Definition at line 148 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QMenu* QoccMainWindow::gridMenu [private]

Definition at line 121 of file qoccmainwindow.h.

Referenced by createMenus().

QAction* QoccMainWindow::gridOffAction [private]

Definition at line 146 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::gridOnAction [private]

Definition at line 145 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::gridRectAction [private]

Definition at line 147 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::gridXYAction [private]

Definition at line 142 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::gridXZAction [private]

Definition at line 143 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::gridYZAction [private]

Definition at line 144 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QMenu* QoccMainWindow::helpMenu [private]

Definition at line 120 of file qoccmainwindow.h.

Referenced by createMenus().

QAction* QoccMainWindow::line2PtAction [private]

Definition at line 173 of file qoccmainwindow.h.

Referenced by createActions(), createMenus(), createToolBars(), and line2Pt().

QoccFrame* QoccMainWindow::myAssemblyFrame [private]

Definition at line 190 of file qoccmainwindow.h.

QoccController* QoccMainWindow::myController [private]

Definition at line 182 of file qoccmainwindow.h.

Referenced by about(), bottle(), cancelDraw(), circleCentre(), copy(), createActions(), cut(), fileClose(), fileNew(), fileOpen(), filePrint(), fileSave(), line2Pt(), paste(), QoccMainWindow(), redo(), selectCompounds(), selectCompSolids(), selectEdges(), selectFaces(), selectNeutralPoint(), selectShapes(), selectShells(), selectSolids(), selectVertices(), selectWires(), undo(), and vertex().

QoccFrame* QoccMainWindow::myGeometryFrame [private]

Definition at line 189 of file qoccmainwindow.h.

QString QoccMainWindow::myLastFolder [private]

Definition at line 195 of file qoccmainwindow.h.

Referenced by fileOpen().

QoccFrame* QoccMainWindow::myMeshFrame [private]

Definition at line 191 of file qoccmainwindow.h.

QoccFrame* QoccMainWindow::mySketchFrame [private]

Definition at line 188 of file qoccmainwindow.h.

Referenced by QoccMainWindow().

QWidget* QoccMainWindow::myTab [private]

Definition at line 186 of file qoccmainwindow.h.

QTabBar* QoccMainWindow::myTabBar [private]

Definition at line 184 of file qoccmainwindow.h.

QTabWidget* QoccMainWindow::myTabWidget [private]

Definition at line 185 of file qoccmainwindow.h.

Referenced by QoccMainWindow().

QAction* QoccMainWindow::newAction [private]

Definition at line 124 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::openAction [private]

Definition at line 125 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::panAction [private]

Definition at line 139 of file qoccmainwindow.h.

QAction* QoccMainWindow::pasteAction [private]

Definition at line 133 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::pointAction [private]

Definition at line 171 of file qoccmainwindow.h.

Referenced by createActions(), createMenus(), createToolBars(), and vertex().

QAction* QoccMainWindow::printAction [private]

Definition at line 127 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::redoAction [private]

Definition at line 130 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::rotAction [private]

Definition at line 140 of file qoccmainwindow.h.

QAction* QoccMainWindow::saveAction [private]

Definition at line 126 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::selectCompoundAction [private]

Definition at line 161 of file qoccmainwindow.h.

QAction* QoccMainWindow::selectCompSolidAction [private]

Definition at line 162 of file qoccmainwindow.h.

QAction* QoccMainWindow::selectEdgeAction [private]

Definition at line 167 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::selectFaceAction [private]

Definition at line 165 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QMenu* QoccMainWindow::selectMenu [private]

Definition at line 122 of file qoccmainwindow.h.

Referenced by createMenus().

QAction* QoccMainWindow::selectNeutralAction [private]

Definition at line 160 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::selectShapeAction [private]

Definition at line 169 of file qoccmainwindow.h.

QAction* QoccMainWindow::selectShellAction [private]

Definition at line 164 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::selectSolidAction [private]

Definition at line 163 of file qoccmainwindow.h.

QAction* QoccMainWindow::selectVertexAction [private]

Definition at line 168 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::selectWireAction [private]

Definition at line 166 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QAction* QoccMainWindow::undoAction [private]

Definition at line 129 of file qoccmainwindow.h.

Referenced by createActions(), and createMenus().

QMenu* QoccMainWindow::viewActionsMenu [private]

Definition at line 117 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewAxoAction [private]

Definition at line 156 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewBackAction [private]

Definition at line 151 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewBottomAction [private]

Definition at line 153 of file qoccmainwindow.h.

QMenu* QoccMainWindow::viewDisplayMenu [private]

Definition at line 118 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewFrontAction [private]

Definition at line 150 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewGridAction [private]

Definition at line 158 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewLeftAction [private]

Definition at line 154 of file qoccmainwindow.h.

QMenu* QoccMainWindow::viewMenu [private]

Definition at line 116 of file qoccmainwindow.h.

Referenced by createMenus().

QAction* QoccMainWindow::viewResetAction [private]

Definition at line 157 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewRightAction [private]

Definition at line 155 of file qoccmainwindow.h.

QAction* QoccMainWindow::viewTopAction [private]

Definition at line 152 of file qoccmainwindow.h.

QAction* QoccMainWindow::zoomAction [private]

Definition at line 138 of file qoccmainwindow.h.


The documentation for this class was generated from the following files:
Generated on Sat Feb 23 21:22:29 2008 for QtGEOM by  doxygen 1.4.7