-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzhscmw.h
80 lines (57 loc) · 1.51 KB
/
zhscmw.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
/*
ZHSC
zhscmw.h
v 0.0.1
2003/06/23
Copyright (C) 2003 Cavendish
http://www.qiliang.net/software/zhsc.html
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 ZHSCMAINWINDOW_H
#define ZHSCMAINWINDOW_H
#include <qmainwindow.h>
#include <qaction.h>
#include <qlabel.h>
#include "zhscwidget.h"
class ZhscMainWindow : public QMainWindow
{
Q_OBJECT
public:
ZhscMainWindow( QWidget* parent, const char* name );
~ZhscMainWindow();
public slots:
void bookmarkChanged( BookmarkList bml );
signals:
void selectBookmark( QString bm );
private slots:
void bookmark( int index );
void poemCount( int count );
void poetCount( QString poet, int count );
void poemIndex( int index );
void about();
void aboutQt();
private:
ZhscWidget *zw;
QAction *actExport;
QAction *actHistoryPrev;
QAction *actHistoryNext;
QAction *actClearHistory;
QAction *actRecordFirst;
QAction *actRecordPrev;
QAction *actRecordNext;
QAction *actRecordLast;
QAction *actRecordRandom;
QAction *actRecordNumber;
QAction *actAddBookmark;
QAction *actModifyBookmark;
QAction *actClearBookmark;
QPopupMenu *pmBookmark;
QLabel *lPoemCount;
QLabel *lPoetCount;
QLabel *lPoemIndex;
};
#endif //ZHSCMAINWINDOW_H