author | llornkcor <llornkcor> | 2005-08-24 20:22:10 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-08-24 20:22:10 (UTC) |
commit | 65edeafe2dc8689dce7c2ce94e954933b393dcf0 (patch) (side-by-side diff) | |
tree | 17d0986ef0bce73f44a4b9900466fcc533954814 /noncore/apps/opie-gutenbrowser/LibraryDialog.h | |
parent | f0bb6c410f19d502cf563254d95158617a32b94e (diff) | |
download | opie-65edeafe2dc8689dce7c2ce94e954933b393dcf0.zip opie-65edeafe2dc8689dce7c2ce94e954933b393dcf0.tar.gz opie-65edeafe2dc8689dce7c2ce94e954933b393dcf0.tar.bz2 |
optimize search. fix other things
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/LibraryDialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/LibraryDialog.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/apps/opie-gutenbrowser/LibraryDialog.h b/noncore/apps/opie-gutenbrowser/LibraryDialog.h index 8d6352f..95226b2 100644 --- a/noncore/apps/opie-gutenbrowser/LibraryDialog.h +++ b/noncore/apps/opie-gutenbrowser/LibraryDialog.h @@ -27,23 +27,32 @@ #include <qregexp.h> #include <qstring.h> #include <qtextstream.h> #include <qlabel.h> #include <stdlib.h> #include <qtabwidget.h> +#include <qvaluelist.h> class QVBoxLayout; class QHBoxLayout; class QGridLayout; class QListView; class QListViewItem; class QPushButton; //class QTabWidget; class QWidget; //class Gutenbrowser; +typedef struct { + QString title; + QString author; + QString year; + QString file; +} etext; + + class LibraryDialog : public QDialog { Q_OBJECT public: LibraryDialog( QWidget* parent = 0, const char* name = 0 , bool modal = TRUE, WFlags fl = 0 ); ~LibraryDialog(); @@ -96,13 +105,13 @@ public slots: void newList(); void Newlibrary(); void Library(); bool getAuthor(); void select_title(QListViewItem*); void cancelIt(); - void sort(); + void sortLists(int); bool moreInfo(); // void DownloadEmAll(); bool httpDownload(); bool setTitle(); void saveConfig(); bool download_Etext(); @@ -115,19 +124,23 @@ public slots: void comboSelect(int index); protected slots: protected: + QValueList<etext> etextLibrary; + void initDialog(); QHBoxLayout *hbox,*hbox1,*hbox2; QVBoxLayout *vbox; // void search_slot(); private: void addItems(); void clearItems(); void cleanStrings(); bool getEtext(const QStringList &); +private slots: + void authBoxClicked(); }; #endif // LIBRARYDIALOG_H |