author | llornkcor <llornkcor> | 2003-09-09 05:50:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-09-09 05:50:12 (UTC) |
commit | 82c17c8b900e8b4900ed048213934f67ba22f846 (patch) (unidiff) | |
tree | 74b93a0808f5c0c8f0745a85844ae3d75161604d /noncore/apps/opie-bartender/bartender.h | |
parent | e485a3bd44b3cc70280e03eb8a7958a5252cdd6a (diff) | |
download | opie-82c17c8b900e8b4900ed048213934f67ba22f846.zip opie-82c17c8b900e8b4900ed048213934f67ba22f846.tar.gz opie-82c17c8b900e8b4900ed048213934f67ba22f846.tar.bz2 |
bartender - for your drunken pleasures
Diffstat (limited to 'noncore/apps/opie-bartender/bartender.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-bartender/bartender.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/noncore/apps/opie-bartender/bartender.h b/noncore/apps/opie-bartender/bartender.h new file mode 100644 index 0000000..69cfa82 --- a/dev/null +++ b/noncore/apps/opie-bartender/bartender.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Created: Sat Jul 20 08:10:31 2002 | ||
3 | ** by: L.J. Potter <ljp@llornkcor.com> | ||
4 | ** copyright : (C) 2002 by ljp | ||
5 | email : ljp@llornkcor.com | ||
6 | * This program is free software; you can redistribute it and/or modify * | ||
7 | * it under the terms of the GNU General Public License as published by * | ||
8 | * the Free Software Foundation; either version 2 of the License, or * | ||
9 | * (at your option) any later version. * | ||
10 | ***************************************************************************/ | ||
11 | #ifndef BARTENDER_H | ||
12 | #define BARTENDER_H | ||
13 | #include "newdrinks.h" | ||
14 | |||
15 | #include <qvariant.h> | ||
16 | #include <qwidget.h> | ||
17 | #include <qmainwindow.h> | ||
18 | #include <qfile.h> | ||
19 | |||
20 | class QVBoxLayout; | ||
21 | class QHBoxLayout; | ||
22 | class QGridLayout; | ||
23 | class QListView; | ||
24 | class QListViewItem; | ||
25 | class QPEToolBar; | ||
26 | |||
27 | class Bartender : public QMainWindow | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | |||
31 | public: | ||
32 | Bartender( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
33 | ~Bartender(); | ||
34 | |||
35 | QPEToolBar* ToolBar1; | ||
36 | QListView* DrinkView; | ||
37 | QFile dbFile; | ||
38 | public slots: | ||
39 | void doEdit(); | ||
40 | |||
41 | protected: | ||
42 | |||
43 | protected slots: | ||
44 | void fileMenuActivated(int); | ||
45 | void editMenuActivated(int); | ||
46 | void cleanUp(); | ||
47 | void fileNew(); | ||
48 | void showDrink( QListViewItem *); | ||
49 | void showDrink(int, QListViewItem *, const QPoint&, int); | ||
50 | void initDrinkDb(); | ||
51 | void doSearchByName(); | ||
52 | void doSearchByDrink(); | ||
53 | void showSearchResult(QStringList &); | ||
54 | void doBac(); | ||
55 | void openCurrentDrink(); | ||
56 | void askSearch(); | ||
57 | private: | ||
58 | void clearList(); | ||
59 | void fillList(); | ||
60 | |||
61 | }; | ||
62 | |||
63 | #endif // BARTENDER_H | ||