summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/output.h
blob: 37ba57df8b7a72513298dfe3dff89847ff2854c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/****************************************************************************
** Form interface generated from reading ui file 'outputEdit.ui'
**
** Created: Fri Apr 12 15:12:44 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef OUTPUT_H
#define OUTPUT_H

#include <qvariant.h>
#include <qdialog.h>
#include <qcstring.h>
#include <qstringlist.h>
#include <qlineedit.h>
#include <qwhatsthis.h>

#include <opie2/oprocess.h>

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QMultiLineEdit;

class Output : public QDialog
{
    Q_OBJECT

public:
    Output(const QStringList commands=0, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
    ~Output();

    QMultiLineEdit* OutputEdit;

protected:
    QGridLayout* OutputLayout;
    Opie::Core::OProcess *proc;
protected slots:
    void saveOutput();
    void commandStdout(Opie::Core::OProcess*, char *, int);
    void commandStdin(const QByteArray &);
    void commandStderr(Opie::Core::OProcess*, char *, int);
    void processFinished();
  private:
    QString cmmd;

};

class InputDialog : public QDialog
{
    Q_OBJECT

public:
    InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
    ~InputDialog();
    QString inputText;
    QLineEdit* LineEdit1;
  void setInputText(const QString &);
private slots:
    void returned();

};

#endif // OUTPUT_H