Changeset 7 for trunk/Main.pas
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 HoFclient.dsk 3 3 HoFclient.~dsk 4 *.dcu
-
- Property svn:ignore
-
trunk/Main.pas
r6 r7 18 18 DefaultRSSChannel = 'http://wow.zdechov.net/rss.php?category=articles'; 19 19 OldRSSChannel = 'http://wow.zdechov.net/rss.php'; 20 AoWoWSearchURL = 'http://wowpreklad.zdechov.net/aowow/?search='; 21 HoFOnlineListURL = 'http://wow.zdechov.net/stat/stat.xml'; 22 ProjectHomepage = 'http://wow.zdechov.net/?page=client/'; 20 23 21 24 type … … 183 186 procedure Zkoprovatfonty1Click(Sender: TObject); 184 187 procedure FormDestroy(Sender: TObject); 188 procedure FormShow(Sender: TObject); 185 189 private 186 190 { Private declarations } … … 340 344 Servers[0].Name := 'Heroes of Fantasy'; 341 345 Servers[0].Address := 'wow.zdechov.net'; 342 Servers[0].OnlinePlayersAddress := 'http://wow.zdechov.net/stat/stat.xml';346 Servers[0].OnlinePlayersAddress := HoFOnlineListURL; 343 347 Servers[0].ExeFile := GetWoWExeFile; 344 348 Servers[0].Image := '1'; … … 365 369 procedure TForm1.FormCreate(Sender: TObject); 366 370 begin 367 Vlakno := TVlakno.Create(True); 371 Timer4.Enabled := False; 372 //Vlakno := TVlakno.Create(True); 368 373 369 374 // Načítání nastavení a vypsání … … 378 383 379 384 // ostatní 380 Form1.Caption := Form1.Caption +' '+ApplicationVersion;385 Form1.Caption := Form1.Caption + ' ' + ApplicationVersion; 381 386 SystemParametersInfo(SPI_GETWORKAREA, 0, @Desktop, 0); 382 387 InitRichEditURLDetection(RichEdit1); … … 433 438 NewMenuItem.Caption := '-'; 434 439 435 for I:= 0 to H IGh(servers) do begin440 for I:= 0 to High(Servers) do begin 436 441 NewMenuItem := TMenuItem.Create(PopupMenu1); // create the new item 437 442 PopupMenu1.Items.Insert(0, NewMenuItem);// add it to the Popupmenu 438 NewMenuItem.Caption := servers[i].Name;443 NewMenuItem.Caption := Servers[i].Name; 439 444 NewMenuItem.Tag := I; 440 445 NewMenuItem.OnClick := PopupMenuItemsClick;// assign it an event handler … … 619 624 begin 620 625 If ReallyYes('Smazat všechny servery?') then begin 621 SetLength(Servers, 0);626 SetLength(Servers, 0); 622 627 WriteImages; 623 628 WriteServers; … … 1033 1038 Name := 'Heroes of Fantasy'; 1034 1039 Address := 'wow.zdechov.net'; 1035 OnlinePlayersAddress := 'http://wow.zdechov.net/stat/stat.xml';1040 OnlinePlayersAddress := HoFOnlineListURL; 1036 1041 ExeFile := GetWoWExeFile; 1037 1042 Image := '1'; … … 1079 1084 begin 1080 1085 GetCursorPos(Position); 1081 x := Position.X-Form1.left -6;1082 y := Position.Y-Form1.top -52;1086 x := Position.X-Form1.left - 6; 1087 y := Position.Y-Form1.top - 52; 1083 1088 if Assigned(ListView1.GetItemAt(x,y)) then begin 1084 1089 Form7.Left := Position.X; … … 1104 1109 NewVersionInt := StrToInt(NewVersion); 1105 1110 except 1106 StatusBar1.SimpleText := 'Chyba spojení s serverem';1111 StatusBar1.SimpleText := 'Chyba spojení se serverem'; 1107 1112 NewVersionInt := 0; 1108 1113 end; … … 1123 1128 procedure TForm1.ShowWeb; 1124 1129 begin 1125 ShellExecute(Handle, 'open', PChar( 'http://wow.zdechov.net/?page=client/'), nil, nil, SW_SHOWNORMAL);1130 ShellExecute(Handle, 'open', PChar(ProjectHomepage), nil, nil, SW_SHOWNORMAL); 1126 1131 end; 1127 1132 … … 1138 1143 ShellExecute(Handle, 'open', PChar(ExtractFileDir(Application.ExeName)+'\NÁPOVĚDA.HLP'), nil, nil, SW_SHOWNORMAL); 1139 1144 end else begin 1140 ShowMessage('Nápověda n alezena!');1141 StatusBar1.SimpleText := 'Nápověda n alezena!';1145 ShowMessage('Nápověda nenalezena!'); 1146 StatusBar1.SimpleText := 'Nápověda nenalezena!'; 1142 1147 end; 1143 1148 end; … … 1397 1402 procedure TForm1.Image4Click(Sender: TObject); 1398 1403 begin 1399 //http://wow.zdechov.net/db/index.php?id=questy&find=Hledat&q=test 1400 OpenSearchURL('http://wow.zdechov.net/databaze/?search='); 1404 OpenSearchURL(AoWoWSearchURL); 1401 1405 end; 1402 1406 … … 1476 1480 1477 1481 inherited; 1478 1479 1482 end; 1480 1483 … … 1544 1547 begin 1545 1548 DrawForm; 1549 end; 1550 1551 procedure TForm1.FormShow(Sender: TObject); 1552 begin 1553 if OnlineHri1.Checked then Form5.Show; 1554 if Aktuality1.Checked then Form6.Show; 1546 1555 end; 1547 1556
Note:
See TracChangeset
for help on using the changeset viewer.