Changeset 12


Ignore:
Timestamp:
Feb 11, 2008, 11:37:07 AM (17 years ago)
Author:
george
Message:

Aktualizace: Vyměněna jednotka UWaitingDialog za novější UJobProgressView.
Opraveno: Chyba při vytváření souboru Error.txt.

Location:
trunk
Files:
2 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        55*.~dsk
        66Network.cfg
         7Error.txt
  • trunk/SunriseChat.dpr

    r11 r12  
    1616  ULocalization in 'ULocalization.pas' {Localization: TDataModule},
    1717  UTextFileStream in 'UTextFileStream.pas',
    18   UWaitingDialog in 'UWaitingDialog.pas' {WaitingDialog};
     18  UJobProgressView in 'UJobProgressView.pas' {JobProgressView};
    1919
    2020{$R *.res}
     
    2626  Application.CreateForm(TMainWindow, MainWindow);
    2727  Application.CreateForm(TLogExceptions, LogExceptions);
     28  Application.CreateForm(TJobProgressView, JobProgressView);
    2829  LogExceptions.AppVersion := ClientVersion;
    2930  LogExceptions.AppReleaseDate := ClientReleaseDate;
    30   Application.CreateForm(TWaitingDialog, WaitingDialog);
    3131  if not MainWindow.StopProgram then begin
    3232    Application.CreateForm(TNewRoom, NewRoom);
  • trunk/SunriseChatCoreUnit.pas

    r9 r12  
    114114  TAddMessageMethod = procedure(EventType: TAppEventType; Room: TRoom;
    115115    const Args: array of const; RoomLine: TRoomLine) of object;
    116 
    117   TSunriseChatProtocol = class
    118   public
    119     Version: Integer;
    120     SourceId: TClientIdentification;
    121     DestinationId: TClientIdentification;
    122     SequenceNumber: Integer;
    123     Command: TSystemCommand;
    124 
    125   end;
    126116
    127117  TSunriseChatCore = class(TComponent)
  • trunk/UMainWindow.dfm

    r11 r12  
    3333    FullRepaint = False
    3434    TabOrder = 0
    35     ExplicitWidth = 470
    36     ExplicitHeight = 331
    3735    object Splitter3: TSplitter
    3836      Left = 323
     
    5351      FullRepaint = False
    5452      TabOrder = 0
    55       ExplicitTop = 301
    56       ExplicitWidth = 470
    5753      DesignSize = (
    5854        471
     
    6864        TabOrder = 0
    6965        OnClick = Button1Click
    70         ExplicitLeft = 412
    7166      end
    7267      object ComboBox1: TComboBox
     
    8883        Items.Strings = (
    8984          '')
    90         ExplicitWidth = 401
    9185      end
    9286    end
     
    9993      BevelOuter = bvNone
    10094      TabOrder = 1
    101       ExplicitLeft = 324
    102       ExplicitHeight = 301
    10395      object ToolBar1: TToolBar
    10496        Left = 0
     
    114106        TabOrder = 0
    115107        Transparent = False
    116         ExplicitTop = 143
    117108        object ToolButton1: TToolButton
    118109          Left = 0
     
    192183      FullRepaint = False
    193184      TabOrder = 2
    194       ExplicitLeft = 350
    195       ExplicitHeight = 301
    196185      DesignSize = (
    197186        120
     
    234223      FullRepaint = False
    235224      TabOrder = 3
    236       ExplicitWidth = 322
    237       ExplicitHeight = 301
    238225      DesignSize = (
    239226        323
     
    272259        TabOrder = 1
    273260        OnChange = TabControl1Change
    274         ExplicitWidth = 316
    275         ExplicitHeight = 209
    276261        object TabSheet1: TTabSheet
    277262          Caption = 'TabSheet1'
     
    283268          ImageIndex = 1
    284269          ParentFont = False
    285           ExplicitWidth = 308
    286           ExplicitHeight = 180
    287270        end
    288271      end
     
    307290          Columns = <>
    308291          TabOrder = 1
    309           ExplicitWidth = 316
    310           ExplicitHeight = 260
    311292        end
    312293        object RichView1: TRichView
  • trunk/UMainWindow.pas

    r11 r12  
    251251    { Private declarations }
    252252  public
    253     SunriseChatNetworkCore1: TSunriseChatNEtworkCore;
     253    SunriseChatNetworkCore1: TSunriseChatNetworkCore;
    254254    UserEventsImagesEnabled: Boolean;
    255255    FirstStart: Boolean;
     
    331331
    332332uses UInfoWindow, UAboutWindow, UOptionsWindow, UNetworkTest, UNewRoom,
    333   DateUtils, ULocalization, UWaitingDialog, MMSystem;
     333  DateUtils, ULocalization, UJobProgressView, MMSystem;
    334334
    335335{$R *.dfm}
     
    14061406    if I<Length(AppUserEvents) then AppUserEventsOptions[I].SaveToRegistry;
    14071407    //AppUserEventsOptions[I].Free;
    1408     if Assigned(WaitingDialog) then WaitingDialog.Pozice := I/Max*100;
     1408    if Assigned(JobProgressView) then JobProgressView.Progress := I/Max;
    14091409  end;
    14101410  //SetLength(AppUserEventsOptions,0);
     
    14871487      LoadFromRegistry;
    14881488    end;
    1489     if Assigned(WaitingDialog) then WaitingDialog.Pozice := I/AppUserEventsCount*100;
     1489    if Assigned(JobProgressView) then JobProgressView.Progress := I / AppUserEventsCount;
    14901490  end;
    14911491end;
  • trunk/UNetworkTest.pas

    r9 r12  
    8282    ChDir(ExtractFileDir(Application.ExeName));
    8383    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;
    8590    SetLength(Devices, 1);
    8691    while not Eof(Soubor) do begin
  • trunk/UOptionsWindow.pas

    r11 r12  
    233233
    234234uses
    235   ULocalization, DateUtils, UWaitingDialog, SunriseChatNetworkCoreUnit,
     235  ULocalization, DateUtils, UJobProgressView, SunriseChatNetworkCoreUnit,
    236236  SunriseChatCoreUnit;
    237237
     
    350350      MainWindow.AppUserEventsCount := Length(AppUserEvents);
    351351
    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;
    355355      ReloadImages;
    356356    end;
Note: See TracChangeset for help on using the changeset viewer.