| 
					
				 | 
			
			
				@@ -123,76 +123,6 @@ private: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     static QMap<Setup, QString> setupMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     static QMap<NewFlight, QString> newFlightMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define FOR_CURRENT_VERSION 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#if (FOR_CURRENT_VERSION) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /* By default unless specified each enum is + 1. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       If we are interested in doing multiple returns at once then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       we should make them so that the can be OR-ed. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        That means that in binary this means that 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        every new enum has only 1 bit on 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        that bit is always moving to the left 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    enum Setup2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SetupComplete       = 0x00'00'00'01,  // If this makes no sense look up hexadecimals 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    };                                        // the ' is legal in numbers it is ignored 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                              // used only for reader convinience 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    enum Main2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Theme               = 0x00'00'00'02, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ThemeID             = 0x00'00'00'04, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    enum LogBook2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        View                = 0x00'00'00'08, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    enum UserData2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        LastName            = 0x00'00'00'10, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FirstName           = 0x00'00'00'20, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Company             = 0x00'00'00'40, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        EmployeeID          = 0x00'00'00'80, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Phone               = 0x00'00'01'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Email               = 0x00'00'02'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        DisplaySelfAs       = 0x00'00'04'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Alias               = 0x00'00'08'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        AcSortColumn        = 0x00'00'10'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        PilSortColumn       = 0x00'00'20'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        AcAllowIncomplete   = 0x00'00'40'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    enum FlightLogging2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Function            = 0x00'00'80'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Approach            = 0x00'01'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        NightLogging        = 0x00'02'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        LogIFR              = 0x00'04'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FlightNumberPrefix  = 0x00'08'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        NumberTakeoffs      = 0x00'10'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        NumberLandings      = 0x00'20'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        PopupCalendar       = 0x00'40'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        PilotFlying         = 0x00'80'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        NightAngle          = 0x01'00'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Rules               = 0x02'00'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    enum NewFlight2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FunctionComboBox    = 0x04'00'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CalendarCheckBox    = 0x08'00'00'00, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    using Key = int; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    using Keys = int; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * Used like QMessageBox buttons; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * auto str = stringOfKey2(ASettings::Setup); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * auto strlist = stringOfKeys2(ASettings::Setup | ASettings::Function) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    QString stringOfKey2(Key k); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    QStringList stringOfKeys2(Keys ks); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#undef FOR_CURRENT_VERSION 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif // ASETTINGS_H 
			 |