Changeset 19
- Timestamp:
- Nov 15, 2012, 6:08:11 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 lib 6 6 Dochazka 7 ChronIS
-
- Property svn:ignore
-
trunk/Application/URegistredModules.pas
r12 r19 15 15 16 16 uses 17 U Core, UModuleAttendance;17 UModuleAttendance; 18 18 19 19 procedure RegisterModules(ModuleManager: TModuleManager); 20 20 begin 21 21 UnregisterModules(ModuleManager); 22 with Core.ModuleManager do22 with ModuleManager do 23 23 try 24 Module Manager.Modules.BeginUpdate;24 Modules.BeginUpdate; 25 25 RegisterModule(TModuleAttendance.Create(nil)); 26 26 finally 27 Module Manager.Modules.EndUpdate;27 Modules.EndUpdate; 28 28 end; 29 29 end; … … 32 32 var 33 33 I: Integer; 34 Module: TModule; 34 35 begin 36 with ModuleManager do 35 37 try 36 ModuleManager.Modules.BeginUpdate; 37 ModuleManager.Modules.Clear; 38 Modules.BeginUpdate; 39 for I := Modules.Count - 1 downto 0 do begin 40 Module := TModule(Modules[I]); 41 UnregisterModule(Module); 42 Module.Free; 43 end; 38 44 finally 39 Module Manager.Modules.EndUpdate;45 Modules.EndUpdate; 40 46 end; 41 47 end; -
trunk/Dochazka.lpi
r16 r19 24 24 <Version Value="11"/> 25 25 <Target> 26 <Filename Value=" Dochazka"/>26 <Filename Value="ChronIS"/> 27 27 </Target> 28 28 <SearchPaths> 29 29 <IncludeFiles Value="$(ProjOutDir)"/> 30 <OtherUnitFiles Value="Forms;Common;Application;Modules/Attendance"/> 30 31 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 31 32 </SearchPaths> … … 201 202 <Version Value="11"/> 202 203 <Target> 203 <Filename Value=" Dochazka"/>204 <Filename Value="ChronIS"/> 204 205 </Target> 205 206 <SearchPaths> -
trunk/Modules/Attendance/UModuleAttendance.pas
r18 r19 343 343 344 344 procedure TModuleAttendance.DoStop; 345 var 346 I: Integer; 347 begin 345 begin 346 FreeAndNil(ModelUser); 348 347 FormMain.UnregisterDataViewList(ViewListUser); 348 FreeAndNil(ViewListUser); 349 349 FormMain.UnregisterDataViewForm(ViewFormUser); 350 FreeAndNil(ViewFormUser); 350 351 FormMain.UnregisterDataViewList(ViewListAttendance); 352 FreeAndNil(ViewListAttendance); 351 353 FormMain.UnregisterDataViewForm(ViewFormAttendance); 354 FreeAndNil(ViewFormAttendance); 352 355 FormMain.UnregisterDataViewList(ViewListHoliday); 356 FreeAndNil(ViewListHoliday); 353 357 FormMain.UnregisterDataViewForm(ViewFormHoliday); 358 FreeAndNil(ViewFormHoliday); 354 359 FormMain.UnregisterDataViewList(ViewListLog); 360 FreeAndNil(ViewListLog); 355 361 FormMain.UnregisterDataViewForm(ViewFormLog); 362 FreeAndNil(ViewFormLog); 356 363 FormMain.UnregisterDataViewList(ViewListOperation); 364 FreeAndNil(ViewListOperation); 357 365 FormMain.UnregisterDataViewForm(ViewFormOperation); 366 FreeAndNil(ViewFormOperation); 358 367 FormMain.UnregisterDataViewList(ViewListPassage); 368 FreeAndNil(ViewListPassage); 359 369 FormMain.UnregisterDataViewForm(ViewFormPassage); 370 FreeAndNil(ViewFormPassage); 360 371 FormMain.UnregisterDataViewList(ViewListTerminal); 372 FreeAndNil(ViewListTerminal); 361 373 FormMain.UnregisterDataViewForm(ViewFormTerminal); 374 FreeAndNil(ViewFormTerminal); 362 375 FreeAndNil(DataModuleAttendance); 363 376 inherited DoStop; -
trunk/Packages/ModularSystem/Language/UFormModuleList.cs.po
r14 r19 12 12 13 13 #: uformmodulelist.sadditionalmodulesinstall 14 msgid "" 15 "In addition to \"%0:s\" module also dependent modules will be installed: " 16 "\"%1:s\"" 14 msgid "In addition to \"%0:s\" module also dependent modules will be installed: \"%1:s\"" 17 15 msgstr "K modulu \"%s0:s\" budou instalovány také závislé moduly: \"%1:s\"" 18 16 19 17 #: uformmodulelist.sadditionalmodulesstart 20 msgid "" 21 "In addition to \"%0:s\" module also dependent modules will be started: \"%1:s" 22 "\"" 18 msgid "In addition to \"%0:s\" module also dependent modules will be started: \"%1:s\"" 23 19 msgstr "K modulu \"%s0:s\" budou spuÅ¡tÄny také závislé moduly: \"%1:s\"" 24 20 25 21 #: uformmodulelist.sadditionalmodulesstop 26 msgid "" 27 "In addition to \"%0:s\" module also dependent modules will be stopped: \"%1:s" 28 "\"" 22 msgid "In addition to \"%0:s\" module also dependent modules will be stopped: \"%1:s\"" 29 23 msgstr "K modulu \"%s0:s\" budou zastaveny také závislé moduly: \"%1:s\"" 30 24 31 25 #: uformmodulelist.sadditionalmodulesuninstall 32 msgid "" 33 "In addition to \"%0:s\" module alse dependent modules will be uninstalled: " 34 "\"%1:s\"" 26 msgid "In addition to \"%0:s\" module alse dependent modules will be uninstalled: \"%1:s\"" 35 27 msgstr "K modulu \"%s0:s\" budou odinstalovány také závislé moduly: \"%1:s\"" 36 28 … … 114 106 msgid "Yes" 115 107 msgstr "Yes" 108 -
trunk/Packages/ModularSystem/Language/UModularSystem.cs.po
r12 r19 13 13 msgid "Module \"%1:s\" not found as dependency for module \"%0:s\"" 14 14 msgstr "Pro modul \"%0:s\" nenalezen závislÜ modul \"%1:s\"" 15 -
trunk/UCore.pas
r14 r19 105 105 if Assigned(FormModuleList) then FreeAndNil(FormModuleList); 106 106 ModuleManager.OnUpdate := nil; 107 ModuleManager.Modules.Clear;107 UnregisterModules(ModuleManager); 108 108 end; 109 109
Note:
See TracChangeset
for help on using the changeset viewer.