This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
modern-linbo-gui/headers/legacy/linboInfoBrowserImpl.hh
Dorian Zedler d2a165a1ec
- Sorted some stuff
- Began to implement new GUI
2020-11-16 00:31:28 +01:00

70 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