Dialog.h

Go to the documentation of this file.
00001  /***************************************************************************
00002  * File:        ./Dialog.h
00003  * Author:      Ronni Grapenthin, NORVULK & HU-BERLIN
00004  * Created:     24.04.2007
00005  * Licence:     GPLv2
00006  *
00007  * #########################################################################
00008  *
00009  * CrusDe, simulation framework for crustal deformation studies
00010  * Copyright (C) 2007 Ronni Grapenthin
00011  *
00012  * This program is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU General Public License
00014  * as published by the Free Software Foundation; version 2
00015  * of the License.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00025  *
00026  ****************************************************************************/
00027 
00028 #ifndef _dialog_h
00029 #define _dialog_h
00030 
00031 #include <QTreeView>
00032 #include <QTextEdit>
00033 #include <QTreeView>
00034 #include <QVBoxLayout>
00035 #include <QHBoxLayout>
00036 #include <QDialog>
00037 #include <QApplication>
00038 #include <QPushButton>
00039 #include <QLayout>
00040 #include <QModelIndex>
00041 
00042 #include "Qt_TreeModel.h"
00043 #include "DatabaseManager.h"
00044 
00045 class Dialog : public QDialog
00046 {
00047         Q_OBJECT
00048 
00049     public:
00050        Dialog(DatabaseManager*, string title, bool addbutton);
00051 
00052     private slots:
00053         virtual void deleteClicked();
00054         virtual void addClicked();
00055         virtual void quitClicked();
00056         virtual void showDetails(QModelIndex);
00057 
00058     private:
00059         void setModelData();
00060         
00061         DatabaseManager  *manager;      
00062         QTextEdit       details;
00063         QHBoxLayout     layout_main;
00064         QVBoxLayout     layout_ctrlbutt;
00065         TreeModel       treemodel;
00066         QTreeView       treeview;
00067         QPushButton     *butt_QUIT, *butt_DELETE, *butt_ADD;
00068 };
00069 #endif //_dialog_h

Generated on Sun Aug 31 13:18:59 2008 for CrusDe by  doxygen 1.5.0