summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/openetext.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/openetext.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/openetext.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/noncore/apps/opie-gutenbrowser/openetext.h b/noncore/apps/opie-gutenbrowser/openetext.h
new file mode 100644
index 0000000..6db71c4
--- a/dev/null
+++ b/noncore/apps/opie-gutenbrowser/openetext.h
@@ -0,0 +1,82 @@
1/***************************************************************************
2 openetext.h - description
3 -------------------
4 begin : Tue Jul 25 2000
5 copyright : (C) 2000 -2004 by llornkcor
6 email : ljp@llornkcor.com
7 ***************************************************************************/
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef OPENETEXT_H
18#define OPENETEXT_H
19#include "gutenbrowser.h"
20#include <qdialog.h>
21#include <qstringlist.h>
22#ifndef Q_WS_QWS
23#include <qfiledialog.h>
24#endif
25//#include <fileselector.h>
26#include <qlabel.h>
27#include <qlistbox.h>
28#include <qpushbutton.h>
29#include <qstrlist.h>
30#include <qwidget.h>
31//#include "CConfigFile.h"
32
33/**
34 *@author llornkcor
35 */
36
37class OpenEtext : public QDialog {
38 Q_OBJECT
39public:
40 OpenEtext(QWidget *parent, QString name);
41 ~OpenEtext();
42
43 QPushButton* RemoveButton, * OpenFileButton, * OpenButton, *scanButton, *editButton;
44 void getTitles();
45 QString title;
46 QString file;
47 QString selFile;
48 QString s_numofFiles;
49 QString fileName;
50 QString name;
51 QString openFileTitle;
52 QStringList fileList;
53 QString local_library;
54 QString local_index;
55 QString title_text;
56 void remFile();
57 void removeSelection();
58 QString titleFromLibrary( const QString fileName);
59 bool FindTitle( const QString filename);
60 bool checkConf();
61// CConfigFile *config;
62
63protected:
64
65 void initDialog();
66 QListBox *QListBox_1;
67 QPushButton *QPushButton_OK;
68 QPushButton *QPushButton_Cancel;
69 QLabel *QLabel_1;
70
71private:
72private slots:
73
74 virtual void select_title(int index );
75 virtual void remove();
76 virtual void scan();
77 virtual void open();
78 virtual void OpenTitle();
79 virtual void editTitle();
80};
81
82#endif