Main Page   Class Hierarchy   Compound List   File List   Compound Members  

AddressManagerFrame Class Reference

The frame with the wxGrid. More...

#include <AddressManagerFrame.h>

List of all members.

Public Methods

 AddressManagerFrame (wxFrame *frame, const wxString &title, const wxPoint &pos, const wxSize &size)
 Creates a frame, sets the accelerators and shows a default table. More...

 ~AddressManagerFrame ()
 Deletes the table. More...

void OnAbout (wxCommandEvent &event)
 Callback for the about menu command. More...

void OnMenuFileNew (wxCommandEvent &event)
 Callback for the file new menu command. More...

void OnMenuFileOpen (wxCommandEvent &event)
 Callback for the file open menu command. More...

void OnMenuFileClose (wxCommandEvent &event)
 Callback for the file close menu command (currently deactivated). More...

bool FileSaveImpl ()
 Saves the table, if the current filename is set. More...

void OnMenuFileSave (wxCommandEvent &event)
 Callback for the file save menu command. More...

bool FileSaveAsImpl ()
 Shows the save dialog and saves the table, if the dialog was commited. More...

void OnMenuFileSaveAs (wxCommandEvent &event)
 Callback for the file save as menu command. More...

void OnMenuFileExit (wxCommandEvent &event)
 Callback for the file exit menu command. More...

void OnMenuEditCut (wxCommandEvent &event)
 Callback for the edit cut menu command. More...

void OnMenuEditCopy (wxCommandEvent &event)
 Callback for the edit copy menu command. More...

void OnMenuEditPaste (wxCommandEvent &event)
 Callback for the edit paste menu command. More...

void OnMenuEditFind (wxCommandEvent &event)
 Callback for the edit find menu command. More...

void OnMenuTableDoublet (wxCommandEvent &event)
 Callback for the table doublet menu command. More...

void OnMenuTableSort (wxCommandEvent &event)
 Callback for the table sort menu command. More...

void OnMenuTableConfig (wxCommandEvent &event)
 Callback for the table config menu command. More...

void OnMenuExportEmail (wxCommandEvent &event)
 Callback for the export email menu command (currently deactivated). More...

void OnMenuExportSMS (wxCommandEvent &event)
 Callback for the export SMS menu command (currently deactivated). More...

void OnMenuExportFax (wxCommandEvent &event)
 Callback for the export fax menu command (currently deactivated). More...

void OnActivate (wxActivateEvent &event)
 Callback for the activate event. More...

void OnSize (wxSizeEvent &event)
 Callback for the size event. More...

bool onExit ()
 Is called from every method which wants to close the frame and exit the application. More...

void OnClose (wxCloseEvent &event)
 Callback for the close event. More...

void setDirty ()
 Sets the dirty flag to true. More...


Detailed Description

The frame with the wxGrid.

Definition at line 16 of file AddressManagerFrame.h.


Constructor & Destructor Documentation

AddressManagerFrame::AddressManagerFrame wxFrame *    frame,
const wxString &    title,
const wxPoint &    pos,
const wxSize &    size
 

Creates a frame, sets the accelerators and shows a default table.

Definition at line 35 of file AddressManagerFrame.cpp.

References OnMenuFileNew().

AddressManagerFrame::~AddressManagerFrame  
 

Deletes the table.

Definition at line 67 of file AddressManagerFrame.cpp.

References OnAbout(), OnClose(), OnMenuEditCopy(), OnMenuEditCut(), OnMenuEditFind(), OnMenuEditPaste(), OnMenuExportEmail(), OnMenuExportFax(), OnMenuExportSMS(), OnMenuFileExit(), OnMenuFileNew(), OnMenuFileOpen(), OnMenuFileSave(), OnMenuFileSaveAs(), OnMenuTableConfig(), OnMenuTableDoublet(), OnMenuTableSort(), and OnSize().


Member Function Documentation

bool AddressManagerFrame::FileSaveAsImpl  
 

Shows the save dialog and saves the table, if the dialog was commited.

Returns:
true, if the user has not canceled the dialog.

Definition at line 235 of file AddressManagerFrame.cpp.

References FileSaveImpl().

Referenced by FileSaveImpl(), and OnMenuFileSaveAs().

bool AddressManagerFrame::FileSaveImpl  
 

Saves the table, if the current filename is set.

If the filename is not set, FileSaveAsImpl will be called.

Returns:
false, if the user has canceled the dialog, if FileSaveAsImpl was called, otherwise true, if no error occured.

Definition at line 198 of file AddressManagerFrame.cpp.

References FileSaveAsImpl(), and AddressGridTable::serialize().

Referenced by FileSaveAsImpl(), onExit(), OnMenuFileNew(), OnMenuFileOpen(), and OnMenuFileSave().

void AddressManagerFrame::OnAbout wxCommandEvent &    event
 

Callback for the about menu command.

Definition at line 96 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnActivate wxActivateEvent &    event
 

Callback for the activate event.

Definition at line 764 of file AddressManagerFrame.cpp.

void AddressManagerFrame::OnClose wxCloseEvent &    event
 

Callback for the close event.

Definition at line 780 of file AddressManagerFrame.cpp.

References onExit().

Referenced by ~AddressManagerFrame().

bool AddressManagerFrame::onExit  
 

Is called from every method which wants to close the frame and exit the application.

Checks the dirty flag and calls the FileSaveImpl, if something is to save and returns the result.

Parameters:
true, if  the application can be exited, false, if the user vetoed it.

Definition at line 266 of file AddressManagerFrame.cpp.

References FileSaveImpl().

Referenced by OnClose(), and OnMenuFileExit().

void AddressManagerFrame::OnMenuEditCopy wxCommandEvent &    event
 

Callback for the edit copy menu command.

Definition at line 364 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuEditCut wxCommandEvent &    event
 

Callback for the edit cut menu command.

Definition at line 289 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuEditFind wxCommandEvent &    event
 

Callback for the edit find menu command.

Definition at line 503 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuEditPaste wxCommandEvent &    event
 

Callback for the edit paste menu command.

Definition at line 423 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuExportEmail wxCommandEvent &    event
 

Callback for the export email menu command (currently deactivated).

Definition at line 667 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuExportFax wxCommandEvent &    event
 

Callback for the export fax menu command (currently deactivated).

Definition at line 755 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuExportSMS wxCommandEvent &    event
 

Callback for the export SMS menu command (currently deactivated).

Definition at line 747 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuFileClose wxCommandEvent &    event
 

Callback for the file close menu command (currently deactivated).

Definition at line 187 of file AddressManagerFrame.cpp.

void AddressManagerFrame::OnMenuFileExit wxCommandEvent &    event
 

Callback for the file exit menu command.

Definition at line 281 of file AddressManagerFrame.cpp.

References onExit().

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuFileNew wxCommandEvent &    event
 

Callback for the file new menu command.

Definition at line 105 of file AddressManagerFrame.cpp.

References FileSaveImpl(), and AddressGridTable::Initialize().

Referenced by AddressManagerFrame(), and ~AddressManagerFrame().

void AddressManagerFrame::OnMenuFileOpen wxCommandEvent &    event
 

Callback for the file open menu command.

Definition at line 127 of file AddressManagerFrame.cpp.

References FileSaveImpl(), and AddressGridTable::Initialize().

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuFileSave wxCommandEvent &    event
 

Callback for the file save menu command.

Definition at line 227 of file AddressManagerFrame.cpp.

References FileSaveImpl().

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuFileSaveAs wxCommandEvent &    event
 

Callback for the file save as menu command.

Definition at line 258 of file AddressManagerFrame.cpp.

References FileSaveAsImpl().

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuTableConfig wxCommandEvent &    event
 

Callback for the table config menu command.

Definition at line 636 of file AddressManagerFrame.cpp.

References AddressGridTable::ChangeColumns(), and ColumnDialog::getNewColumns().

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuTableDoublet wxCommandEvent &    event
 

Callback for the table doublet menu command.

Definition at line 548 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnMenuTableSort wxCommandEvent &    event
 

Callback for the table sort menu command.

Definition at line 599 of file AddressManagerFrame.cpp.

References SortDialog::getSortOrder(), and AddressGridTable::Sort().

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::OnSize wxSizeEvent &    event
 

Callback for the size event.

Definition at line 770 of file AddressManagerFrame.cpp.

Referenced by ~AddressManagerFrame().

void AddressManagerFrame::setDirty  
 

Sets the dirty flag to true.

Definition at line 797 of file AddressManagerFrame.cpp.


Generated on Thu May 2 15:13:51 2002 for Wino by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001