00001 /*************************************************************************** 00002 openetext.h - description 00003 ------------------- 00004 begin : Tue Jul 25 2000 00005 copyright : (C) 2000 -2004 by llornkcor 00006 email : ljp@llornkcor.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef OPENETEXT_H 00018 #define OPENETEXT_H 00019 #include "gutenbrowser.h" 00020 #include <qdialog.h> 00021 #include <qstringlist.h> 00022 //#include <fileselector.h> 00023 #include <qlabel.h> 00024 #include <qlistbox.h> 00025 #include <qpushbutton.h> 00026 #include <qstrlist.h> 00027 #include <qwidget.h> 00028 //#include "CConfigFile.h" 00029 00034 class OpenEtext : public QDialog { 00035 Q_OBJECT 00036 public: 00037 OpenEtext(QWidget *parent, QString name); 00038 ~OpenEtext(); 00039 00040 QPushButton* RemoveButton, * OpenFileButton, * OpenButton, *scanButton, *editButton; 00041 void getTitles(); 00042 QString title; 00043 QString file; 00044 QString selFile; 00045 QString s_numofFiles; 00046 QString fileName; 00047 QString name; 00048 QString openFileTitle; 00049 QStringList fileList; 00050 QString local_library; 00051 QString local_index; 00052 QString title_text; 00053 void remFile(); 00054 void removeSelection(); 00055 QString titleFromLibrary( const QString fileName); 00056 bool FindTitle( const QString filename); 00057 bool checkConf(); 00058 // CConfigFile *config; 00059 00060 protected: 00061 00062 void initDialog(); 00063 QListBox *QListBox_1; 00064 QPushButton *QPushButton_OK; 00065 QPushButton *QPushButton_Cancel; 00066 QLabel *QLabel_1; 00067 00068 private: 00069 private slots: 00070 00071 virtual void select_title(int index ); 00072 virtual void remove(); 00073 virtual void scan(); 00074 virtual void open(); 00075 virtual void OpenTitle(); 00076 virtual void editTitle(); 00077 }; 00078 00079 #endif
1.4.2