-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainform.h
98 lines (81 loc) · 2.67 KB
/
mainform.h
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
95
96
97
/*
grammar-bg - open source Bulgarian grammar
Copyright (C) 2007 Vanyo Georgiev <info@vanyog.com>
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.
*/
#ifndef MAINFORM_H
#define MAINFORM_H
#include <QClipboard>
#include "grammar.h"
#include "largelistview.h"
#include "searchDialog.h"
#include "ui_mainform.h"
class QModelIndex;
class BgEnDictionary;
class MyMainWindow : public QMainWindow
{
Q_OBJECT
public:
// Директория с данни
QString dataDir;
QString helpDir;
LangDictionary langDic, idiDic;
MyMainWindow(QWidget *parent = 0);
void spellCheckFile();
void spellCheckFile(const QString &fn, const QString &codec = "cp1251");
void setPList();
public slots:
void changeRootsAndForms(bool yes);
private:
Ui::MainWindow ui;
LargeListView *llView;
SearchDialog *searchDialog;
WordRoot *cRoot;
QStringList *cList();
WordRootFormPairList *rfpList();
WordRootFormPair *cRfp;
BgEnDictionary *bgEnDic;
BgEnDictionary *thesDic;
bool wordAdded;
void closeEvent(QCloseEvent *event);
void showInfo(int i=0); // показва информация за думата с номер i от списъка
void showFormList();
void showByTab(int tab, int i);
void writeSettings();
void readSettings();
private slots:
void onWordClicked(const QModelIndex &mi);
void onWordFormClicked(const QModelIndex &mi);
void onWordTextClicked(const QModelIndex &mi);
void onWordEditChanged(const QString &tx);
void onAddButtonPressed();
void onFindButtonPressed();
void onPNameChanged(const QString &n);
void onTabChanged(int tab);
void onAboutPr();
void onDictionaryInfo();
void onFileSaveAs();
void onFileOpenDat();
void onFileExploreData();
void onFileDeleteIndexFiles();
void onFileIDIDic();
void onEditSearch();
void onFontAction();
void onAutoCSPellcheck();
void onToolsSpellCheckFile();
void onToolsSpellCheckFileUtf8();
void onToolsSpellCheckClipboard();
void onToolsContinueSpelling();
void on_actionDetailed_help_triggered();
};
#endif