- activePanels[Main_Panel] = false;
- activePanels[Utility_Panel]= false;
- activePanels[Keypad_Panel]= false;
- activePanels[Menu_Panel]= false;
- activePanels[Media_Panel]= false;
- activePanels[Media2_Panel]= false;
- activePanels[Record_Panel]= false;
- activePanels[TV_Panel]= false;
- activePanels[Input_Panel]= false;
- activePanels[Adjust_Panel]= false;
- activePanels[AC_Panel]= false;
- activePanels[Favorites_Panel]= false;
+ mainForm = new PIRMainForm(mainWindow);
+ panels[Main_Panel] = mainForm;
+
+ altMainForm = new PIRAltMainForm(mainWindow);
+ panels[Alt_Main_Panel] = altMainForm;
+
+ utilityForm = new PIRUtilityForm(mainWindow);
+ panels[Utility_Panel] = utilityForm;
+
+ keypadForm = new PIRKeypadForm(mainWindow);
+ panels[Keypad_Panel] = keypadForm;
+
+ menuForm = new PIRMenuForm(mainWindow);
+ panels[Menu_Panel] = menuForm;
+
+ mediaForm = new PIRMediaForm(mainWindow);
+ panels[Media_Panel] = mediaForm;
+
+ media2Form = new PIRMedia2Form(mainWindow);
+ panels[Media2_Panel] = media2Form;
+
+ recordForm = new PIRRecordForm(mainWindow);
+ panels[Record_Panel] = recordForm;
+
+ tvForm = new PIRTVForm(mainWindow);
+ panels[TV_Panel] = tvForm;
+
+ inputForm = new PIRInputForm(mainWindow);
+ panels[Input_Panel] = inputForm;
+
+ adjustForm = new PIRAdjustForm(mainWindow);
+ panels[Adjust_Panel] = adjustForm;
+
+ acForm = new PIRAirConditionerForm(mainWindow);
+ panels[AC_Panel] = acForm;
+
+ favoritesForm = new PIRFavoritesForm(mainWindow);
+ panels[Favorites_Panel] = favoritesForm;
+
+ // Set up the panel collections:
+ PIRPanelNameList pset;
+
+ // The universal collection:
+ pset.push_back(Main_Panel);
+ pset.push_back(Utility_Panel);
+ pset.push_back(Keypad_Panel);
+ pset.push_back(Menu_Panel);
+ pset.push_back(Media_Panel);
+ pset.push_back(Favorites_Panel);
+ tabLists[Universal_Tabs] = pset;
+
+ // The TV collection:
+ pset.clear();
+ pset.push_back(Main_Panel);
+ pset.push_back(Keypad_Panel);
+ pset.push_back(Menu_Panel);
+ pset.push_back(TV_Panel);
+ pset.push_back(Adjust_Panel);
+ pset.push_back(Favorites_Panel);
+ tabLists[TV_Tabs] = pset;
+
+ // The video media collection:
+ pset.clear();
+ pset.push_back(Main_Panel);
+ pset.push_back(Menu_Panel);
+ pset.push_back(Media_Panel);
+ pset.push_back(Media2_Panel);
+ pset.push_back(Input_Panel);
+ pset.push_back(Favorites_Panel);
+ tabLists[VideoMedia_Tabs] = pset;
+
+ // The air conditioner collection:
+ pset.clear();
+ pset.push_back(AC_Panel);
+ pset.push_back(Favorites_Panel);
+ tabLists[AC_Tabs] = pset;
+
+ // The recording collection:
+ pset.clear();
+ pset.push_back(Record_Panel);
+ pset.push_back(Keypad_Panel);
+ pset.push_back(Favorites_Panel);
+ tabLists[Record_Tabs] = pset;