summaryrefslogtreecommitdiffstats
path: root/client/browser/src/mainwindow.h
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2009-10-19 09:47:15 +0000
committerramon <ramongomez@us.es>2009-10-19 09:47:15 +0000
commit8964f9b26b06f61e20fba15bfe4fb653cc1a31b5 (patch)
tree8663353fbea6faab97ee1ac38d541d5485771018 /client/browser/src/mainwindow.h
parent87b02b26e403807cf587356ed77ac52c74eba3fd (diff)
Resstructuración de trunk.
git-svn-id: https://opengnsys.es/svn/trunk@390 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/browser/src/mainwindow.h')
-rw-r--r--client/browser/src/mainwindow.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/client/browser/src/mainwindow.h b/client/browser/src/mainwindow.h
new file mode 100644
index 00000000..de712e56
--- /dev/null
+++ b/client/browser/src/mainwindow.h
@@ -0,0 +1,65 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#define PROTOCOL "command:"
+#define ENVIRONMENT "OGLOGFILE"
+//#define ENVIRONMENT "OGIP,OGSERVER,OGLOG"
+
+#include <QWidget>
+#include <QProcess>
+#include <QMap>
+#include <QMainWindow>
+
+class QWebView;
+class QTextEdit;
+class QVBoxLayout;
+class QProcess;
+class QStringList;
+class QString;
+class QUrl;
+class QFile;
+class QTextStream;
+class QDockWidget;
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+ public:
+ MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+
+ public slots:
+ // Funcion que maneja los links
+ void slotLinkHandle(const QUrl& url);
+ void slotWebLoadStarted();
+ void slotWebLoadFinished(bool ok);
+ void slotWebLoadProgress(int progress);
+
+ // Funciones que manejan cada vez que el proceso hace algo
+ void slotProcessStarted();
+ void slotProcessFinished(int code,QProcess::ExitStatus status);
+ void slotProcessError(QProcess::ProcessError error);
+ void slotProcessOutput();
+ void slotProcessErrorOutput();
+
+ //Functions
+ protected:
+ int readEnvironmentValues();
+
+
+ protected:
+ QWebView *web;
+ QTextEdit *text;
+ QDockWidget *dock;
+
+ QProcess *process;
+ QStringList output;
+ QStringList errors;
+
+ QMap<QString,QString> env;
+ QFile *logfile;
+ QTextStream *logstream;
+};
+
+#endif // MAINWINDOW_H