MainWindow Class Reference

The main window. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:

YAPETUI::BaseWindow

List of all members.

Public Member Functions

void handle_signal (int signo)
 MainWindow () throw (YAPETUI::UIException)
void resize () throw (YAPETUI::UIException)
void run (std::string fn)
void run () throw (YAPETUI::UIException)
virtual ~MainWindow ()

Protected Member Functions

void addNewRecord ()
void bottomRightWinContent () throw (YAPETUI::UIException)
void changePassword () throw (YAPETUI::UIException)
void closeFile ()
void createFile (std::string &filename) throw (YAPETUI::UIException)
void createWindow () throw (YAPETUI::UIException)
void deleteSelectedRecord () throw (YAPETUI::UIException)
void editSelectedRecord ()
void lockScreen () const throw (YAPETUI::UIException)
void openFile (std::string filename) throw (YAPETUI::UIException)
void printTitle () throw (YAPETUI::UIException)
bool quit ()
void refresh () throw (YAPETUI::UIException)
void saveFile ()
void searchNext ()
void searchTerm ()
void setSortOrder ()
void topRightWinContent () throw (YAPETUI::UIException)

Private Member Functions

 MainWindow (const MainWindow &)
const MainWindowoperator= (const MainWindow &)

Private Attributes

WINDOW * bottomrightwin
YAPET::Filefile
YAPET::Keykey
YAPETUI::ListWidget
< YAPET::PartDec > * 
recordlist
bool records_changed
StatusBar statusbar
WINDOW * toprightwin


Detailed Description

This is the main window class which shows the main menu in top right window, some information in the lower right window and the passwords stored in the file currently open in the left window.

It handles the menu key strokes and provides a screen locking function which is called after a certain number of seconds using the BaseWindow::setTimeout() method.

Definition at line 58 of file mainwindow.h.


Constructor & Destructor Documentation

MainWindow::MainWindow ( const MainWindow  )  [inline, private]

Definition at line 69 of file mainwindow.h.

MainWindow::MainWindow (  )  throw (YAPETUI::UIException)

Definition at line 955 of file mainwindow.cc.

References createWindow().

MainWindow::~MainWindow (  )  [virtual]

Definition at line 966 of file mainwindow.cc.

References bottomrightwin, file, key, recordlist, and toprightwin.


Member Function Documentation

void MainWindow::addNewRecord (  )  [protected]

void MainWindow::bottomRightWinContent (  )  throw (YAPETUI::UIException) [protected]

void MainWindow::changePassword (  )  throw (YAPETUI::UIException) [protected]

void MainWindow::closeFile (  )  [protected]

Definition at line 536 of file mainwindow.cc.

References file, YAPETUI::ListWidget< T >::getList(), key, recordlist, and records_changed.

void MainWindow::createFile ( std::string &  filename  )  throw (YAPETUI::UIException) [protected]

void MainWindow::createWindow (  )  throw (YAPETUI::UIException) [protected]

void MainWindow::deleteSelectedRecord (  )  throw (YAPETUI::UIException) [protected]

void MainWindow::editSelectedRecord (  )  [protected]

void MainWindow::handle_signal ( int  signo  ) 

Definition at line 1126 of file mainwindow.cc.

References lockScreen(), refresh(), and YAPETUI::BaseWindow::refreshAll().

Referenced by Alarm::process().

void MainWindow::lockScreen (  )  const throw (YAPETUI::UIException) [protected]

void MainWindow::openFile ( std::string  filename  )  throw (YAPETUI::UIException) [protected]

const MainWindow& MainWindow::operator= ( const MainWindow  )  [inline, private]

Definition at line 70 of file mainwindow.h.

void MainWindow::printTitle (  )  throw (YAPETUI::UIException) [protected]

bool MainWindow::quit (  )  [protected]

void MainWindow::refresh (  )  throw (YAPETUI::UIException) [protected, virtual]

void MainWindow::resize (  )  throw (YAPETUI::UIException) [virtual]

void MainWindow::run ( std::string  fn  ) 

Definition at line 1100 of file mainwindow.cc.

References file, key, openFile(), StatusBar::putMsg(), refresh(), run(), and statusbar.

void MainWindow::run (  )  throw (YAPETUI::UIException)

void MainWindow::saveFile (  )  [protected]

void MainWindow::searchNext (  )  [protected]

void MainWindow::searchTerm (  )  [protected]

void MainWindow::setSortOrder (  )  [protected]

void MainWindow::topRightWinContent (  )  throw (YAPETUI::UIException) [protected]

Definition at line 198 of file mainwindow.cc.

References KeyDesc::desc, KeyDesc::key, toprightwin, KeyDesc::x, and KeyDesc::y.

Referenced by createWindow(), and refresh().


Member Data Documentation

WINDOW* MainWindow::bottomrightwin [private]

Definition at line 61 of file mainwindow.h.

Referenced by bottomRightWinContent(), createWindow(), refresh(), resize(), and ~MainWindow().

WINDOW* MainWindow::toprightwin [private]

Definition at line 60 of file mainwindow.h.

Referenced by createWindow(), refresh(), resize(), topRightWinContent(), and ~MainWindow().


The documentation for this class was generated from the following files:

Generated on Mon Apr 13 17:29:47 2009 for YAPET by  doxygen 1.5.8