generate_menu.h

Go to the documentation of this file.
00001 #ifndef __GENERATE_MENU_H__
00002 #define __GENERATE_MENU_H__
00003 #include "mainwindow.h"
00004 #include "octave_connection.h"
00005 #include <QProcess>
00006 
00007 class GenerateMenu:public QObject
00008 {
00009         Q_OBJECT
00010         public:
00011         GenerateMenu(MainWindow *mainwindow);
00012         void setPath(char *path);
00013         void load_menu();
00014         void load_menu(QString dir_name, QMenu *parent_menu);
00015         private:
00016         //Directorio en el que se encuentran los menús
00017         char *path;
00018         MainWindow *mainwindow;
00019 };
00020 
00021 class MenuCallBack:public QObject
00022 {
00023         Q_OBJECT
00024         public:
00025         MenuCallBack(QString menu_name, OctaveConnection *oc);
00026         private:
00027         QProcess process;
00028         QString menu_name;
00029         QString output;
00030         OctaveConnection *octave_connection;
00031         public slots:
00032         void actions_callback();
00033         void readyReadStandardOutput();
00034         void finished( int exitCode, QProcess::ExitStatus exitStatus );
00035 };
00036 
00037 #endif

Generated on Thu Feb 1 12:34:25 2007 for QtOctave by  doxygen 1.4.7