1 // -*- C++ -*- generated by wxGlade 0.6.3 on Sat Apr 19 19:36:23 2008
2 /*
3   Copyright 2008 Ronald S. Burkey <info@sandroid.org>
4 
5   This file is part of GutenMark.
6 
7   GutenMark is free software; you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
9   the Free Software Foundation; either version 2 of the License, or
10   (at your option) any later version.
11 
12   GutenMark is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16 
17   You should have received a copy of the GNU General Public License
18   along with GutenMark; if not, write to the Free Software
19   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 
21   Filename:	GUItenMark.cpp
22   Purpose:	This file contains the GUI event handlers for GUItenMark.
23   Mods:		04/18/2008 RSB	Began.
24   		04/21/2008 RSB	I'd cautiously say, "It's working."
25 		05/29/2008 RSB	Added stuff related to GutenSplit.
26 
27   This file is partially generated by wxGlade from GUItenMark.wxg.
28   (Of course, I wrote GUItenMark.wxg and there's no way to embed any
29   copyright or licensing info in it, but I assert the same copyright
30   and licensing for it as for this file.  Conversely, even though
31   this file is partially machine-generated, it is generated from
32   my instructions in GUItenMark.wxg, so I can assert copyright.)
33   However, this section of the file is not overwritten, and is
34   maintained manually.
35 */
36 
37 #include <wx/wx.h>
38 #include <wx/image.h>
39 // begin wxGlade: ::dependencies
40 #include <wx/statline.h>
41 // end wxGlade
42 
43 
44 #ifndef GUITENMARK_H
45 #define GUITENMARK_H
46 
47 
48 // begin wxGlade: ::extracode
49 // end wxGlade
50 
51 
52 class MyFrame: public wxFrame {
53 public:
54     // begin wxGlade: MyFrame::ids
55     enum {
56         ID_OUTPUT_FOLDER_BROWSE = 1
57     };
58     // end wxGlade
59 
60     enum {
61       ID_INPUT_FILES = 2, ID_ADD_FILES, ID_CLEAR_INPUT_LIST, ID_OVERRIDE_AUTHOR,
62       ID_OVERRIDE_TITLE, ID_CONVERT_TEXTS, ID_OUTPUT_FILES, ID_CLEAR_OUTPUT_LIST,
63       ID_OUTPUT_FOLDER, ID_ALL_CAPS_OK, ID_RESTORE_DIACRITS, ID_RAGGED_RIGHT,
64       ID_HTML_OUTPUT, ID_LATEX_OUTPUT, ID_FIRST_WORD_ALL_CAPS, ID_ITALICIZE_FOREIGN,
65       ID_PRESERVE_STRINGS_OF_HYPHENS, ID_USE_SYMBOLIC_ENTITIES, ID_LATEX_SECTIONS,
66       ID_FIRST_WORD_ITALICS, ID_SINGLE_SPACE_BETWEEN_SENTENCES, ID_ADD_PREFATORY_MARKS,
67       ID_INDENT_PARAGRAPHS, ID_RETAIN_PG_HEADER, ID_ADD_PAGE_BREAK_MARKS,
68       ID_ELIMINATE_TOC, ID_CONFIGURATION_FILE, ID_BROWSE_CONFIGURATION_FILES,
69       ID_PROFILE, ID_SAVE_SETTINGS, ID_RESTORE_SETTINGS, ID_GOODBYE, ID_AUTHOR_LABEL,
70       ID_TITLE_LABEL, ID_DEFAULT_SETTINGS, ID_DEBUG, ID_RONS_OPTIONS, ID_BROWSER,
71       ID_POPULATE, ID_APPLE_QUIT, ID_LEVEL1, ID_LEVEL2, ID_LEVEL3, ID_LEVEL4,
72       ID_GUTENSPLIT, ID_SKIP_FIRST_HEADING, ID_TOC
73     };
74 
75     MyFrame(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE);
76 
77     int GetConfiguration (wxString Name);
78     int PutConfiguration (wxString Name);
79     void SideEffectsOfLists (void);
80 
81 private:
82     // begin wxGlade: MyFrame::methods
83     void set_properties();
84     void do_layout();
85     // end wxGlade
86 
87     virtual void OnClose (wxCloseEvent &event);
88     wxString Directory;	// For where to look for input files.
89 
90 protected:
91     // begin wxGlade: MyFrame::attributes
92     wxStaticText* label_2;
93     wxListBox* InputFiles;
94     wxButton* button_2;
95     wxButton* ClearInputList;
96     wxStaticText* AuthorLabel;
97     wxTextCtrl* AuthorOverride;
98     wxStaticText* TitleLabel;
99     wxTextCtrl* TitleOverride;
100     wxBitmapButton* ConvertTexts;
101     wxStaticText* label_3;
102     wxListBox* OutputFiles;
103     wxButton* ClearOutputList;
104     wxButton* Populate;
105     wxStaticText* label_8;
106     wxTextCtrl* OutputFolder;
107     wxButton* button_9;
108     wxStaticLine* static_line_2;
109     wxStaticText* label_1;
110     wxCheckBox* AllCapsOk;
111     wxCheckBox* RestoreDiacrits;
112     wxCheckBox* RaggedRightMargin;
113     wxRadioButton* HtmlOutput;
114     wxCheckBox* RunGutenSplit;
115     wxRadioButton* LatexOutput;
116     wxCheckBox* FirstWordAllCapsOk;
117     wxCheckBox* ItalicizeNonEnglish;
118     wxCheckBox* PreserveStringsOfHyphens;
119     wxCheckBox* HtmlUseSymbolicEntities;
120     wxCheckBox* LevelOne;
121     wxCheckBox* LevelTwo;
122     wxCheckBox* LevelThree;
123     wxCheckBox* LevelFour;
124     wxCheckBox* LatexSectionMarkup;
125     wxCheckBox* FirstWordItalicsOk;
126     wxCheckBox* SingleSpaceBetweenSentences;
127     wxCheckBox* HtmlAddPrefatoryMarks;
128     wxCheckBox* SkipFirstHeading;
129     wxCheckBox* LatexIndentParagraphs;
130     wxCheckBox* Debug;
131     wxCheckBox* RonsOptions;
132     wxCheckBox* RetainProjectGutenbergHeader;
133     wxCheckBox* HtmlAddPageBreakMarks;
134     wxCheckBox* TableOfContents;
135     wxCheckBox* LatexEliminateToc;
136     wxStaticText* label_6;
137     wxTextCtrl* ConfigurationFile;
138     wxButton* button_5;
139     wxStaticText* label_7;
140     wxChoice* Profile;
141     wxStaticLine* static_line_1;
142     wxButton* button_6;
143     wxButton* button_7;
144     wxButton* button_1;
145     wxButton* button_8;
146     // end wxGlade
147 
148     DECLARE_EVENT_TABLE();
149 
150 public:
151     virtual void ClickAddFiles(wxCommandEvent &event); // wxGlade: <event_handler>
152     virtual void ClickClearInputFiles(wxCommandEvent &event); // wxGlade: <event_handler>
153     virtual void ClickConvertTexts(wxCommandEvent &event); // wxGlade: <event_handler>
154     virtual void ClickClearOutputList(wxCommandEvent &event); // wxGlade: <event_handler>
155     virtual void ClickOutputFolderBrowse(wxCommandEvent &event); // wxGlade: <event_handler>
156     virtual void ClickHtmlOutput(wxCommandEvent &event); // wxGlade: <event_handler>
157     virtual void ClickLatexOutput(wxCommandEvent &event); // wxGlade: <event_handler>
158     virtual void NewConfigurationFiles(wxCommandEvent &event); // wxGlade: <event_handler>
159     virtual void ClickConfigurationFileBrowse(wxCommandEvent &event); // wxGlade: <event_handler>
160     virtual void ClickProfile(wxCommandEvent &event); // wxGlade: <event_handler>
161     virtual void ClickSaveSettings(wxCommandEvent &event); // wxGlade: <event_handler>
162     virtual void ClickRestoreSettings(wxCommandEvent &event); // wxGlade: <event_handler>
163     virtual void ClickGoodbye(wxCommandEvent &event); // wxGlade: <event_handler>
164     virtual void ClickDefaultSettings(wxCommandEvent &event); // wxGlade: <event_handler>
165     virtual void ClickRon(wxCommandEvent &event); // wxGlade: <event_handler>
166     virtual void ClickLatexIndentParagraphs(wxCommandEvent &event); // wxGlade: <event_handler>
167     virtual void ClickOutputFile(wxCommandEvent &event); // wxGlade: <event_handler>
168     virtual void ClickInputFile(wxCommandEvent &event); // wxGlade: <event_handler>
169     virtual void ClickPopulate(wxCommandEvent &event); // wxGlade: <event_handler>
170     virtual void SplitCheck(wxCommandEvent &event); // wxGlade: <event_handler>
171 }; // wxGlade: end class
172 
173 
174 #endif // GUITENMARK_H
175