Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

# kokmainwidget.h

    00001 /***************************************************************************
    00002  *   Copyright (C) 2005 by Bertrand Haut                                   *
    00003  *   bertrand.haut@gmail.com                                               *
    00004  *                                                                         *
    00005  *   This program is free software; you can redistribute it and/or modify  *
    00006  *   it under the terms of the GNU General Public License as published by  *
    00007  *   the Free Software Foundation; either version 2 of the License, or     *
    00008  *   (at your option) any later version.                                   *
    00009  *                                                                         *
    00010  *   This program is distributed in the hope that it will be useful,       *
    00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
    00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
    00013  *   GNU General Public License for more details.                          *
    00014  *                                                                         *
    00015  *   You should have received a copy of the GNU General Public License     *
    00016  *   along with this program; if not, write to the                         *
    00017  *   Free Software Foundation, Inc.,                                       *
    00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
    00019  ***************************************************************************/
    00020 #ifndef KOKMAINWIDGET_H
    00021 #define KOKMAINWIDGET_H
    00022
    00023 #include <qwidget.h>
    00024 #include "common.h"
    00025 #include "qvaluevector.h"
    00026 #include "qstringlist.h"
    00027 #include "searchrequest.h"
    00028 #include "searchresult.h"
    00029 #include "qtabbarext.h"
    00030 #include <qlistbox.h>
    00031 #include <qtextedit.h>
    00032
    00037 class kokMainWidget : public QWidget
    00038 {
    00039 Q_OBJECT
    00040 public:
    00041         kokMainWidget(QWidget *parent = 0, const char *name = 0);
    00042
    00043         ~kokMainWidget();
    00044         void saveOptions();
    00045
    00046 public slots:
    00047         virtual void fileNew();
    00048         virtual void fileOpen();
    00049         virtual void fileSave();
    00050         virtual void fileSaveAs();
    00051         virtual void filePrint();
    00052         virtual void fileExit();
    00053         virtual void editUndo();
    00054         virtual void editRedo();
    00055         virtual void editCut();
    00056         virtual void itemHighlighted( const QString & str );
    00057         virtual void editPaste();
    00059         virtual void editPref();
    00060         virtual void editFind();
    00061         virtual void helpIndex();
    00062         virtual void helpContents();
    00063         virtual void helpAbout();
    00064         virtual void newSearchRequest( searchRequest sr );
    00065         virtual void newTabSelected( int id );
    00066         virtual void closeAllTab();
    00067         virtual void newTabSelected( QString str );
    00068         virtual void closeThisTab( QString name );
    00069         virtual void closeAllOther( QString name );
    00070
    00071 signals:
    00072         void displayMessage(QString);
    00073
    00074 protected:
    00075         QMap<QString, recipe *> dicoAll;
    00076         QValueVector<recipe *> allRecipes;
    00077         dicoRecipe dicoFind;
    00078         QStringList * allNames;
    00079         QValueVector<searchResult> searches;
    00080         QStringList * allElementsName;
    00081
    00082         QListBox * nameListBox;
    00083         QTabBarExt * tabWidget;
    00084         QTextEdit * recipeAllTextEdit;
    00086         units userUnits;
    00087 };
    00088
    00089 #endif