blob: 5b505bf719c97ac5d31e2b3e4c844dfc8486f5ca (
plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/***************************************************************************
begin : Thu Jul 17
copyright : (C) 2001-2004 by George Wright
email : gwright@kde.org
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef KLATIN_H
#define KLATIN_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <kactionclasses.h>
#include <klineedit.h>
#include <kmainwindow.h>
#include "klatinchoose.h"
#include "klatingrammar.h"
#include "klatinverbs.h"
#include "klatinvocab.h"
#include "klatinsettings_vocabpage.h"
/** @short Main application class */
class KLatin : public KMainWindow
{
Q_OBJECT
TQ_OBJECT
public:
KLatin(TQWidget* tqparent=0, const char *name=0);
~KLatin();
void setupActions();
public slots:
/// Load vocabulary revision section
void loadVocab();
/// Load grammar revision section
void loadGrammar();
/// Load verb revision section
void loadVerbs();
/// Load revision notes in Konqueror
void loadRevision();
/// Parse settings from config file
void loadSettings();
/// Slot for the start button
void startClicked();
/// Reloads the section choose screen
void resetGUI();
private slots:
/// Slot for when settings are changed in the KConfig XT dialog
void settingsChanged();
void slotWriteMsg(const TQString&);
private:
KAction *m_loadVocab;
KAction *m_loadGrammar;
KAction *m_loadVerbs;
KAction *m_loadRevision;
KLatinChoose *klatinchoose;
KLatinGrammar *klatingrammarsection;
KLatinVocab *klatinvocabsection;
KLatinVerbs *klatinverbssection;
VocabPage *vocabPage;
/// Current section loaded
int m_section;
private:
/**
* Enable/Disable the items in the Section menu
*@param bool if bool is true then the menu items are enabled
*/
void updateSection(bool);
};
#endif // KLATIN_H
|