71 lines
1.5 KiB
C++
71 lines
1.5 KiB
C++
|
#ifndef LINBOINFOBROWSERIMPL_HH
|
||
|
#define LINBOINFOBROWSERIMPL_HH
|
||
|
|
||
|
#include "ui_linboInfoBrowser.h"
|
||
|
|
||
|
#include <qobject.h>
|
||
|
#include <qlabel.h>
|
||
|
#include <qlineedit.h>
|
||
|
#include <qvariant.h>
|
||
|
#include <qwidget.h>
|
||
|
#include <qdialog.h>
|
||
|
#include <QTextEdit>
|
||
|
#include <qstringlist.h>
|
||
|
#include <qstring.h>
|
||
|
#include <QProcess>
|
||
|
#include <qfile.h>
|
||
|
#include "linboDialog.hh"
|
||
|
#include "linboGUIImpl.hh"
|
||
|
#include "linboLogConsole.hh"
|
||
|
|
||
|
class linboInfoBrowserImpl : public QWidget, public Ui::linboInfoBrowser, public linboDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
private:
|
||
|
QString line;
|
||
|
QWidget *myMainApp,*myParent;
|
||
|
linboGUIImpl *app;
|
||
|
QProcess* process;
|
||
|
QStringList myUploadCommand, myLoadCommand, mySaveCommand, arguments;
|
||
|
QString filepath;
|
||
|
QFile *file;
|
||
|
QTextEdit *Console;
|
||
|
linboLogConsole* logConsole;
|
||
|
|
||
|
|
||
|
public slots:
|
||
|
void readFromStdout();
|
||
|
void readFromStderr();
|
||
|
void processFinished( int retval,
|
||
|
QProcess::ExitStatus status);
|
||
|
|
||
|
virtual void precmd();
|
||
|
virtual void postcmd();
|
||
|
|
||
|
|
||
|
|
||
|
public:
|
||
|
linboInfoBrowserImpl( QWidget* parent );
|
||
|
|
||
|
~linboInfoBrowserImpl();
|
||
|
|
||
|
void setTextBrowser( const QString& new_consolefontcolorstdout,
|
||
|
const QString& new_consolefontcolorstderr,
|
||
|
QTextEdit* newBrowser );
|
||
|
|
||
|
void setMainApp( QWidget* newMainApp );
|
||
|
|
||
|
void setCommand(const QStringList& );
|
||
|
void setLoadCommand(const QStringList& );
|
||
|
void setSaveCommand(const QStringList& );
|
||
|
void setUploadCommand(const QStringList& );
|
||
|
|
||
|
QStringList getCommand();
|
||
|
|
||
|
void setFilePath( const QString& newFilepath );
|
||
|
|
||
|
|
||
|
};
|
||
|
#endif
|