NanoFrame Class Reference

Main application window. More...

#include <nanoFrame.hpp>

Collaboration diagram for NanoFrame:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NanoFrame (MainController *controller)
 Constructor.
 ~NanoFrame ()
 Destructor.
void setStatusMessage (wxString messsage)
 Sets a message on the status bar.
void errorMsg (wxString message)
 Shows an error message.
void setTitleBar (wxString title)
 Sets a message on the window title bar.

Private Member Functions

void initMenubar ()
 Initializes the menu bar.
void initToolbar ()
 Creates and sets the tool bar.
void initStatusbar ()
 Creates and sets the status bar.
void OnSave (wxCommandEvent &event)
 Save project button click event.
void OnSaveAs (wxCommandEvent &event)
 Save As project button click event.
void OnOpen (wxCommandEvent &event)
 Open project button click event.
void OnNew (wxCommandEvent &event)
 New project button click event.

Private Attributes

MainControllernanoController
 Main controller.

Detailed Description

Main application window.

The application main window. It contains a panel with all the other main controller views, a toolbar, and a custom status bar.

Author:
Bernat Ràfales Mulet <the_bell@users.sourceforge.net>
Version:
Revision
1.14

Definition at line 36 of file nanoFrame.hpp.


Constructor & Destructor Documentation

NanoFrame::NanoFrame MainController controller  ) 
 

Constructor.

Parameters:
controller the main application controller.

Definition at line 60 of file nanoFrame.cpp.

NanoFrame::~NanoFrame  ) 
 

Destructor.

Definition at line 92 of file nanoFrame.cpp.


Member Function Documentation

void NanoFrame::errorMsg wxString  message  ) 
 

Shows an error message.

Parameters:
message the error message.

Definition at line 203 of file nanoFrame.cpp.

Referenced by MainController::openFile(), and MainController::prepareSimulation().

void NanoFrame::initMenubar  )  [private]
 

Initializes the menu bar.

Definition at line 98 of file nanoFrame.cpp.

void NanoFrame::initStatusbar  )  [private]
 

Creates and sets the status bar.

Definition at line 141 of file nanoFrame.cpp.

References setStatusMessage().

Here is the call graph for this function:

void NanoFrame::initToolbar  )  [private]
 

Creates and sets the tool bar.

Definition at line 119 of file nanoFrame.cpp.

References ID_BUTTON_NEW, ID_BUTTON_OPEN, ID_BUTTON_SAVE, and ID_BUTTON_SAVEAS.

void NanoFrame::OnNew wxCommandEvent &  event  )  [private]
 

New project button click event.

Parameters:
event the event.

Definition at line 193 of file nanoFrame.cpp.

References nanoController, and MainController::newFile().

Here is the call graph for this function:

void NanoFrame::OnOpen wxCommandEvent &  event  )  [private]
 

Open project button click event.

Parameters:
event the event.

Definition at line 183 of file nanoFrame.cpp.

References nanoController, and MainController::open().

Here is the call graph for this function:

void NanoFrame::OnSave wxCommandEvent &  event  )  [private]
 

Save project button click event.

Parameters:
event the event.

Definition at line 163 of file nanoFrame.cpp.

References nanoController, and MainController::save().

Here is the call graph for this function:

void NanoFrame::OnSaveAs wxCommandEvent &  event  )  [private]
 

Save As project button click event.

Parameters:
event the event.

Definition at line 173 of file nanoFrame.cpp.

References nanoController, and MainController::saveAs().

Here is the call graph for this function:

void NanoFrame::setStatusMessage wxString  message  ) 
 

Sets a message on the status bar.

Parameters:
message the message.

Definition at line 153 of file nanoFrame.cpp.

Referenced by initStatusbar(), and MainController::setStatusMessage().

void NanoFrame::setTitleBar wxString  title  ) 
 

Sets a message on the window title bar.

Parameters:
title message.

Definition at line 217 of file nanoFrame.cpp.

Referenced by MainController::newFile(), and MainController::save().


Member Data Documentation

MainController* NanoFrame::nanoController [private]
 

Main controller.

Definition at line 48 of file nanoFrame.hpp.

Referenced by OnNew(), OnOpen(), OnSave(), and OnSaveAs().


The documentation for this class was generated from the following files:
Generated on Fri Sep 1 23:59:18 2006 for NanoComp by  doxygen 1.4.6