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 /* 00036 Esta clase construye la ventana principal con los menús y el área de trabajo. 00037 */ 00038 00039 class Main:public QObject 00040 { 00041 Q_OBJECT 00042 MainWindow *main_window; 00043 QWorkspace *work_space; 00044 WindowList *window_list; 00045 Operations *operations; 00046 00047 Terminal *terminal; 00048 public: 00049 Main(QObject * parent = 0); 00050 BaseWidget *active_widget; 00051 00052 public slots: 00053 void help_octave(); 00054 void table(); 00055 void widget_activated(BaseWidget *w); 00056 }; 00057 00058 #endif