LoginScreen = new LoginWindow(this);
welcomewindow = new Welcomewindow(this);
AutoControlScreen = new AutoControl(this);
AdjScreen = new Adjustment(this);
HeatScreen = new Heat(this);
InfoScreen = new Information(this);
IntensityScreen = new Intensity(this);
ManualScreen = new Manualcontrol(this);
SettingsScreen = new Settings(this);
UsersScreen = new UsersMemory(this);
#ifdef DEBUG
if(welcomewindow == NULL)
qDebug() << "Dummy Welcome window Object is Null \n";
if(LoginScreen == NULL)
qDebug() << "Login screen object is Null \n";
if(AutoControlScreen == NULL)
qDebug() << "AutoControl screen object is Null \n";
if(AdjScreen == NULL)
qDebug() << "Adj screen object is Null \n";
if(HeatScreen == NULL)
qDebug() << "HeatScreen object is Null \n";
if(InfoScreen == NULL)
qDebug() << "InfoScreen object is Null \n";
if(IntensityScreen == NULL)
qDebug() << "IntensityScreen object is Null \n";
if(ManualScreen == NULL)
qDebug() << "ManualScreen object is Null \n";
if(SettingsScreen == NULL)
qDebug() << "SettingsScreen object is Null \n";
if(UsersScreen == NULL)
qDebug() << "UsersScreen object is Null \n";
#endif
if(welcomewindow == NULL || LoginScreen == NULL || AutoControlScreen == NULL || AdjScreen == NULL || \
HeatScreen == NULL || InfoScreen == NULL || IntensityScreen == NULL || ManualScreen == NULL || \
SettingsScreen == NULL || UsersScreen == NULL)
{
qDebug() << "Windows creation Failed, Exiting the Application\n";
exit(1);
}
//*******************************************************************
// Setting All Mainscreen as stackable objects to MainMenu Screens
//*******************************************************************
ui->stackedWidget->insertWidget(S_Welcome,welcomewindow);
ui->stackedWidget->insertWidget(S_Auto,AutoControlScreen);
ui->stackedWidget->insertWidget(S_Manual,ManualScreen);
ui->stackedWidget->insertWidget(S_Settings,SettingsScreen);
ui->stackedWidget->insertWidget(S_Info,InfoScreen);
ui->stackedWidget->insertWidget(S_Heat,HeatScreen);
ui->stackedWidget->insertWidget(S_Adj,AdjScreen);
ui->stackedWidget->insertWidget(S_Intensity,IntensityScreen);
ui->stackedWidget->insertWidget(S_Users,UsersScreen);
qDebug() << "Total Stacked widgets: " << ui->stackedWidget->count();
Bookmarks