File: ebook2cwgui.h

package info (click to toggle)
ebook2cwgui 0.1.2-5
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 248 kB
  • sloc: cpp: 1,265; makefile: 267
file content (77 lines) | stat: -rw-r--r-- 2,614 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* 
ebook2cwgui - A GUI for ebook2cw

Copyright (C) 2011  Fabian Kurz, DJ1YFK

$Id: ebook2cwgui.h 562 2013-01-05 22:23:48Z dj1yfk $

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
Street, Fifth Floor, Boston, MA  02110-1301, USA.

*/


#include <wx/wx.h>
#include <wx/spinctrl.h>
#include <wx/taskbar.h>
#include <wx/filepicker.h>
#include <wx/hyperlink.h>
#include <wx/textfile.h>
#include <wx/stdpaths.h>
#include "about.h"

class Ebook2cw : public wxFrame
{
	public:
		Ebook2cw(const wxString& title);
		void OnQuit(wxCommandEvent & event);
		void Convert(wxCommandEvent & event);
		void OnFileChange(wxFileDirPickerEvent& event);
		void OnDirChange(wxFileDirPickerEvent& event);
		void OnChapterStringChange(wxCommandEvent & event);
		void OnWpmChange(wxSpinEvent & event);
		void OnWpmeChange(wxSpinEvent & event);
		void OnEwsChange(wxSpinEvent & event);
		void OnQrqChange(wxSpinEvent & event);
		void OnToneChange(wxSpinEvent & event);
		void OnLimitWordsChange(wxSpinEvent & event);
		void OnLimitSecondsChange(wxSpinEvent & event);
		void OnWaveChange (wxCommandEvent & event);
		void OnOutfileChange(wxCommandEvent & event);
		void OnAuthorChange(wxCommandEvent & event);
		void OnTitleChange(wxCommandEvent & event);
		void OnCommentChange(wxCommandEvent & event);
		void OnYearChange(wxCommandEvent & event);
		void OnFormatChange(wxCommandEvent & event);
		void OnResetQrqChange(wxCommandEvent & event);
		void OnNoBTChange(wxCommandEvent & event);
		void OnAddParamChange(wxCommandEvent & event);
		void OnWebsiteLinkHover(wxMouseEvent & event);
		DECLARE_EVENT_TABLE()
	private:
		WX_DECLARE_STRING_HASH_MAP(wxString, ParamH);
		ParamH h; /* Hash for command line params */
		wxString InFilename;
		wxString OutDir;
		wxString AddParam;
		wxString Ebook2cwCmd;
		bool ResetQrq, NoBT;
		bool initialized;
		void ReadConfigFile();
		void SaveConfigFile(wxCommandEvent & event);
		wxString FindConfigFile();
		void FindExecutable();
		wxString IsPlaintext(wxString &s);
		void ShowAbout(wxCommandEvent & event);
};