Example #1
0
RDialog*	LWRouteTop::Make()
{
	CString	tabtitle[6];
		tabtitle[0] = RESSTRING(TAKEOFF); 
		tabtitle[1] = RESSTRING(MAINROUTE); 
		tabtitle[2] = RESSTRING(STRIKE);
		tabtitle[3] = RESSTRING(AIRCOVER);
		tabtitle[4] = RESSTRING(LANDING);
		return
			MakeTopDialog(::Place(POSN_CENTRE,POSN_MIN),
					DialList(DialBox(FIL_NULL,new LWRouteTop(),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
						HTabBox(FIL_NULL,IdList(tabtitle[0],tabtitle[1],tabtitle[2],tabtitle[3],tabtitle[4]),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
//DEADCODE  23/02/00 							DialBox(FIL_D_ROUTE,new LWRouteAirfield()),
//DEADCODE  23/02/00 							DialBox(FIL_D_ROUTE,new LWRouteMain()),
//DEADCODE  23/02/00 							DialBox(FIL_D_ROUTE,new LWRouteAirfield()),
//DEADCODE  23/02/00 							DialBox(FIL_D_ROUTE,new LWRouteAirfield()),
//DEADCODE  23/02/00 							DialBox(FIL_D_ROUTE,new LWRouteAirfield())
							DialBox(FIL_D_ROUTE,new LWRouteMain(0)),
							DialBox(FIL_D_ROUTE,new LWRouteMain(1)),
							DialBox(FIL_D_ROUTE,new LWRouteMain(2)),
							DialBox(FIL_D_ROUTE,new LWRouteMain(3)),
							DialBox(FIL_D_ROUTE,new LWRouteMain(4))

										)	)	);

//DEADCODE RDH 18/11/99 	return
//DEADCODE RDH 18/11/99 		MakeTopDialog(::Place(POSN_CENTRE,POSN_CENTRE),
//DEADCODE RDH 18/11/99 			DialBox(FIL_D_INTERCEPTOFFERED,new LWRouteTop())
//DEADCODE RDH 18/11/99 			);
}
Example #2
0
RDialog* CLoadProf::MakeSheet(int uid)
{
	typedef	HideEdgeControl	EDGE; 
	CString	wildcard="*.prf";
	selectedfile= Save_Data.lastpackname;
	RDialog* rv=
		MakeTopDialog(::Place(POSN_CENTRE,POSN_CENTRE),
								DialList(DialBox(FIL_NULL/*IDB_BBC3*/,new CLoadProf(uid),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)), //rdh
									HTabBox(FIL_NULL,IdList(IDS_STANDARD,IDS_USERSTRIKE,IDS_USERCAP),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
			  						DialBox(FIL_MAP_PLAYER_LOG/*IDB_BBC3*/,new CLoad(IDD_LOAD,LSD_LOAD_DESELECT	,FIL_STANDARD_PROFILES_DIR_LONG,	wildcard,CLoadProf::selectedfile,StdProf((UniqueID)uid))),
			  						DialBox(FIL_MAP_PLAYER_LOG/*IDB_BBC3*/,new CLoad(IDD_LOAD,LSD_LOAD_DESELECT	,FIL_USER_PROFILES_DIR,		wildcard,CLoadProf::selectedfile,UserProfAttack((UniqueID)uid))),
			  						DialBox(FIL_MAP_PLAYER_LOG/*IDB_BBC3*/,new CLoad(IDD_LOAD,LSD_LOAD_DESELECT ,FIL_USER_PROFILES_DIR,		wildcard,CLoadProf::selectedfile,UserProfPatrol((UniqueID)uid)))
									)	)	);
	CRTabs* tab=(CRTabs*)rv->fchild->GetDlgItem(IDJ_TABCTRL);
	RDialog* tabs=rv->fchild->fchild;	 //OnSelecttab
	int tabnum=2;
	if (((RowanDialog*)rv)->acnum==0)
		tabnum=0;
	else
	for (;tabnum>0;tabnum--,tabs=tabs->sibling)						  //JIM 15/04/99
		if (tabs==(RDialog*)(((RowanDialog*)rv)->acnum))
			break;
	tab->SelectTab(tabnum);
	return rv;
}
Example #3
0
void CMiscToolbar::OnClickedFiles() 
{
	if (RDialog::m_pView->m_currentpage != 0)							//RJS 29Oct00
 		return;															//RJS 29Oct00

	typedef	HideEdgeControl	EDGE; 
	CString	wildcard="*.bs";
	CFiling::selectedfile=Save_Data.lastsavegame;
	if (Todays_Packages.localplayer==NAT_RAF)
		wildcard+="R";
	else
		wildcard+="L";
//	CFiling::selectedfile="test.sav";
	if (!LoggedChild(FILES))
	{
		LogChild(FILES,
			RDialog::MakeTopDialog(Place(POSN_CENTRE,POSN_CENTRE),
								DialList(DialBox(FIL_NULL/*IDB_BBC3*/,new CFiling,Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)), //rdh
									HTabBox(FIL_NULL,IdList(IDS_SAVE,IDS_LOAD),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
									DialBox(FIL_D_BLANK/*IDB_BBC3*/,new CLoad(IDDX_SAVE,LSD_SAVE,			FIL_SAVEGAMEDIR,wildcard,CFiling::selectedfile)),
			  						DialBox(FIL_D_BLANK/*IDB_BBC3*/,new CLoad(IDDX_LOAD,LSD_LOAD_DESELECT,FIL_SAVEGAMEDIR,wildcard,CFiling::selectedfile))
				)					)	)	);
	}
	else
		CloseLoggedChild(FILES);
	
}
Example #4
0
CArmyRequests* CArmyRequests::MakeSheet(CRect r,UniqueID item,UniqueID  force)
{
	CArmyRequests*	armysheet;
	MakeTopDialog(r,
			DialList(DialBox(FIL_MAP_ARMY/*IDB_BBC3*/,armysheet = new CArmyRequests,Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
			
					HTabBox(FIL_NULL,IdList(IDS_UNFORCES,IDS_REDFORCES),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
		  							DialBox(FIL_NULL/*IDB_BBC3*/,new CBattleDetail(item,force,0)),
		  							DialBox(FIL_NULL/*IDB_BBC3*/,new CBattleDetail(item,force,1))
							)
			  		)
			     );
return armysheet;
}
Example #5
0
void CMiscToolbar::OpenSaveOnly(bool quitafter) 
{
	typedef	HideEdgeControl	EDGE;
	CString	wildcard="*.sav";
	CFiling::selectedfile=Save_Data.lastsavegame;
	if (!LoggedChild(FILES))
		LogChild(FILES,
			RDialog::MakeTopDialog(Place(POSN_CENTRE,POSN_CENTRE),
								DialList(DialBox(FIL_NULL/*IDB_BBC3*/,new CFiling(true),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)), //rdh
									HTabBox(FIL_NULL,IdList(IDS_QUITSAVE),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
									DialBox(FIL_MAP_PLAYER_LOG/*IDB_BBC3*/,new CLoad(IDD_SAVE,LSD_SAVE,			FIL_SAVEGAMEDIR,wildcard,CFiling::selectedfile))
				)					)	)	);
	else
		;//bring to front...
}
Example #6
0
RDialog*	BasesLuftflotte::Make()
{
//DeadCode JIM 20Oct00 	int numopts = 1;
//DeadCode JIM 20Oct00 	DialBox* ND = NULL;
	CString	tabtitle[4];

//DEADCODE RDH 06/04/00 	if (RFullPanelDial::gameside == RFullPanelDial::SIDE_LW)
//DEADCODE RDH 06/04/00 	{
//DEADCODE RDH 06/04/00 		tabtitle[0] = RESSTRING(L_JAGD); 
//DEADCODE RDH 06/04/00 		tabtitle[1] = RESSTRING(ZEROSTORER); 
//DEADCODE RDH 06/04/00 		tabtitle[2] = RESSTRING(KAMPF);
//DEADCODE RDH 06/04/00 		tabtitle[3] = RESSTRING(STUKA);
//DEADCODE RDH 06/04/00 		return
//DEADCODE RDH 06/04/00 		MakeTopDialog(::Place(POSN_MIN,POSN_MIN),
//DEADCODE RDH 06/04/00 				DialList(DialBox(FIL_NULL,new BasesLuftflotte,Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
//DEADCODE RDH 06/04/00 					HTabBox(FIL_NULL,IdList(tabtitle[0],tabtitle[1],tabtitle[2],tabtitle[3]),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
//DEADCODE RDH 06/04/00 						DialBox(FIL_D_GESCH,new GroupGeschwader(0)),
//DEADCODE RDH 06/04/00 						DialBox(FIL_D_GESCH,new GroupGeschwader(1)),
//DEADCODE RDH 06/04/00 						DialBox(FIL_D_GESCH,new GroupGeschwader(2)),
//DEADCODE RDH 06/04/00 						DialBox(FIL_D_GESCH,new GroupGeschwader(3))
//DEADCODE RDH 06/04/00 
//DEADCODE RDH 06/04/00 									)	)	);
//DEADCODE RDH 06/04/00 
//DEADCODE RDH 06/04/00 	}else
	{
		tabtitle[0] = RESSTRING(GROUP10); 
		tabtitle[1] = RESSTRING(GROUP11); 
		tabtitle[2] = RESSTRING(GROUP12);
		tabtitle[3] = RESSTRING(GROUP13);
		return
		MakeTopDialog(::Place(POSN_MIN,POSN_MIN),
				DialList(DialBox(FIL_NULL,new BasesLuftflotte,Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
					HTabBox(FIL_NULL,IdList(tabtitle[0],tabtitle[1],tabtitle[2],tabtitle[3]),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
						DialBox(FIL_D_GROUPS,new GroupGeschwader(IDS_GROUP_10)),
						DialBox(FIL_D_GROUPS,new GroupGeschwader(IDS_GROUP_11)),
						DialBox(FIL_D_GROUPS,new GroupGeschwader(IDS_GROUP_12)),
						DialBox(FIL_D_GROUPS,new GroupGeschwader(IDS_GROUP_13))

									)	)	);
	}
	


}
Example #7
0
void CMiscToolbar::OnClickedFiles() 
{
	typedef	HideEdgeControl	EDGE; 
	CString	wildcard="*.sav";
	CFiling::selectedfile=Save_Data.lastsavegame;
//	CFiling::selectedfile="test.sav";
	if (!LoggedChild(FILES))
	{
		LogChild(FILES,
			RDialog::MakeTopDialog(Place(POSN_CENTRE,POSN_CENTRE),
								DialList(DialBox(FIL_NULL/*IDB_BBC3*/,new CFiling,Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)), //rdh
									HTabBox(FIL_NULL,IdList(IDS_SAVE,IDS_LOAD),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
									DialBox(FIL_MAP_PLAYER_LOG/*IDB_BBC3*/,new CLoad(IDD_SAVE,LSD_SAVE,			FIL_SAVEGAMEDIR,wildcard,CFiling::selectedfile)),
			  						DialBox(FIL_MAP_PLAYER_LOG/*IDB_BBC3*/,new CLoad(IDD_LOAD,LSD_LOAD_DESELECT,FIL_SAVEGAMEDIR,wildcard,CFiling::selectedfile))
				)					)	)	);
	}
	else
		CloseLoggedChild(FILES);
	
}
Example #8
0
RDialog*	RAFReviewTop::Make()
{
    CString	tabtitle[6];

    tabtitle[0] = RESSTRING(STRENGTH);
    tabtitle[1] = RESSTRING(AIRCRAFT);
    tabtitle[2] = RESSTRING(ASSETS);
    tabtitle[3] = RESSTRING(CLAIMS);
    tabtitle[4] = RESSTRING(ENEMY);
    return
        MakeTopDialog(::Place(POSN_CENTRE,POSN_CENTRE),
                      DialList(DialBox(FIL_NULL,new RAFReviewTop,Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
                               HTabBox(FIL_NULL,IdList(tabtitle[0],tabtitle[1],tabtitle[2],tabtitle[3],tabtitle[4]),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX),
                                       DialBox(FIL_D_REVIEWRAFFORCE,new RAFReviewStrength()),
                                       DialBox(FIL_D_REVIEWRAFFORCE,new RAFReviewAircraft()),
                                       DialBox(FIL_D_REVIEWTARGETDAMAGE,new RAFReviewAsset()),
                                       DialBox(FIL_D_REVIEWLWFORCE,new RAFReviewClaims()),
                                       DialBox(FIL_D_REVIEWLWFORCE,new LWReviewAircraft())
                                      )	)	);

}
Example #9
0
void CDirects2::OnClickedDirectivebutton() 
{
	if (CComit_e::This->dir_ctrl.directives[linenum].type != SupplyTree::D_RESTING)
	{
		if (LoggedChild(0))
		{
 			CRTabs* tab=(CRTabs*)LoggedChild(0)->fchild->fchild->GetDlgItem(IDJ_TABCTRL);
			tab->SelectTab(CComit_e::This->dir_ctrl.directives[linenum].type);
			//delete tab;
		
		}else
		{
			typedef	HideEdgeControl	EDGE; 
			RDialog* d=MakeTopDialog(CRect(500,450,0,0),
				DialList(DialBox(FIL_NULL,new CCamplist,Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
									HTabBox(FIL_NULL,IdList(IDS_AIRSUP,IDS_CHOKE_L, IDS_SUPPLY,IDS_AIRFIELDS,IDS_RAIL, IDS_ROAD,IDS_ARMY),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
		  								DialBox(FIL_MAP_MIGCAP,new CSelectionResults(SupplyTree::D_AIRSUPERIORITY)),
		  								DialBox(FIL_MAP_CHOKEPOINTS,new CSelectionResults(SupplyTree::D_CHOKE)), 
										DialBox(FIL_MAP_SUPPLY,new CSelectionResults(SupplyTree::D_SUPPLY)),
										DialBox(FIL_MAP_AIRFIELD,new CSelectionResults(SupplyTree::D_AIRFIELDS)),
		  								DialBox(FIL_MAP_TRAFFIC,new CSelectionResults( SupplyTree::D_RAIL)),
										DialBox(FIL_MAP_TRAFFIC,new CSelectionResults(SupplyTree::D_ROAD)),
		  								DialBox(FIL_MAP_ARMY,new CSelectionResults(SupplyTree::D_ARMY))
		  								
		  								
									)														  							

					  			)
							 );	
			LogChild(0,d);
			CRTabs* tab=(CRTabs*)d->fchild->GetDlgItem(IDJ_TABCTRL);
			tab->SelectTab(CComit_e::This->dir_ctrl.directives[linenum].type);
			//delete tab;
		}
	}	
}
Example #10
0
RDialog*	Dossier::Make(UniqueID item)
{

//Remember, if you are RAF and select an airfield we want the airfield dossier...
	FileNum filenum;
	int uidband;

	uidband=Persons2::getbandfromUID(item);

	switch (uidband)
	{
		case	NavalBaseBAND:
		case	DocksBAND:
		case		PortBAND:
		{
			filenum = FIL_D_DOSSIER_DOCKS;
			break;
		}
		case		PowerStationBAND:
		case		OilRefineryBAND:
		case		IndustryBAND:
		case		AircraftFactoryBAND:
		{
			filenum = FIL_D_DOSSIER_FACTORIES;
			break;
		}
		case		CityBAND:
		{
			filenum = FIL_D_DOSSIER_LONDON;
			break;
		}
		case		TownBAND:
		case		NavigationBAND:
		case		VillageBAND:
		{
			filenum = FIL_D_BLANKNOHEADER;
			break;
		}
		case		RAF_FighterAFBAND:
		case		RAF_BomberAFBAND:
		case		RAF_CoastalAFBAND:
		case		LUF_FighterLF2BAND:
		case		LUF_FighterLF3BAND:
		case		LUF_BomberLF2BAND:
		{
			filenum = FIL_D_DOSSIER_AIRFIELD;
			break;
		}
		case		CLRadarBAND:
		case		CHRadarBAND:
		{
			filenum = FIL_D_DOSSIER_RADAR;
			break;
		}
		case		BritBoatBAND:
		case		GermBoatBAND:
		{
			filenum = FIL_D_DOSSIER_CONVOYS;
			break;
		}
		default:
		{
			filenum = FIL_D_BLANKNOHEADER;
			break;
		}


	}
	
	
	
	UniqueID SGT=item;
	info_itemS* i=Persons2::ConvertPtrUID(item);
	if (i->SGT)
		SGT=i->SGT;
	TargetNoDetail* trg = Node_Data[SGT];
	if (		(RFullPanelDial::gameside == RFullPanelDial::SIDE_LW)
			&&	(!Save_Data.gamedifficulty[GD_LWINTELL])
			&&	(trg) && trg->ReconAdvised()
		)
		return
			MakeTopDialog(::Place(POSN_MAX,POSN_MIN),
					DialList(DialBox(FIL_D_BLANKNOHEADER,new Dossier(SGT),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
							HTabBox(FIL_NULL,IdList(IDS_GENERAL, IDS_DAMAGE),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
								DialBox(filenum,new DossierDetails(SGT))
						)	)	);
	else
		return
			MakeTopDialog(::Place(POSN_MAX,POSN_MIN),
					DialList(DialBox(FIL_D_BLANKNOHEADER,new Dossier(SGT),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE,EDGE::ALIGN_MAX + EDGE::OCCLUDE_INSIDE)),
							HTabBox(FIL_NULL,IdList(IDS_GENERAL, IDS_DAMAGE),Edges(EDGE::ALIGN_MIN,EDGE::ALIGN_MIN,EDGE::ALIGN_MAX,EDGE::ALIGN_MAX), 
								DialBox(filenum,new DossierDetails(SGT)),
								DialBox(FIL_D_DAMAGE,new CDamage(SGT,item))
						)	)	);
}