Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

bartender.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Created: Sat Jul 20 08:10:31 2002
00003 **      by:  L.J. Potter <ljp@llornkcor.com>
00004 **     copyright            : (C) 2002 by ljp
00005     email                : ljp@llornkcor.com
00006     *   This program is free software; you can redistribute it and/or modify  *
00007     *   it under the terms of the GNU General Public License as published by  *
00008     *   the Free Software Foundation; either version 2 of the License, or     *
00009     *   (at your option) any later version.                                   *
00010     ***************************************************************************/
00011 #ifndef BARTENDER_H
00012 #define BARTENDER_H
00013 #include "newdrinks.h"
00014 #include "drinkdata.h"
00015 
00016 #include <qvariant.h>
00017 #include <qwidget.h>
00018 #include <qmainwindow.h>
00019 #include <qfile.h>
00020 
00021 class QVBoxLayout; 
00022 class QHBoxLayout; 
00023 class QGridLayout; 
00024 class QListView;
00025 class QListViewItem;
00026 class QToolBar;
00027 
00028 class Bartender : public QMainWindow
00029 { 
00030     Q_OBJECT
00031 
00032 public:
00033     Bartender( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00034     ~Bartender();
00035     
00036     static QString appName() { return QString::fromLatin1("bartender"); }
00037 
00038     QToolBar* ToolBar1;
00039     QListView* DrinkView;
00040     DrinkData drinkDB;
00041 public slots:
00042     void doEdit();
00043     
00044 protected:
00045 
00046 protected slots:
00047     void fileMenuActivated(int);
00048     void editMenuActivated(int); 
00049     void cleanUp();
00050     void fileNew();
00051     void showDrink( QListViewItem *);
00052     void showDrink(int, QListViewItem *, const QPoint&, int);
00053     void initDrinkDb();
00054     void doSearchByName();
00055     void doSearchByIngredient();
00056     void showSearchResult(QStringList &);
00057     void doBac();
00058     void openCurrentDrink();
00059     void askSearch();
00060 private:
00061     void clearList();
00062     void fillList();
00063  
00064 };
00065 
00066 #endif // BARTENDER_H

Generated on Sat Nov 5 16:16:48 2005 for OPIE by  doxygen 1.4.2