//
// Maker.h
//
// written by Michael Riedel <Michael.Riedel@gmx.de>
//
// KBuilder Maker Window Header

#ifndef	_Maker_H
#define	_Maker_H

#include <ktopwidget.h>
#include <kmenubar.h>
#include <kprocess.h>
#include <String.h>



class Maker : public KTopLevelWidget
{
    Q_OBJECT
public:
    Maker(QWidget *parent = 0, const char *name = 0);
    virtual ~Maker();

	bool saveMessagesTo(const QString& filename);
	void startMake();
	bool killMake(bool request = true);


protected:
	KProcess* 	Process;
   	QListBox* 	listbox;
	KMenuBar* 	mainMenu;
	QPopupMenu* file;
	QFont 	   Font;
	int		 idMake, idKill;
	static QList<Maker> Makers;

	void resizeEvent(QResizeEvent* ev);
	void insertLBItem(const char* item);


public slots:
		// slots for window handling:
	void saveAsFileSlot();
	void closeWindowSlot();
	void selectFontSlot();
	void itemSelectedSlot(const char* item);

		// slots concerning the make process:
	void runMakeSlot();
	void killMakeSlot();
	void receiveStdOutSlot(KProcess* p, char* str, int num);
	void receiveStdErrSlot(KProcess* p, char* str, int num);
	void processExitedSlot(KProcess* p);
};

#endif // _Maker_H

Documentation generated by root@QBERT1 on Fri Jul 17 18:57:31 MEST 1998