-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfileselect.h
65 lines (53 loc) · 1.44 KB
/
fileselect.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
/****************************************************************************
** Form interface generated from reading ui file 'fileselect.ui'
**
** Created: Sat Mar 20 23:01:33 2004
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef FILESELECT_H
#define FILESELECT_H
#include <qvariant.h>
#include <qwidget.h>
#include <qpixmap.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QComboBox;
class QListView;
class QListViewItem;
class QPushButton;
class QZDir;
#include "timestamp.h"
#include "fileopen.h"
class FileSelect : public FileSelectForm
{
Q_OBJECT
public:
QPixmap m_pFile, m_pDir;
protected:
QZDir *m_dir;
public:
FileSelect( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~FileSelect();
QString getDirectory();
private:
void keyPressEvent(QKeyEvent*ev);
void keyReleaseEvent(QKeyEvent*ev);
int m_key;
TimeStamp m_stamp;
signals:
void openFile(QString str, int parser_id, int encoding_id);
void endOpenFile();
public slots:
void openDirectory();
void refreshDirectory();
void cdUp();
void setDirectory(const QString &str);
void setFile(const QString &name);
void itemClicked(QListViewItem *item);
void openFile();
void selectParser(int idx);
};
#endif // FILESELECT_H