- Timestamp:
- Feb 11, 2008, 11:37:07 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 *.~dsk 6 6 Network.cfg 7 Error.txt
-
- Property svn:ignore
-
trunk/SunriseChat.dpr
r11 r12 16 16 ULocalization in 'ULocalization.pas' {Localization: TDataModule}, 17 17 UTextFileStream in 'UTextFileStream.pas', 18 U WaitingDialog in 'UWaitingDialog.pas' {WaitingDialog};18 UJobProgressView in 'UJobProgressView.pas' {JobProgressView}; 19 19 20 20 {$R *.res} … … 26 26 Application.CreateForm(TMainWindow, MainWindow); 27 27 Application.CreateForm(TLogExceptions, LogExceptions); 28 Application.CreateForm(TJobProgressView, JobProgressView); 28 29 LogExceptions.AppVersion := ClientVersion; 29 30 LogExceptions.AppReleaseDate := ClientReleaseDate; 30 Application.CreateForm(TWaitingDialog, WaitingDialog);31 31 if not MainWindow.StopProgram then begin 32 32 Application.CreateForm(TNewRoom, NewRoom); -
trunk/SunriseChatCoreUnit.pas
r9 r12 114 114 TAddMessageMethod = procedure(EventType: TAppEventType; Room: TRoom; 115 115 const Args: array of const; RoomLine: TRoomLine) of object; 116 117 TSunriseChatProtocol = class118 public119 Version: Integer;120 SourceId: TClientIdentification;121 DestinationId: TClientIdentification;122 SequenceNumber: Integer;123 Command: TSystemCommand;124 125 end;126 116 127 117 TSunriseChatCore = class(TComponent) -
trunk/UMainWindow.dfm
r11 r12 33 33 FullRepaint = False 34 34 TabOrder = 0 35 ExplicitWidth = 47036 ExplicitHeight = 33137 35 object Splitter3: TSplitter 38 36 Left = 323 … … 53 51 FullRepaint = False 54 52 TabOrder = 0 55 ExplicitTop = 30156 ExplicitWidth = 47057 53 DesignSize = ( 58 54 471 … … 68 64 TabOrder = 0 69 65 OnClick = Button1Click 70 ExplicitLeft = 41271 66 end 72 67 object ComboBox1: TComboBox … … 88 83 Items.Strings = ( 89 84 '') 90 ExplicitWidth = 40191 85 end 92 86 end … … 99 93 BevelOuter = bvNone 100 94 TabOrder = 1 101 ExplicitLeft = 324102 ExplicitHeight = 301103 95 object ToolBar1: TToolBar 104 96 Left = 0 … … 114 106 TabOrder = 0 115 107 Transparent = False 116 ExplicitTop = 143117 108 object ToolButton1: TToolButton 118 109 Left = 0 … … 192 183 FullRepaint = False 193 184 TabOrder = 2 194 ExplicitLeft = 350195 ExplicitHeight = 301196 185 DesignSize = ( 197 186 120 … … 234 223 FullRepaint = False 235 224 TabOrder = 3 236 ExplicitWidth = 322237 ExplicitHeight = 301238 225 DesignSize = ( 239 226 323 … … 272 259 TabOrder = 1 273 260 OnChange = TabControl1Change 274 ExplicitWidth = 316275 ExplicitHeight = 209276 261 object TabSheet1: TTabSheet 277 262 Caption = 'TabSheet1' … … 283 268 ImageIndex = 1 284 269 ParentFont = False 285 ExplicitWidth = 308286 ExplicitHeight = 180287 270 end 288 271 end … … 307 290 Columns = <> 308 291 TabOrder = 1 309 ExplicitWidth = 316310 ExplicitHeight = 260311 292 end 312 293 object RichView1: TRichView -
trunk/UMainWindow.pas
r11 r12 251 251 { Private declarations } 252 252 public 253 SunriseChatNetworkCore1: TSunriseChatN EtworkCore;253 SunriseChatNetworkCore1: TSunriseChatNetworkCore; 254 254 UserEventsImagesEnabled: Boolean; 255 255 FirstStart: Boolean; … … 331 331 332 332 uses UInfoWindow, UAboutWindow, UOptionsWindow, UNetworkTest, UNewRoom, 333 DateUtils, ULocalization, U WaitingDialog, MMSystem;333 DateUtils, ULocalization, UJobProgressView, MMSystem; 334 334 335 335 {$R *.dfm} … … 1406 1406 if I<Length(AppUserEvents) then AppUserEventsOptions[I].SaveToRegistry; 1407 1407 //AppUserEventsOptions[I].Free; 1408 if Assigned( WaitingDialog) then WaitingDialog.Pozice := I/Max*100;1408 if Assigned(JobProgressView) then JobProgressView.Progress := I/Max; 1409 1409 end; 1410 1410 //SetLength(AppUserEventsOptions,0); … … 1487 1487 LoadFromRegistry; 1488 1488 end; 1489 if Assigned( WaitingDialog) then WaitingDialog.Pozice := I/AppUserEventsCount*100;1489 if Assigned(JobProgressView) then JobProgressView.Progress := I / AppUserEventsCount; 1490 1490 end; 1491 1491 end; -
trunk/UNetworkTest.pas
r9 r12 82 82 ChDir(ExtractFileDir(Application.ExeName)); 83 83 AssignFile(Soubor, NetworkFileName); 84 if FileExists(NetworkFileName) then Reset(Soubor) else Rewrite(Soubor); 84 if FileExists(NetworkFileName) then Reset(Soubor) else begin 85 Rewrite(Soubor); 86 CloseFile(Soubor); 87 AssignFile(Soubor, NetworkFileName); 88 Reset(Soubor); 89 end; 85 90 SetLength(Devices, 1); 86 91 while not Eof(Soubor) do begin -
trunk/UOptionsWindow.pas
r11 r12 233 233 234 234 uses 235 ULocalization, DateUtils, U WaitingDialog, SunriseChatNetworkCoreUnit,235 ULocalization, DateUtils, UJobProgressView, SunriseChatNetworkCoreUnit, 236 236 SunriseChatCoreUnit; 237 237 … … 350 350 MainWindow.AppUserEventsCount := Length(AppUserEvents); 351 351 352 WaitingDialog.PridejUlohu('Načtení z registrů', SaveUserEvents);353 WaitingDialog.PridejUlohu('Uložení do registrů', MainWindow.SaveAppUserEventsToRegistry);354 WaitingDialog.Start;352 JobProgressView.AddJob('Načtení z registrů', SaveUserEvents); 353 JobProgressView.AddJob('Uložení do registrů', MainWindow.SaveAppUserEventsToRegistry); 354 JobProgressView.Start; 355 355 ReloadImages; 356 356 end;
Note:
See TracChangeset
for help on using the changeset viewer.