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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/opie-bartender/bartender.h b/noncore/apps/opie-bartender/bartender.h
index 27362df..9970ef1 100644
--- a/noncore/apps/opie-bartender/bartender.h
+++ b/noncore/apps/opie-bartender/bartender.h
@@ -6,16 +6,17 @@
6 * This program is free software; you can redistribute it and/or modify * 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 * 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 * 8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. * 9 * (at your option) any later version. *
10 ***************************************************************************/ 10 ***************************************************************************/
11#ifndef BARTENDER_H 11#ifndef BARTENDER_H
12#define BARTENDER_H 12#define BARTENDER_H
13#include "newdrinks.h" 13#include "newdrinks.h"
14#include "drinkdata.h"
14 15
15#include <qvariant.h> 16#include <qvariant.h>
16#include <qwidget.h> 17#include <qwidget.h>
17#include <qmainwindow.h> 18#include <qmainwindow.h>
18#include <qfile.h> 19#include <qfile.h>
19 20
20class QVBoxLayout; 21class QVBoxLayout;
21class QHBoxLayout; 22class QHBoxLayout;
@@ -31,32 +32,32 @@ class Bartender : public QMainWindow
31public: 32public:
32 Bartender( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 33 Bartender( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
33 ~Bartender(); 34 ~Bartender();
34 35
35 static QString appName() { return QString::fromLatin1("bartender"); } 36 static QString appName() { return QString::fromLatin1("bartender"); }
36 37
37 QToolBar* ToolBar1; 38 QToolBar* ToolBar1;
38 QListView* DrinkView; 39 QListView* DrinkView;
39 QFile dbFile; 40 DrinkData drinkDB;
40public slots: 41public slots:
41 void doEdit(); 42 void doEdit();
42 43
43protected: 44protected:
44 45
45protected slots: 46protected slots:
46 void fileMenuActivated(int); 47 void fileMenuActivated(int);
47 void editMenuActivated(int); 48 void editMenuActivated(int);
48 void cleanUp(); 49 void cleanUp();
49 void fileNew(); 50 void fileNew();
50 void showDrink( QListViewItem *); 51 void showDrink( QListViewItem *);
51 void showDrink(int, QListViewItem *, const QPoint&, int); 52 void showDrink(int, QListViewItem *, const QPoint&, int);
52 void initDrinkDb(); 53 void initDrinkDb();
53 void doSearchByName(); 54 void doSearchByName();
54 void doSearchByDrink(); 55 void doSearchByIngredient();
55 void showSearchResult(QStringList &); 56 void showSearchResult(QStringList &);
56 void doBac(); 57 void doBac();
57 void openCurrentDrink(); 58 void openCurrentDrink();
58 void askSearch(); 59 void askSearch();
59private: 60private:
60 void clearList(); 61 void clearList();
61 void fillList(); 62 void fillList();
62 63