Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

mgExportBasicOpt Class Reference

#include <ExportDlg.h>

Inheritance diagram for mgExportBasicOpt:

mgExportBasePanel List of all members.

Detailed Description

A panel composed of a wxStaticBoxSizer containing various widgets which allow the user to modify the basic export options.

The basic options are:

This class can be used as a base class for a different panel of basic options. In this case the derived class must overload the functions whose behaviour must be changed; to force the creation of derived-class instead of mgExportBasicOpt, a mgExportDlg's derived class must be created with an overloaded mgExportDlg::BuildCtrls() function (which is the place where mgExportBasicOpt is created).

Definition at line 137 of file ExportDlg.h.

Public Member Functions

 mgExportBasicOpt (wxWindow *parent, mgExportAdvOpt *adv=NULL, wxWindowID id=-1)
 Creates the panel but does not create the controls which are contained; see BuildAll() if you want to build them.
void SetAdvPanel (mgExportAdvOpt *adv)
 Links this panel with an advanced panel.
virtual void BuildAll ()
 Creates everything regarding this panel.

Protected Member Functions

virtual wxString GetShowAdvLabel ()
 Returns the label which should be currently shown on the "Show advanced options" button.
virtual void BuildCtrls ()
 Initializes the controls whose pointers are stored in the member variables to be easily used when required.
Event handlers. @{
void OnShowAdv (wxCommandEvent &event)
void OnBrowserModeChanged (wxCommandEvent &event)
void OnTitleChanged (wxCommandEvent &event)
void OnBrowse (wxCommandEvent &event)

Protected Attributes

wxChoice * m_pChoice
 The preset browser compability modes.
wxTextCtrl * m_pDest
 The destination of the exported file.
wxTextCtrl * m_pTitle
 The title of the exported file.
wxButton * m_pShowAdv
 This button allows the user to show/hide the ADVANCED panel eventually linked to this class.
wxFileDialog * m_pFD
 Instance of the file chooser dialog which can be used to change m_pDest.
mgExportAdvOptm_pAdv
 The ADVANCED panel which is linked to this class.

Friends

class mgExportDlg
class mgExportAdvOpt


Constructor & Destructor Documentation

mgExportBasicOpt::mgExportBasicOpt wxWindow *  parent,
mgExportAdvOpt adv = NULL,
wxWindowID  id = -1
[inline]
 

Creates the panel but does not create the controls which are contained; see BuildAll() if you want to build them.

Parameters:
parent The parent window (it should be mgExportDlg or a mgExportDlg-derived class).
adv The advanced panel linked to this panel; if this pointer is NULL, the "Show advanced options" is hidden.
id The ID of this panel.

Definition at line 195 of file ExportDlg.h.

References m_pAdv.


Member Function Documentation

void mgExportBasicOpt::BuildAll  )  [virtual]
 

Creates everything regarding this panel.

This function calls BuildCtrls() and then creates the entire layout for this panel.

Implements mgExportBasePanel.

Definition at line 154 of file ExportDlg.cpp.

References BuildCtrls(), m_pChoice, m_pDest, m_pShowAdv, and m_pTitle.

Referenced by mgExportDlg::BuildCtrls().

void mgExportBasicOpt::BuildCtrls  )  [protected, virtual]
 

Initializes the controls whose pointers are stored in the member variables to be easily used when required.

In this way, we do not have to use wxWindow::FindWindowById each time we must access them. Please note that IDs are still required for event handling.

Implements mgExportBasePanel.

Definition at line 110 of file ExportDlg.cpp.

Referenced by BuildAll().

void mgExportBasicOpt::SetAdvPanel mgExportAdvOpt adv  )  [inline]
 

Links this panel with an advanced panel.

If the given pointer is NULL, the m_pShowAdv button is automatically hidden.

Definition at line 209 of file ExportDlg.h.

References m_pAdv.

Referenced by mgExportDlg::BuildCtrls().


Member Data Documentation

mgExportAdvOpt* mgExportBasicOpt::m_pAdv [protected]
 

The ADVANCED panel which is linked to this class.

If there is no ADVANCED panel linked to this class (that is, if this pointer is NULL), the m_pShowAdv button is hidden.

Definition at line 167 of file ExportDlg.h.

Referenced by mgExportBasicOpt(), and SetAdvPanel().

wxButton* mgExportBasicOpt::m_pShowAdv [protected]
 

This button allows the user to show/hide the ADVANCED panel eventually linked to this class.

If there is no advanced panel linked to this class, this button is hidden.

Definition at line 157 of file ExportDlg.h.

Referenced by BuildAll().


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

Documentation generated with Doxygen on Sun Feb 6 17:19:27 2005
Visit MathStudio home page for more info

[ Top ]