#ifndef _FORM_
#define _FORM_

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#include <wx/wx.h>
#include <wx/aboutdlg.h>

#include "nav.h"
#include "viewer.h"

#include "dexp.h"
#include "dimag.h"
#include "dshow.h"
#include "ddl.h"

class Form : public wxFrame {
 public:
  Form(const wxString& title, const wxPoint& pos, const wxSize& size);
  
  void OnRestore(wxCommandEvent& event);
  void OnExport(wxCommandEvent& event);
  void OnExit(wxCommandEvent& event);
  void OnContents(wxCommandEvent& event);
  void OnExample(wxCommandEvent& event);
  void OnSourceCode(wxCommandEvent& event);
  void OnExecutable(wxCommandEvent& event);
  void OnManual(wxCommandEvent& event);
  void OnAbout(wxCommandEvent& event);
 
 private:
  wxMenu *menufile, *menushow, *menudownload, *menuhelp;
  wxMenuBar *menubar;

  wxPanel *panel;
  Viewer *html;
  Navigator *nav;

  wxBitmapButton *buttonhelp;
  wxBitmapButton *buttonexit;
  
  DialogExport *menuexport;
  DialogShowChapter *menuchapter;
  DialogShowExample *menuexample;
  DialogDownloadCode *menucode;
  DialogDownloadExe *menuexe;
  DialogImage *menushowimage;
  wxAboutDialogInfo aboutas;

  DECLARE_EVENT_TABLE()
 };

#endif