[go: up one dir, main page]

File: consoleimpl.h

package info (click to toggle)
qgit 2.3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,152 kB
  • ctags: 1,477
  • sloc: cpp: 11,857; makefile: 51; sh: 39
file content (45 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (4)
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
/*
	Description: stdout viewer

	Author: Marco Costalba (C) 2006-2007

	Copyright: See COPYING file that comes with this distribution

*/
#ifndef CONSOLEIMPL_H
#define CONSOLEIMPL_H

#include <QCloseEvent>
#include <QPointer>
#include "ui_console.h"

class MyProcess;
class Git;

class ConsoleImpl : public QMainWindow, Ui_Console { // we need a statusbar
Q_OBJECT
public:
	ConsoleImpl(const QString& nm, Git* g);
	bool start(const QString& cmd,const QString& args);

signals:
	void customAction_exited(const QString& name);

public slots:
	void typeWriterFontChanged();
	void procReadyRead(const QByteArray& data);
	void procFinished();

protected slots:
	virtual void closeEvent(QCloseEvent* ce);
	void pushButtonTerminate_clicked();
	void pushButtonOk_clicked();

private:
	Git* git;
	QString actionName;
	QPointer<MyProcess> proc;
	QString inpBuf;
};

#endif