CrdView Class Reference

#include <crdview.h>

List of all members.


Detailed Description

This class is a lightweight version of Xbrabo.

It is to be used solely for viewing and converting coordinates. It uses as much code from Xbrabo as possible.

Definition at line 42 of file crdview.h.

Public Member Functions

 CrdView ()
 ~CrdView ()
void readCoordinates (QString filename=QString::null)

Private Slots

void fileOpen ()
 Opens an existing coordinate file.
void fileSave ()
 Saves the coordinates in another format.
void fileExport ()
 Exports the current view to an image.
void filePreferences ()
 Temporarily changes the viewing preferences.
void viewToolBar (bool toggle)
 Toggles the visibility of the toolbar.
void viewStatusBar (bool toggle)
 Toggles the visibility of the status bar.
void helpHelp ()
 Show some general information.
void helpWhatsThis ()
 Enters What's This mode.
void helpAbout ()
 Show some program information.

Private Member Functions

void initActions ()
void initMenuBar ()
void initToolBar ()
void readSettings ()
 Reads the settings from the Brabosphere settings file.
void saveSettings ()
 Saves the CrdView view settings to the Brabosphere settings file.
QString actionText (const QString title, const QString brief, const QString details=QString::null, const IconSets::IconSetID iconID=IconSets::LastIcon)
 Constructs a What's This text for actions with proper richtext formatting.

Private Attributes

QToolBar * ToolBarFile
QAction * actionFileOpen
QAction * actionFileSave
QAction * actionFilePreferences
QAction * actionFileExport
QAction * actionFileQuit
QAction * actionViewToolBar
QAction * actionViewStatusBar
QAction * actionCenterView
QAction * actionResetOrientation
QAction * actionZoomFit
QAction * actionResetView
QAction * actionSelectAll
QAction * actionSelectNone
QAction * actionAnimate
QAction * actionHelp
QAction * actionWhatsThis
QAction * actionAbout
AtomSetatoms
GLSimpleMoleculeViewglview


Constructor & Destructor Documentation

CrdView::CrdView  ) 
 

Definition at line 64 of file crdview.cpp.

CrdView::~CrdView  ) 
 

Definition at line 82 of file crdview.cpp.


Member Function Documentation

void CrdView::readCoordinates QString  filename = QString::null  ) 
 

Definition at line 89 of file crdview.cpp.

void CrdView::fileOpen  )  [private, slot]
 

Opens an existing coordinate file.

Definition at line 121 of file crdview.cpp.

void CrdView::fileSave  )  [private, slot]
 

Saves the coordinates in another format.

Definition at line 132 of file crdview.cpp.

void CrdView::fileExport  )  [private, slot]
 

Exports the current view to an image.

Definition at line 154 of file crdview.cpp.

void CrdView::filePreferences  )  [private, slot]
 

Temporarily changes the viewing preferences.

Defaults have to be changed in the preferences of Brabosphere.

Definition at line 165 of file crdview.cpp.

void CrdView::viewToolBar bool  toggle  )  [private, slot]
 

Toggles the visibility of the toolbar.

Definition at line 191 of file crdview.cpp.

void CrdView::viewStatusBar bool  toggle  )  [private, slot]
 

Toggles the visibility of the status bar.

Definition at line 204 of file crdview.cpp.

void CrdView::helpHelp  )  [private, slot]
 

Show some general information.

Definition at line 217 of file crdview.cpp.

void CrdView::helpWhatsThis  )  [private, slot]
 

Enters What's This mode.

Definition at line 258 of file crdview.cpp.

void CrdView::helpAbout  )  [private, slot]
 

Show some program information.

Definition at line 267 of file crdview.cpp.

void CrdView::initActions  )  [private]
 

Definition at line 303 of file crdview.cpp.

void CrdView::initMenuBar  )  [private]
 

Definition at line 429 of file crdview.cpp.

void CrdView::initToolBar  )  [private]
 

Definition at line 477 of file crdview.cpp.

void CrdView::readSettings  )  [private]
 

Reads the settings from the Brabosphere settings file.

Definition at line 495 of file crdview.cpp.

void CrdView::saveSettings  )  [private]
 

Saves the CrdView view settings to the Brabosphere settings file.

Definition at line 644 of file crdview.cpp.

QString CrdView::actionText const QString  title,
const QString  brief,
const QString  details = QString::null,
const IconSets::IconSetID  iconID = IconSets::LastIcon
[private]
 

Constructs a What's This text for actions with proper richtext formatting.

  • title: The title of the action
  • brief: A brief one line description
  • details: A longer detailed description (optional)
  • iconID: translates to the name of a pixmap in the default mimesource factory (optional) This routine is identical to the one used in the Xbrabo class. Refactoring needed.

Definition at line 668 of file crdview.cpp.


Member Data Documentation

QToolBar* CrdView::ToolBarFile [private]
 

Definition at line 77 of file crdview.h.

QAction* CrdView::actionFileOpen [private]
 

Definition at line 79 of file crdview.h.

QAction* CrdView::actionFileSave [private]
 

Definition at line 80 of file crdview.h.

QAction* CrdView::actionFilePreferences [private]
 

Definition at line 81 of file crdview.h.

QAction* CrdView::actionFileExport [private]
 

Definition at line 82 of file crdview.h.

QAction* CrdView::actionFileQuit [private]
 

Definition at line 83 of file crdview.h.

QAction* CrdView::actionViewToolBar [private]
 

Definition at line 85 of file crdview.h.

QAction* CrdView::actionViewStatusBar [private]
 

Definition at line 86 of file crdview.h.

QAction* CrdView::actionCenterView [private]
 

Definition at line 88 of file crdview.h.

QAction* CrdView::actionResetOrientation [private]
 

Definition at line 89 of file crdview.h.

QAction* CrdView::actionZoomFit [private]
 

Definition at line 90 of file crdview.h.

QAction* CrdView::actionResetView [private]
 

Definition at line 91 of file crdview.h.

QAction* CrdView::actionSelectAll [private]
 

Definition at line 93 of file crdview.h.

QAction* CrdView::actionSelectNone [private]
 

Definition at line 94 of file crdview.h.

QAction* CrdView::actionAnimate [private]
 

Definition at line 95 of file crdview.h.

QAction* CrdView::actionHelp [private]
 

Definition at line 97 of file crdview.h.

QAction* CrdView::actionWhatsThis [private]
 

Definition at line 98 of file crdview.h.

QAction* CrdView::actionAbout [private]
 

Definition at line 99 of file crdview.h.

AtomSet* CrdView::atoms [private]
 

Definition at line 101 of file crdview.h.

GLSimpleMoleculeView* CrdView::glview [private]
 

Definition at line 102 of file crdview.h.


Generated on Fri May 19 14:31:57 2006 for Brabosphere by  doxygen 1.4.6-NO