-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEntryDialog.h
More file actions
executable file
·56 lines (42 loc) · 944 Bytes
/
EntryDialog.h
File metadata and controls
executable file
·56 lines (42 loc) · 944 Bytes
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
#ifndef __ENTRYDIALOG_H__
#define __ENTRYDIALOG_H__
#include <QDateEdit>
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include "Library.h"
#include "Entry.h"
class Library;
class Entry;
class EntryDialog : public QDialog
{
Q_OBJECT
public:
EntryDialog(QWidget * parent = 0);
void set_library( Library * l )
{_library_pointer = l;}
virtual void set_entry( Entry * e );
public slots:
virtual void ok_clicked();
void open_file_search();
void open_file();
protected:
QLabel * _title;
QLineEdit * _title_edit;
QLabel * _author;
QLineEdit * _author_edit;
QLabel * _date;
QDateEdit * _date_edit;
QLabel * _file;
QLineEdit * _file_edit;
QPushButton * _search;
QPushButton * _open;
QPushButton * _ok;
QPushButton * _cancel;
QVBoxLayout * _topdown;
Library * _library_pointer;
Entry * _entry_pointer;
};
#endif // __ENTRYDIALOG_H__