main.h

Go to the documentation of this file.
00001 /* Copyright (C) 2006 P.L. Lucas
00002  *
00003  * This program is free software; you can redistribute it and/or modify
00004  * it under the terms of the GNU General Public License as published by
00005  * the Free Software Foundation; either version 2 of the License, or
00006  * (at your option) any later version.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, 
00016  * Boston, MA 02111-1307, USA. 
00017  */
00018 
00019 
00020 #ifndef __MAIN_H__
00021 #define __MAIN_H__
00022 #include <QApplication>
00023 #include <QMainWindow>
00024 #include <QTextEdit>
00025 #include <QWorkspace>
00026 #include <QTextBrowser>
00027 #include <QListWidget>
00028 #include "mainwindow.h"
00029 #include "octave_connection.h"
00030 #include "terminal.h"
00031 #include "window_list.h"
00032 #include "operations.h"
00033 #include "basewidget.h"
00034 
00035 /**Controls all modules. Exec application and interconnect modules.
00036 */
00037 
00038 class Main:public QObject
00039 {
00040         Q_OBJECT
00041         MainWindow *main_window;
00042         QWorkspace *work_space;
00043         WindowList *window_list;
00044         Operations *operations;
00045         
00046         Terminal *terminal;
00047         public:
00048         Main(QObject * parent = 0);
00049         BaseWidget *active_widget;
00050         
00051         public slots:
00052         /**Shows Octave Help.*/
00053         void help_octave();
00054         /**Shows QtOctave Help.*/
00055         void help_qtoctave();
00056         /**Shows Table.*/
00057         void table();
00058         /**Opens new QtOctave window.*/
00059         void open();
00060         /**Callback used for sets active_widget.
00061          * @param w widget activated.
00062         */
00063         void widget_activated(BaseWidget *w);
00064 };
00065 
00066 #endif

Generated on Wed Mar 21 10:32:50 2007 for QtOctave by  doxygen 1.4.7