RSS Git Download  Clone
Raw Blame History
/*
* Title:	tmsControlMainWin.h
* Author:	M.Thomas BEAM Ltd
* Date:		2007-02-13
*
* Contents:	
*
* Mod Rec:
*
*/

#ifndef	TMSCONTROLMAINWIN_H
#define TMSCONTROLMAINWIN_H	1


#include <AppGui.h>
#include <qtabwidget.h>
#include <BError.h>
#include <BString.h>
#include <Control.h>
#include <ConfigureWin.h>
#include <StatusWin.h>
#include <ControlDataWin.h>
#include <TestWin.h>
#include <StatisticsWin.h>
#include <OptionsWin.h>
#include <PupeDiagnosticsWin.h>
#include <PupeSimulateWin.h>

class TmsControlMainWin: public AppGui {
	Q_OBJECT
public:
	TmsControlMainWin(Control& control);
	~TmsControlMainWin();

	void	configurationChanged();					///< Call when something has updated configuration.
	void	warningDialog(BString title,BError err,BString msg = "");	///< Warning dialog
public slots:
	void	slotQuit();				///< Exit the application
	void	slotNewConnection();				///< Create a new Job

private slots:
	void	slotEnterWhatsThis();			///< Enter Whats This mode
	void    slotPrefferences();			///< User wishes to configure setup	
	void	slotAbout();				///< Display the About dialog
	void	slotManual();				///< Display the online manual
private:
	void	initMenubar();				///< Initialize menu bar
	void	initMain();				///< Initialize main widget
	void	initToolbar();				///< Initialize main widget

	
	ConfigureWin*		oconfigureWin;
	StatusWin*		ostatusWin;
	TestWin*		otestWin;
	ControlDataWin*		ocontrolDataWin;
	StatisticsWin*		ostatisticsWin;
	OptionsWin*		ooptionsWin;
	PupeDiagnosticsWin*	opupeDiagnosticsWin;
	PupeSimulateWin*	opupeSimulateWin;
		
	QTabWidget*		otabd;			///< Tab widget controlling other widget panes
	Control&		ocontrol;
};
#endif