- Timestamp:
- Sep 11, 2008, 4:34:46 PM (16 years ago)
- Location:
- cprs/branches/GUI-config
- Files:
-
- 4 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/GUI-config/GUI_Config.dof
r476 r488 101 101 UsePackages=0 102 102 [Parameters] 103 RunParams=s=192.168.3.111 p=9230 103 RunParams=s=192.168.3.111 p=9230 debug=enable 104 104 HostApplication= 105 105 Launcher= -
cprs/branches/GUI-config/GUI_Config.dpr
r476 r488 42 42 CreateTemplateU in 'CreateTemplateU.pas' {CreateTemplateForm}, 43 43 SkinFormU in 'SkinFormU.pas' {SkinForm}, 44 BatchAddU in 'BatchAddU.pas' {BatchAddForm}; 44 BatchAddU in 'BatchAddU.pas' {BatchAddForm}, 45 DebugU in 'DebugU.pas' {DebugForm}; 45 46 46 47 {$R *.res} … … 62 63 Application.CreateForm(TCreateTemplateForm, CreateTemplateForm); 63 64 Application.CreateForm(TBatchAddForm, BatchAddForm); 65 Application.CreateForm(TDebugForm, DebugForm); 64 66 MainForm.Initialize; 65 67 Application.Run; -
cprs/branches/GUI-config/GUI_Config.dsk
r482 r488 1 1 [Closed Files] 2 File_0=SourceModule,'P:\Vista\GUI-config\SkinStuff\ipSkinManager.dcu',0,1,1,11,5,0,0 3 File_1=SourceModule,'P:\Vista\GUI-config\PostU.pas',0,1,162,47,166,0,0 4 File_2=SourceModule,'P:\Vista\GUI-config\SelDateTimeU.pas',0,1,1,1,5,0,0 5 File_3=SourceModule,'C:\Program Files\Borland\Delphi7\Projects\Vista\CPRS-Lib\ORFn.pas',0,1,610,1,621,0,0 6 File_4=SourceModule,'C:\Program Files\Borland\Delphi7\Projects\Vista\CPRS-Lib\ORCtrls.pas',0,1,1171,1,1182,0,0 7 File_5=SourceModule,'c:\program files\borland\delphi7\projects\vista\cprs-1.0.23.15\broker\source\Trpcb.pas',0,1,1013,1,1021,0,0 8 File_6=SourceModule,'C:\Program Files\Borland\Delphi7\Projects\Vista\CPRS-Lib\ORNet.pas',0,1,53,1,65,0,0 2 File_0=SourceModule,'P:\Vista\GUI-config\MainU.dfm',0,1,1,1,1,0,0 3 File_1=SourceModule,'P:\Vista\GUI-config\SkinStuff\ipSkinManager.dcu',0,1,1,11,5,0,0 4 File_2=SourceModule,'P:\Vista\GUI-config\PostU.pas',0,1,162,47,166,0,0 5 File_3=SourceModule,'P:\Vista\GUI-config\SelDateTimeU.pas',0,1,1,1,5,0,0 6 File_4=SourceModule,'C:\Program Files\Borland\Delphi7\Projects\Vista\CPRS-Lib\ORFn.pas',0,1,610,1,621,0,0 7 File_5=SourceModule,'C:\Program Files\Borland\Delphi7\Projects\Vista\CPRS-Lib\ORCtrls.pas',0,1,1171,1,1182,0,0 8 File_6=SourceModule,'c:\program files\borland\delphi7\projects\vista\cprs-1.0.23.15\broker\source\Trpcb.pas',0,1,1013,1,1021,0,0 9 File_7=SourceModule,'C:\Program Files\Borland\Delphi7\Projects\Vista\CPRS-Lib\ORNet.pas',0,1,53,1,65,0,0 9 10 10 11 [Modules] 11 12 Module0=P:\Vista\GUI-config\MainU.pas 12 Module1=P:\ Vista\GUI-config\GUI_Config.dpr13 Module2=P:\Vista\GUI-config\ SkinFormU.pas14 Module3=P:\Vista\GUI-config\ LookupU.pas15 Module4=P:\Vista\GUI-config\ CPRS-Lib\ORCtrls.pas16 Module5=P:\Vista\GUI-config\ BatchAddU.pas17 Module6=P:\Vista\GUI-config\ SubfilesU.pas13 Module1=P:\vista\GUI-config\DebugU.pas 14 Module2=P:\Vista\GUI-config\GUI_Config.dpr 15 Module3=P:\Vista\GUI-config\CPRS-Lib\ORCtrls.pas 16 Module4=P:\Vista\GUI-config\SkinFormU.pas 17 Module5=P:\Vista\GUI-config\SubfilesU.pas 18 Module6=P:\Vista\GUI-config\BatchAddU.pas 18 19 Module7=P:\Vista\GUI-config\frmSplash.pas 19 Module8=c:\program files\borland\delphi7\source\vcl\OleCtrls.pas 20 Count=9 20 Module8=c:\program files\borland\delphi7\source\rtl\Win\ShellAPI.pas 21 Module9=c:\program files\borland\delphi7\source\vcl\OleCtrls.pas 22 Module10=P:\Vista\GUI-config\LookupU.pas 23 Count=11 21 24 EditWindowCount=1 22 25 … … 26 29 FormOnTop=0 27 30 31 [P:\vista\GUI-config\DebugU.pas] 32 ModuleType=SourceModule 33 FormState=1 34 FormOnTop=0 35 28 36 [P:\Vista\GUI-config\GUI_Config.dpr] 29 37 ModuleType=SourceModule … … 31 39 FormOnTop=0 32 40 41 [P:\Vista\GUI-config\CPRS-Lib\ORCtrls.pas] 42 ModuleType=SourceModule 43 FormState=0 44 FormOnTop=0 45 33 46 [P:\Vista\GUI-config\SkinFormU.pas] 34 47 ModuleType=SourceModule … … 36 49 FormOnTop=0 37 50 51 [P:\Vista\GUI-config\SubfilesU.pas] 52 ModuleType=SourceModule 53 FormState=1 54 FormOnTop=0 55 56 [P:\Vista\GUI-config\BatchAddU.pas] 57 ModuleType=SourceModule 58 FormState=1 59 FormOnTop=0 60 61 [P:\Vista\GUI-config\frmSplash.pas] 62 ModuleType=SourceModule 63 FormState=0 64 FormOnTop=0 65 66 [c:\program files\borland\delphi7\source\rtl\Win\ShellAPI.pas] 67 ModuleType=SourceModule 68 FormState=0 69 FormOnTop=0 70 71 [c:\program files\borland\delphi7\source\vcl\OleCtrls.pas] 72 ModuleType=SourceModule 73 FormState=0 74 FormOnTop=0 75 38 76 [P:\Vista\GUI-config\LookupU.pas] 39 77 ModuleType=SourceModule … … 41 79 FormOnTop=0 42 80 43 [P:\Vista\GUI-config\CPRS-Lib\ORCtrls.pas]44 ModuleType=SourceModule45 FormState=046 FormOnTop=047 48 [P:\Vista\GUI-config\BatchAddU.pas]49 ModuleType=SourceModule50 FormState=151 FormOnTop=052 53 [P:\Vista\GUI-config\SubfilesU.pas]54 ModuleType=SourceModule55 FormState=156 FormOnTop=057 58 [P:\Vista\GUI-config\frmSplash.pas]59 ModuleType=SourceModule60 FormState=061 FormOnTop=062 63 [c:\program files\borland\delphi7\source\vcl\OleCtrls.pas]64 ModuleType=SourceModule65 FormState=066 FormOnTop=067 68 81 [C:\Program Files\Borland\Delphi7\Projects\ProjectGroup1.bpg] 69 82 FormState=0 … … 71 84 72 85 [EditWindow0] 73 ViewCount= 986 ViewCount=11 74 87 CurrentView=0 75 88 View0=0 … … 82 95 View7=7 83 96 View8=8 97 View9=9 98 View10=10 84 99 CodeExplorer=CodeExplorer@EditWindow0 85 100 MessageView=MessageView@EditWindow0 … … 101 116 BottomPanelSize=205 102 117 BottomPanelClients=WatchWindow,MessageView@EditWindow0 103 BottomPanelData=00000400010000000B000000 4D65737361676556696577000300000000000002CD0000000000000001000000008B010000000000000100000001580300000000000002000000006C000000000000000200000002BE0000000000000003000000000000000000000000030000000000000000000000000300000000AC0100000000000003000000005803000000000000030000000058030000000000000300000000580300000000000003000000005803000000000000030000000058030000000000000200000000D80000000000000001000000005803000000000000010000000058030000000000000100000000AC0100000000000001000000005803000000000000010000000058030000000000000100000000AC010000000000000100000000C401000000000000010000000066000000000000000100000000D7020000000000000100000000160300000000000001000000001603000000000000010000000016030000000000000100000000160300000000000001000000008B0100000000000001000000008B0100000000000001000000008B010000000000000100000000F8020000000000000100000000FD02000000000000010000000016030000000000000100000000160300000000000001000000007E010000000000000100000000000300000B000000576174636857696E646F770100000000000300000B0000004D65737361676556696577FFFFFFFF118 BottomPanelData=00000400010000000B000000576174636857696E646F77000300000000000002CD0000000000000001000000008B010000000000000100000001580300000000000002000000006C000000000000000200000002BE0000000000000003000000000000000000000000030000000000000000000000000300000000AC0100000000000003000000005803000000000000030000000058030000000000000300000000580300000000000003000000005803000000000000030000000058030000000000000200000000D80000000000000001000000005803000000000000010000000058030000000000000100000000AC0100000000000001000000005803000000000000010000000058030000000000000100000000AC010000000000000100000000C401000000000000010000000066000000000000000100000000D7020000000000000100000000160300000000000001000000001603000000000000010000000016030000000000000100000000160300000000000001000000008B0100000000000001000000008B0100000000000001000000008B010000000000000100000000F8020000000000000100000000FD02000000000000010000000016030000000000000100000000160300000000000001000000007E01000000000000010000000100030000000000000200000000CD0000000B0000004D657373616765566965770200000000CD0000000000000001000000000003000000000000FFFFFFFF 104 119 105 120 [View0] 106 121 Module=P:\Vista\GUI-config\MainU.pas 107 CursorX= 1108 CursorY= 1872109 TopLine= 1869122 CursorX=3 123 CursorY=33 124 TopLine=25 110 125 LeftCol=1 111 126 112 127 [View1] 128 Module=P:\vista\GUI-config\DebugU.pas 129 CursorX=13 130 CursorY=13 131 TopLine=1 132 LeftCol=1 133 134 [View2] 113 135 Module=P:\Vista\GUI-config\CPRS-Lib\ORCtrls.pas 114 136 CursorX=1 115 CursorY= 3981116 TopLine= 3973117 LeftCol=1 118 119 [View 2]137 CursorY=1 138 TopLine=1 139 LeftCol=1 140 141 [View3] 120 142 Module=P:\Vista\GUI-config\LookupU.pas 121 143 CursorX=11 … … 124 146 LeftCol=1 125 147 126 [View 3]148 [View4] 127 149 Module=c:\program files\borland\delphi7\source\vcl\OleCtrls.pas 128 150 CursorX=12 … … 131 153 LeftCol=1 132 154 133 [View 4]155 [View5] 134 156 Module=P:\Vista\GUI-config\SubfilesU.pas 135 157 CursorX=5 … … 138 160 LeftCol=1 139 161 140 [View 5]162 [View6] 141 163 Module=P:\Vista\GUI-config\SkinFormU.pas 164 CursorX=16 165 CursorY=95 166 TopLine=87 167 LeftCol=1 168 169 [View7] 170 Module=c:\program files\borland\delphi7\source\rtl\Win\ShellAPI.pas 142 171 CursorX=1 143 CursorY=1 70144 TopLine=1 62145 LeftCol=1 146 147 [View 6]172 CursorY=1 173 TopLine=1 174 LeftCol=1 175 176 [View8] 148 177 Module=P:\Vista\GUI-config\GUI_Config.dpr 149 178 CursorX=1 150 CursorY=6 6151 TopLine= 59152 LeftCol=1 153 154 [View 7]179 CursorY=68 180 TopLine=60 181 LeftCol=1 182 183 [View9] 155 184 Module=P:\Vista\GUI-config\frmSplash.pas 156 185 CursorX=20 … … 159 188 LeftCol=1 160 189 161 [View 8]190 [View10] 162 191 Module=P:\Vista\GUI-config\BatchAddU.pas 163 192 CursorX=16 … … 177 206 WatchShowColumnHeaders=1 178 207 Create=1 179 Visible= 1208 Visible=0 180 209 State=0 181 210 Left=12 182 Top= 0211 Top=102 183 212 Width=756 184 Height= 205213 Height=103 185 214 MaxLeft=-1 186 215 MaxTop=-1 187 216 ClientWidth=756 188 ClientHeight= 205189 TBDockHeight= 205217 ClientHeight=103 218 TBDockHeight=103 190 219 LRDockWidth=421 191 220 Dockable=1 … … 290 319 SplitPos=114 291 320 ArrangeBy=Name 292 SelectedItem= OnNeedData321 SelectedItem=Name 293 322 ExpandedItems=Anchors,Options 294 323 HiddenCategories=Legacy … … 494 523 [MessageView@EditWindow0] 495 524 Create=1 496 Visible= 0497 State=0 498 Left= 396525 Visible=1 526 State=0 527 Left=12 499 528 Top=0 500 Width= 372501 Height= 122502 MaxLeft=-1 503 MaxTop=-1 504 ClientWidth= 372505 ClientHeight= 122506 TBDockHeight= 122529 Width=756 530 Height=205 531 MaxLeft=-1 532 MaxTop=-1 533 ClientWidth=756 534 ClientHeight=205 535 TBDockHeight=205 507 536 LRDockWidth=443 508 537 Dockable=1 -
cprs/branches/GUI-config/MainU.dfm
r482 r488 1241 1241 Left = 496 1242 1242 Top = 16 1243 object File 1: TMenuItem1243 object FileMenu: TMenuItem 1244 1244 Caption = '&File' 1245 1245 object AboutMenu: TMenuItem … … 1247 1247 OnClick = AboutMenuClick 1248 1248 end 1249 object Exit 1: TMenuItem1249 object ExitMenuItem: TMenuItem 1250 1250 Caption = 'E&xit' 1251 OnClick = Exit 1Click1251 OnClick = ExitMenuItemClick 1252 1252 end 1253 1253 end -
cprs/branches/GUI-config/MainU.pas
r476 r488 81 81 BasicUsersGrid: TStringGrid; 82 82 MainMenu: TMainMenu; 83 File 1: TMenuItem;84 Exit 1: TMenuItem;83 FileMenu: TMenuItem; 84 ExitMenuItem: TMenuItem; 85 85 AboutMenu: TMenuItem; 86 86 CloneBtn: TBitBtn; … … 148 148 procedure btnUsersApplyClick(Sender: TObject); 149 149 procedure FormClose(Sender: TObject; var Action: TCloseAction); 150 procedure Exit 1Click(Sender: TObject);150 procedure ExitMenuItemClick(Sender: TObject); 151 151 procedure UserPageControlDrawTab(Control: TCustomTabControl; TabIndex: Integer; const Rect: TRect; Active: Boolean); 152 152 procedure AboutMenuClick(Sender: TObject); … … 207 207 CachedWPField : TStringList; 208 208 FVisibleGridIdx : integer; 209 procedure ShowDebugClick(Sender: TObject); 210 function FindParam(Param : string) : string; 209 211 function GetCurrentUserName : string; 210 212 procedure SetCursorImage(Cursor : TCursor); … … 247 249 CurrentUserName: string; 248 250 LastSelTreeNode : TTreeNode; 251 DebugMode : boolean; 249 252 function GetUserLine(CurrentUserData : TStringList; Grid : TStringGrid; ARow:integer) :integer; 250 253 function GetLineInfo(Grid : TStringGrid; CurrentUserData : TStringList; ARow: integer) : tFileEntry; … … 280 283 frmSplash, Trpcb , LookupU, SubfilesU, SetSelU, SelDateTimeU, PostU, 281 284 FMErrorU, AboutU, PleaseWaitU, EditTextU, CreateTemplateU, SkinFormU, 282 BatchAddU ;285 BatchAddU, DebugU; 283 286 284 287 {$R *.dfm} … … 289 292 var tempMenu,tempSubMenu : TMenuItem; 290 293 begin 294 DebugMode := (FindParam('debug')='enable'); 295 if DebugMode then begin 296 DebugForm.show; 297 tempMenu := TMenuItem.Create(FileMenu); 298 tempMenu.Caption := '&Show Debug Log'; 299 tempMenu.OnClick := ShowDebugClick; 300 FileMenu.Add(tempMenu); 301 end; 291 302 {$IFDEF USE_SKINS} 303 DebugForm.Memo.Lines.Add('Adding Menus'); 292 304 tempMenu := TMenuItem.Create(MainMenu); 293 305 tempMenu.Caption := '&Appearance'; … … 299 311 {$ENDIF} 300 312 313 DebugForm.Memo.Lines.Add('Showing Splash'); 301 314 SplashForm.show; 302 315 … … 313 326 CachedWPField := TStringList.Create; 314 327 328 DebugForm.Memo.Lines.Add('Adding Grid Info'); 315 329 AddGridInfo(BasicUsersGrid,CurrentUserData,true,LoadUserData,'200',btnUsersApply,btnUsersRevert); 316 330 AddGridInfo(AdvancedUsersGrid,CurrentUserData,false,LoadUserData,'200',btnUsersApply,btnUsersRevert); … … 322 336 323 337 MainForm.Visible := false; 338 DebugForm.Memo.Lines.Add('Trying to connect to server'); 324 339 if not ORNet.ConnectToServer(RPC_CONTEXT) then begin 340 DebugForm.Memo.Lines.Add('Failed connection. Closing.'); 325 341 Close; 326 342 Exit; 327 343 end; 344 DebugForm.Memo.Lines.Add('Connected to server!'); 328 345 Application.ProcessMessages; 329 346 LastSelTreeNode := nil; … … 332 349 BasicTemplate.Sorted := false; 333 350 351 DebugForm.Memo.Lines.Add('Initializing Combo Boxes'); 334 352 InitORCombobox(PatientORComboBox,'A'); 335 353 InitORCombobox(FileORComboBox,'A'); … … 347 365 {$IFDEF USE_SKINS} 348 366 if SkinForm.cbSkinAtStartup.Checked then begin 367 DebugForm.Memo.Lines.Add('Activating Skins'); 349 368 SkinForm.ActivateCurrentSkin; 350 369 end; 351 370 {$ENDIF} 352 371 353 self.Visible := true; 372 self.Visible := true; 354 373 SplashForm.Hide; 355 end; 356 374 DebugForm.Memo.Lines.Add('Done Initializing.'); 375 end; 376 377 function TMainForm.FindParam(Param : string) : string; 378 //Searches command line parameters for Param. If found, then value returned. 379 //Case insensitive 380 //Must be in 'param=value' format, i.e. must have '=' 381 var i : integer; 382 tempS : string; 383 begin 384 Result := ''; 385 Param := LowerCase(Param); 386 for i := 1 to ParamCount do begin 387 tempS := LowerCase (ParamStr(i)); 388 if Pos(Param,tempS)>0 then Result := Piece(tempS,'=',2); 389 end; 390 end; 391 392 357 393 procedure TMainForm.AddGridInfo(Grid: TStringGrid; 358 394 Data : TStringList; … … 1536 1572 end; 1537 1573 1538 procedure TMainForm.Exit 1Click(Sender: TObject);1574 procedure TMainForm.ExitMenuItemClick(Sender: TObject); 1539 1575 begin 1540 1576 Close; … … 1970 2006 end; 1971 2007 2008 procedure TMainForm.ShowDebugClick(Sender: TObject); 2009 begin 2010 DebugForm.Show; 2011 end; 2012 1972 2013 procedure TMainForm.ChangeSkinClick(Sender: TObject); 1973 2014 var result : TModalResult;
Note:
See TracChangeset
for help on using the changeset viewer.