summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-bartender/bartender.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-bartender/bartender.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-bartender/bartender.h63
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
20class QVBoxLayout;
21class QHBoxLayout;
22class QGridLayout;
23class QListView;
24class QListViewItem;
25class QPEToolBar;
26
27class Bartender : public QMainWindow
28{
29 Q_OBJECT
30
31public:
32 Bartender( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
33 ~Bartender();
34
35 QPEToolBar* ToolBar1;
36 QListView* DrinkView;
37 QFile dbFile;
38public slots:
39 void doEdit();
40
41protected:
42
43protected 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();
57private:
58 void clearList();
59 void fillList();
60
61};
62
63#endif // BARTENDER_H