blob: 68a8f95ff01198d0913e506b0f31152f8e1e9b27 (
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
|
/***************************************************************************
* *
* 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. *
* *
**************************************************************************/
#include <qmainwindow.h>
class QLabel;
class QVBox;
class QPopupMenu;
class QMenuBar;
class QHBox;
class QPushButton;
class QLineEdit;
class QAction;
class QVBoxLayout;
class QActionGroup;
class DingWidget;
class QTextBrowser;
class QComboBox;
class DingWidget;
class ODict : public QMainWindow
{
Q_OBJECT
public:
ODict(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
QVBox *vbox;
QTextBrowser *browser_top,
*browser_bottom;
DingWidget *ding;
static QString appName() { return QString::fromLatin1("odict"); }
private:
QPopupMenu *help, *settings, *parameter;
QMenuBar *menu;
QHBox *hbox;
QLineEdit *query_le;
QComboBox *query_co;
QPushButton *ok_button;
QVBoxLayout *vbox_layout;
QAction *setting_a, *setting_b;
void setupMenus();
bool casesens, completewords;
void loadConfig();
void saveConfig();
QString activated_name;
QLabel *bottom_name,
*top_name;
QString top_name_content, bottom_name_content;
void lookupLanguageNames( QString );
private slots:
void slotStartQuery();
void slotSettings();
void slotSetParameter( int );
void slotMethodChanged( const QString& );
};
|