/***************************************************************************
                          CommandOutputDialog.h  -  description
                             -------------------
    begin                : Fri Jun 1 2001
    copyright            : (C) 2001 by Alex Podolsky
    email                : alexpod@users.sourceforge.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef COMMANDOUTPUTDIALOG_H
#define COMMANDOUTPUTDIALOG_H

#include <qvariant.h>
#include <qdialog.h>

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QFrame;
class QListViewItem;
class QPushButton;
class QPopupMenu;

class KListView;



class CommandOutputDialog : public QDialog{
    Q_OBJECT

public:
    	CommandOutputDialog( QWidget* parent = 0, const char* name = 0, bool modal = true );
    	~CommandOutputDialog();


public slots:
	void append(QString);

protected slots:
	void dumpSlot();
	void quitSlot();
	void popupMenuSlot(QListViewItem *, const QPoint &, int);

private:
	QPopupMenu *menu;

	QVBoxLayout* layout;
	KListView* outputView;
	QFrame* line;
	QPushButton* closeBtn;

};

#endif // COMMANDOUTPUTDIALOG_H
