// Allgemeine Konstanten

constant kVersion:=    "V.0.0";
constant kSortFont:=   ROM_fontsystem10Bold;
constant kNormalFont:= ROM_fontsystem10;
constant kSoupName:=   "Fahrtenbuch";
constant kReasonSym:=  '|reason:| & kAppSymbol;

// Fr die Sortierung

DefConst ('kIndexOnDist, { indexPath: 'distance    });
DefConst ('kIndexOnDest, { indexPath: 'destination });
         
         
// Struktur eines Eintrag. Nicht unbedingt ntig, aus 
// dokumentarischen Grnden aber empfehlenswert...

DefConst ('kBlankLog,
           {
             entryDate:   NIL,   // Datum des Eintrags
             distance:    0,     // Entfernung in km
             destination: NIL,   // Ziel der Fahrt
             reason:      NIL,   // Grund der Fahrt
           });
          
// Definition der Soup
          
DefConst ('kSoupDef, 
           {
             name:     kSoupName,
             ownerApp: kAppSymbol,
             indexes:  [
                         { 
                           structure: 'slot, 
                           path:      'distance,    
                           type:      'int,
                         },
                         { 
                           structure: 'slot,
                           path:      'destination, 
                           type:      'string, 
                         },
                       ],            
           });
          