| 1 |
unit Option; |
| 2 |
|
| 3 |
interface |
| 4 |
|
| 5 |
uses |
| 6 |
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, |
| 7 |
ComCtrls, StdCtrls, ExtCtrls, Dialogs, FileCtrl, MMSystem, |
| 8 |
GikoSystem, GikoUtil, Buttons, UrlMon, Menus, ImgList, OleCtrls, |
| 9 |
{$IF Defined(DELPRO) } |
| 10 |
SHDocVw, |
| 11 |
MSHTML, |
| 12 |
{$ELSE} |
| 13 |
SHDocVw_TLB, |
| 14 |
MSHTML_TLB, |
| 15 |
{$IFEND} |
| 16 |
BoardGroup, BrowserRecord; |
| 17 |
|
| 18 |
type |
| 19 |
TOptionDialog = class(TForm) |
| 20 |
CancelBotton: TButton; |
| 21 |
ApplyButton: TButton; |
| 22 |
FontDialog: TFontDialog; |
| 23 |
ColorDialog: TColorDialog; |
| 24 |
OpenDialog: TOpenDialog; |
| 25 |
Label26: TLabel; |
| 26 |
CroutOption: TButton; |
| 27 |
OptionTab: TPageControl; |
| 28 |
ConnectSheet: TTabSheet; |
| 29 |
ReadProxyGroupBox: TGroupBox; |
| 30 |
ReadAddressLabel: TLabel; |
| 31 |
ReadPortLabel: TLabel; |
| 32 |
ReadUserIDLabel: TLabel; |
| 33 |
ReadPasswordLabel: TLabel; |
| 34 |
ReadProxyCheck: TCheckBox; |
| 35 |
ReadProxyAddressEdit: TEdit; |
| 36 |
ReadPortEdit: TEdit; |
| 37 |
ReadProxyUserIDEdit: TEdit; |
| 38 |
ReadProxyPasswordEdit: TEdit; |
| 39 |
WriteProxyGroupBox: TGroupBox; |
| 40 |
WriteAddressLabel: TLabel; |
| 41 |
WritePortLabel: TLabel; |
| 42 |
WriteUserIDLabel: TLabel; |
| 43 |
WritePasswordLabel: TLabel; |
| 44 |
WriteProxyCheck: TCheckBox; |
| 45 |
WriteProxyAddressEdit: TEdit; |
| 46 |
WritePortEdit: TEdit; |
| 47 |
WriteProxyUserIDEdit: TEdit; |
| 48 |
WriteProxyPasswordEdit: TEdit; |
| 49 |
Font1Sheet: TTabSheet; |
| 50 |
Bevel1: TBevel; |
| 51 |
Bevel2: TBevel; |
| 52 |
Label19: TLabel; |
| 53 |
Bevel5: TBevel; |
| 54 |
Label20: TLabel; |
| 55 |
Label21: TLabel; |
| 56 |
Label22: TLabel; |
| 57 |
Label23: TLabel; |
| 58 |
lblSFont: TLabel; |
| 59 |
CabinetFontBotton: TButton; |
| 60 |
CabinetColorBotton: TButton; |
| 61 |
CabinetDefaultButton: TButton; |
| 62 |
CabinetMemo: TMemo; |
| 63 |
ListMemo: TMemo; |
| 64 |
ListFontBotton: TButton; |
| 65 |
ListColorBotton: TButton; |
| 66 |
ListDefaultBotton: TButton; |
| 67 |
HintFontButton: TButton; |
| 68 |
HintBackButton: TButton; |
| 69 |
HintDefaultButton: TButton; |
| 70 |
HintMemo: TMemo; |
| 71 |
EditorMemo: TMemo; |
| 72 |
EditorFontBotton: TButton; |
| 73 |
EditorColorBotton: TButton; |
| 74 |
EditorDefaultBotton: TButton; |
| 75 |
BrowserTabMemo: TMemo; |
| 76 |
BruwserTabFontButton: TButton; |
| 77 |
BrowserTabDefaultButton: TButton; |
| 78 |
OddResNumCheckBox: TCheckBox; |
| 79 |
OddResNumColorBox: TColorBox; |
| 80 |
CSSTabSheet: TTabSheet; |
| 81 |
GroupBox12: TGroupBox; |
| 82 |
CSSListLabel: TLabel; |
| 83 |
CSSCheckBox: TCheckBox; |
| 84 |
CSSListView: TListView; |
| 85 |
CSSBrowser: TWebBrowser; |
| 86 |
CSSFontCheckBox: TCheckBox; |
| 87 |
CSSBackColorCheckBox: TCheckBox; |
| 88 |
CSSFontButton: TButton; |
| 89 |
CSSBackColorButton: TButton; |
| 90 |
TabSheet3: TTabSheet; |
| 91 |
GroupBox9: TGroupBox; |
| 92 |
ThreadListIconCheckBox: TCheckBox; |
| 93 |
GroupBox16: TGroupBox; |
| 94 |
CreationTimeLogsCheckBox: TCheckBox; |
| 95 |
FutureThreadCheckBox: TCheckBox; |
| 96 |
GroupBox5: TGroupBox; |
| 97 |
BrowserMaxLabel: TLabel; |
| 98 |
BrowserMaxCombo: TComboBox; |
| 99 |
GroupBox17: TGroupBox; |
| 100 |
SelectIntervalLabel: TLabel; |
| 101 |
Label4: TLabel; |
| 102 |
Label6: TLabel; |
| 103 |
SelectIntervalEdit: TEdit; |
| 104 |
GroupBox18: TGroupBox; |
| 105 |
DatOchiSortCombo: TComboBox; |
| 106 |
ThreadSheet: TTabSheet; |
| 107 |
GroupBox1: TGroupBox; |
| 108 |
ShowMailCheckBox: TCheckBox; |
| 109 |
ResRangeHoldCheckBox: TCheckBox; |
| 110 |
ResRangeHoldComboBox: TComboBox; |
| 111 |
GroupBox2: TGroupBox; |
| 112 |
AppFolderLabel: TLabel; |
| 113 |
URLAppCheckBox: TCheckBox; |
| 114 |
AppFolderEdit: TEdit; |
| 115 |
AppFolderButton: TButton; |
| 116 |
OpenMailerCheckBox: TCheckBox; |
| 117 |
GroupBox6: TGroupBox; |
| 118 |
LogDeleteMessageCheckBox: TCheckBox; |
| 119 |
TabSheet1: TTabSheet; |
| 120 |
TabAddRadioGroup: TRadioGroup; |
| 121 |
GroupBox8: TGroupBox; |
| 122 |
Label14: TLabel; |
| 123 |
Label15: TLabel; |
| 124 |
Label16: TLabel; |
| 125 |
PreviewVisibleCheckBox: TCheckBox; |
| 126 |
PreviewSizeComboBox: TComboBox; |
| 127 |
PreviewWaitEdit: TEdit; |
| 128 |
GroupBox10: TGroupBox; |
| 129 |
UnActivePopupCheckBox: TCheckBox; |
| 130 |
ResPopupBoldCheckBox: TCheckBox; |
| 131 |
TabSheet2: TTabSheet; |
| 132 |
GroupBox7: TGroupBox; |
| 133 |
Label3: TLabel; |
| 134 |
Label11: TLabel; |
| 135 |
URLDisplayCheckBox: TCheckBox; |
| 136 |
AddressHistoryCountEdit: TEdit; |
| 137 |
TabStopAddressBarCheckBox: TCheckBox; |
| 138 |
LinkAddCheckBox: TCheckBox; |
| 139 |
GroupBox15: TGroupBox; |
| 140 |
ShowDialogForEndCheckBox: TCheckBox; |
| 141 |
AllTabCloseCheckBox: TCheckBox; |
| 142 |
SambaGroupBox: TGroupBox; |
| 143 |
UseSambaCheckBox: TCheckBox; |
| 144 |
TabAutoSaveLoad: TGroupBox; |
| 145 |
TabLoadSave: TCheckBox; |
| 146 |
SoundSheet: TTabSheet; |
| 147 |
SoundEventGroupBox: TGroupBox; |
| 148 |
SoundListView: TListView; |
| 149 |
SoundReferButton: TButton; |
| 150 |
SoundFileEdit: TEdit; |
| 151 |
SoundPlayButton: TBitBtn; |
| 152 |
FolderSheet: TTabSheet; |
| 153 |
FolderGroupBox: TGroupBox; |
| 154 |
Label1: TLabel; |
| 155 |
Label2: TLabel; |
| 156 |
Label5: TLabel; |
| 157 |
LogFolderEdit: TEdit; |
| 158 |
LogFolderButton: TButton; |
| 159 |
NGwordSheet: TTabSheet; |
| 160 |
GroupBox14: TGroupBox; |
| 161 |
RloCheckBox: TCheckBox; |
| 162 |
ReplaceulCheckBox: TCheckBox; |
| 163 |
PopUpAbonCheckBox: TCheckBox; |
| 164 |
ShowNGLineCheckBox: TCheckBox; |
| 165 |
AddResAnchorCheckBox: TCheckBox; |
| 166 |
DeleteSyriaCheckBox: TCheckBox; |
| 167 |
UserIDSheet: TTabSheet; |
| 168 |
GroupBox3: TGroupBox; |
| 169 |
Label9: TLabel; |
| 170 |
Label10: TLabel; |
| 171 |
ForcedLoginLabel: TLabel; |
| 172 |
UserIDEdit: TEdit; |
| 173 |
PasswordEdit: TEdit; |
| 174 |
AutoLoginCheckBox: TCheckBox; |
| 175 |
ForcedLoginCheckBox: TCheckBox; |
| 176 |
GroupBox4: TGroupBox; |
| 177 |
Label13: TLabel; |
| 178 |
BoardURLComboBox: TComboBox; |
| 179 |
AddURLButton: TButton; |
| 180 |
RemoveURLButton: TButton; |
| 181 |
OkBotton: TButton; |
| 182 |
SpamFilterGroupBox: TGroupBox; |
| 183 |
SpamFilterAlgorithmComboBox: TComboBox; |
| 184 |
TabSheet4: TTabSheet; |
| 185 |
GroupBox13: TGroupBox; |
| 186 |
UseUndecidedCheckBox: TCheckBox; |
| 187 |
Tora3URLLabel: TLabel; |
| 188 |
Label12: TLabel; |
| 189 |
GroupBox11: TGroupBox; |
| 190 |
Label7: TLabel; |
| 191 |
BeUserIDEdit: TEdit; |
| 192 |
Label8: TLabel; |
| 193 |
BeCodeEdit: TEdit; |
| 194 |
BeAutoLoginCheckBox: TCheckBox; |
| 195 |
GroupBox19: TGroupBox; |
| 196 |
Label17: TLabel; |
| 197 |
MaxRecordCountEdit: TEdit; |
| 198 |
Label18: TLabel; |
| 199 |
UnFocusedBoldCheckBox: TCheckBox; |
| 200 |
IgnoreKanaCheckBox: TCheckBox; |
| 201 |
UseKatjuTypeSkinCheckBox: TCheckBox; |
| 202 |
GroupBox20: TGroupBox; |
| 203 |
AutoSortCheckBox: TCheckBox; |
| 204 |
Label24: TLabel; |
| 205 |
GroupBox21: TGroupBox; |
| 206 |
StoredTaskTrayCB: TCheckBox; |
| 207 |
GroupBox22: TGroupBox; |
| 208 |
LoopBrowserTabsCB: TCheckBox; |
| 209 |
GroupBox23: TGroupBox; |
| 210 |
IgnoreContextCheckBox: TCheckBox; |
| 211 |
GroupBox24: TGroupBox; |
| 212 |
gppRightTopRB: TRadioButton; |
| 213 |
gppTopRB: TRadioButton; |
| 214 |
gppLeftTopRB: TRadioButton; |
| 215 |
gppLeftRB: TRadioButton; |
| 216 |
gppRightRB: TRadioButton; |
| 217 |
gppLeftBottomRB: TRadioButton; |
| 218 |
gppBottomRB: TRadioButton; |
| 219 |
gppRighBottomRB: TRadioButton; |
| 220 |
ResAnchorCheckBox: TCheckBox; |
| 221 |
IgnoreLimitResCountCheckBox: TCheckBox; |
| 222 |
GroupBox25: TGroupBox; |
| 223 |
Label25: TLabel; |
| 224 |
BoukenComboBox: TComboBox; |
| 225 |
BoukenModButton: TButton; |
| 226 |
BoukenDelButton: TButton; |
| 227 |
BoukenEdit: TEdit; |
| 228 |
procedure FormCreate(Sender: TObject); |
| 229 |
procedure FormDestroy(Sender: TObject); |
| 230 |
procedure ApplyButtonClick(Sender: TObject); |
| 231 |
procedure CabinetFontBottonClick(Sender: TObject); |
| 232 |
procedure CabinetColorBottonClick(Sender: TObject); |
| 233 |
procedure EditorFontBottonClick(Sender: TObject); |
| 234 |
procedure OkBottonClick(Sender: TObject); |
| 235 |
procedure ReadProxyCheckClick(Sender: TObject); |
| 236 |
procedure ListFontBottonClick(Sender: TObject); |
| 237 |
procedure ListColorBottonClick(Sender: TObject); |
| 238 |
procedure EditorColorBottonClick(Sender: TObject); |
| 239 |
procedure CabinetDefaultButtonClick(Sender: TObject); |
| 240 |
procedure ReadPortEditExit(Sender: TObject); |
| 241 |
procedure ListDefaultBottonClick(Sender: TObject); |
| 242 |
procedure EditorDefaultBottonClick(Sender: TObject); |
| 243 |
procedure HintFontButtonClick(Sender: TObject); |
| 244 |
procedure HintBackButtonClick(Sender: TObject); |
| 245 |
procedure HintDefaultButtonClick(Sender: TObject); |
| 246 |
procedure LogFolderButtonClick(Sender: TObject); |
| 247 |
procedure FormClose(Sender: TObject; var Action: TCloseAction); |
| 248 |
procedure SoundReferButtonClick(Sender: TObject); |
| 249 |
procedure SoundPlayButtonClick(Sender: TObject); |
| 250 |
procedure SoundListViewChanging(Sender: TObject; Item: TListItem; |
| 251 |
Change: TItemChange; var AllowChange: Boolean); |
| 252 |
procedure SoundFileEditChange(Sender: TObject); |
| 253 |
procedure OptionTabChange(Sender: TObject); |
| 254 |
procedure AppFolderButtonClick(Sender: TObject); |
| 255 |
procedure WriteProxyCheckClick(Sender: TObject); |
| 256 |
procedure WritePortEditExit(Sender: TObject); |
| 257 |
procedure Tora3URLLabelClick(Sender: TObject); |
| 258 |
procedure HotKeyEnter(Sender: TObject); |
| 259 |
procedure HotKeyExit(Sender: TObject); |
| 260 |
procedure URLAppCheckBoxClick(Sender: TObject); |
| 261 |
procedure BruwserTabFontButtonClick(Sender: TObject); |
| 262 |
procedure BrowserTabDefaultButtonClick(Sender: TObject); |
| 263 |
procedure AddressHistoryCountEditExit(Sender: TObject); |
| 264 |
procedure PreviewWaitEditExit(Sender: TObject); |
| 265 |
procedure CSSCheckBoxClick(Sender: TObject); procedure CSSFontButtonClick(Sender: TObject); |
| 266 |
procedure CSSBackColorButtonClick(Sender: TObject); |
| 267 |
procedure CSSFontCheckBoxClick(Sender: TObject); |
| 268 |
procedure CSSBackColorCheckBoxClick(Sender: TObject); |
| 269 |
procedure CSSListViewChange(Sender: TObject; Item: TListItem; |
| 270 |
Change: TItemChange); |
| 271 |
procedure AddURLButtonClick(Sender: TObject); |
| 272 |
procedure RemoveURLButtonClick(Sender: TObject); |
| 273 |
procedure OddResNumCheckBoxClick(Sender: TObject); |
| 274 |
procedure ResRangeHoldCheckBoxClick(Sender: TObject); |
| 275 |
procedure CroutOptionClick(Sender: TObject); |
| 276 |
procedure MaxRecordCountEditExit(Sender: TObject); |
| 277 |
procedure BoukenDelButtonClick(Sender: TObject); |
| 278 |
procedure BoukenComboBoxChange(Sender: TObject); |
| 279 |
procedure BoukenModButtonClick(Sender: TObject); |
| 280 |
private |
| 281 |
{ Private 鐃緒申鐃緒申 } |
| 282 |
FClose: Boolean; |
| 283 |
FRepaintList: Boolean; |
| 284 |
FRepaintThread: Boolean; |
| 285 |
FCSSFont: TFont; |
| 286 |
FCSSBackColor: TColor; |
| 287 |
FCSSStrings: TStringList; |
| 288 |
function GetMemoText(font: TFont; text: string): string; |
| 289 |
// function GetFontText(Font: TFont; Text: string): string; |
| 290 |
procedure SetValue; |
| 291 |
procedure SaveSetting; |
| 292 |
procedure SettingApply; |
| 293 |
function CheckFolder: Boolean; |
| 294 |
procedure SetAbonpropertys; |
| 295 |
procedure CSSSetContent(Content: string); |
| 296 |
procedure CSSPreview; |
| 297 |
//! CSS鐃?鐃緒申鐃?鐃緒申鐃?鐃?HTMLBody鐃緒申鐃緒申 |
| 298 |
function CreatePreviewBody(Res: array of TResRec): string; |
| 299 |
//! CSS/SKIN鐃?鐃緒申鐃?鐃緒申鐃?鐃?Style鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 300 |
function GetPreviewUserStyle(): string; |
| 301 |
public |
| 302 |
{ Public 鐃緒申鐃緒申 } |
| 303 |
end; |
| 304 |
|
| 305 |
var |
| 306 |
OptionDialog: TOptionDialog; |
| 307 |
|
| 308 |
implementation |
| 309 |
|
| 310 |
uses |
| 311 |
Giko, Editor, Setting, ActnList, KuroutSetting, Math, HTMLCreate; |
| 312 |
|
| 313 |
const |
| 314 |
FONT_TEXT: string = '%s %d pt'; |
| 315 |
MEMO_CABINET: string = '鐃?鐃緒申鐃?鐃?鐃?鐃?'; |
| 316 |
MEMO_THREAD: string = '鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?'; |
| 317 |
MEMO_BROWSERPOPUP: string = '鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?'; |
| 318 |
MEMO_BROWSERTAB: string = '鐃?鐃緒申鐃?鐃?鐃?鐃?'; |
| 319 |
MEMO_EDITOR: string = '鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?'; |
| 320 |
DEFAULT_FONT_NAME: string = '鐃?鐃? 鐃?鐃?鐃?鐃?鐃?'; |
| 321 |
DEFAULT_FONT_SIZE: Integer = 9; |
| 322 |
DEFAULT_TABFONT_NAME: string = '鐃?鐃? 鐃?鐃?鐃?鐃?鐃?'; |
| 323 |
DEFAULT_TABFONT_SIZE: Integer = 9; |
| 324 |
URL_TORA3: WideString = 'http://2ch.tora3.net/'; |
| 325 |
DEFAULT_CSS_FILENAME = 'default.css'; |
| 326 |
|
| 327 |
{$R *.DFM} |
| 328 |
|
| 329 |
procedure TOptionDialog.FormCreate(Sender: TObject); |
| 330 |
begin |
| 331 |
|
| 332 |
CSSBrowser.Navigate('about:blank'); |
| 333 |
FClose := True; |
| 334 |
|
| 335 |
OptionTab.ActivePage := ConnectSheet; |
| 336 |
SetValue; |
| 337 |
|
| 338 |
CabinetMemo.Text := GetMemoText(CabinetMemo.Font, MEMO_CABINET); |
| 339 |
ListMemo.Text := GetMemoText(ListMemo.Font, MEMO_THREAD); |
| 340 |
HintMemo.Text := GetMemoText(HintMemo.Font, MEMO_BROWSERPOPUP); |
| 341 |
BrowserTabMemo.Text := GetMemoText(BrowserTabMemo.Font, MEMO_BROWSERTAB); |
| 342 |
EditorMemo.Text := GetMemoText(EditorMemo.Font, MEMO_EDITOR); |
| 343 |
|
| 344 |
Tora3URLLabel.Cursor := 5; |
| 345 |
lblSFont.Caption := '鐃緒申鐃?鐃?鐃緒申'#13#10#13#10 |
| 346 |
+ '鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?'#13#10 |
| 347 |
+ '鐃?CSS 鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申'; |
| 348 |
|
| 349 |
ForcedLoginLabel.Caption := '- 鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?' + #13#10 |
| 350 |
+ '鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?'; |
| 351 |
CSSCheckBoxClick(Sender); |
| 352 |
BrowserMaxLabel.Caption := |
| 353 |
'鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?'#13#10 + |
| 354 |
'鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?'; |
| 355 |
|
| 356 |
if OptionTab.PageCount > GikoSys.Setting.OptionDialogTabIndex then begin |
| 357 |
OptionTab.ActivePageIndex := GikoSys.Setting.OptionDialogTabIndex; |
| 358 |
OptionTabChange( nil ); |
| 359 |
end; |
| 360 |
|
| 361 |
end; |
| 362 |
|
| 363 |
procedure TOptionDialog.FormDestroy(Sender: TObject); |
| 364 |
begin |
| 365 |
CSSListView.OnChange := nil; |
| 366 |
if FCSSStrings <> nil then |
| 367 |
FCSSStrings.Free; |
| 368 |
if FCSSFont <> nil then |
| 369 |
FCSSFont.Free; |
| 370 |
sndPlaySound(nil, SND_ASYNC); |
| 371 |
|
| 372 |
end; |
| 373 |
|
| 374 |
procedure TOptionDialog.OkBottonClick(Sender: TObject); |
| 375 |
begin |
| 376 |
FClose := True; |
| 377 |
ReadPortEditExit(Sender); |
| 378 |
WritePortEditExit(Sender); |
| 379 |
AddressHistoryCountEditExit(Sender); |
| 380 |
MaxRecordCountEditExit(Sender); |
| 381 |
PreviewWaitEditExit(Sender); |
| 382 |
|
| 383 |
if not CheckFolder then begin |
| 384 |
FClose := False; |
| 385 |
Exit; |
| 386 |
end; |
| 387 |
SetAbonpropertys; |
| 388 |
SaveSetting; |
| 389 |
SettingApply; |
| 390 |
|
| 391 |
end; |
| 392 |
|
| 393 |
procedure TOptionDialog.ApplyButtonClick(Sender: TObject); |
| 394 |
begin |
| 395 |
ReadPortEditExit(Sender); |
| 396 |
WritePortEditExit(Sender); |
| 397 |
AddressHistoryCountEditExit(Sender); |
| 398 |
MaxRecordCountEditExit(Sender); |
| 399 |
PreviewWaitEditExit(Sender); |
| 400 |
|
| 401 |
if not CheckFolder then begin |
| 402 |
FClose := False; |
| 403 |
Exit; |
| 404 |
end; |
| 405 |
SetAbonpropertys; |
| 406 |
SaveSetting; |
| 407 |
SettingApply; |
| 408 |
FClose := False; |
| 409 |
end; |
| 410 |
|
| 411 |
//function TOptionDialog.GetFontText(Font: TFont; Text: string): string; |
| 412 |
//begin |
| 413 |
// result := Format(Text, [Font.Name, Font.Size]); |
| 414 |
//end; |
| 415 |
|
| 416 |
function TOptionDialog.GetMemoText(font: TFont; text: string): string; |
| 417 |
var |
| 418 |
s: string; |
| 419 |
begin |
| 420 |
s := ''; |
| 421 |
if font <> nil then |
| 422 |
s := Format(FONT_TEXT, [Font.Name, Font.Size]) + #13#10; |
| 423 |
Result := s + text; |
| 424 |
end; |
| 425 |
|
| 426 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 427 |
procedure TOptionDialog.CabinetFontBottonClick(Sender: TObject); |
| 428 |
begin |
| 429 |
FontDialog.Options := [fdAnsiOnly, fdEffects]; |
| 430 |
FontDialog.Font.Assign(CabinetMemo.Font); |
| 431 |
if FontDialog.Execute then begin |
| 432 |
FontDialog.Font.Style := FontDialog.Font.Style - [fsUnderline] - [fsStrikeout]; |
| 433 |
CabinetMemo.Font.Assign(FontDialog.Font); |
| 434 |
CabinetMemo.Text := GetMemoText(CabinetMemo.Font, MEMO_CABINET); |
| 435 |
CabinetMemo.Font.Charset := SHIFTJIS_CHARSET; |
| 436 |
end; |
| 437 |
end; |
| 438 |
|
| 439 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 440 |
procedure TOptionDialog.CabinetColorBottonClick(Sender: TObject); |
| 441 |
begin |
| 442 |
ColorDialog.Color := CabinetMemo.Color; |
| 443 |
if ColorDialog.Execute then begin |
| 444 |
CabinetMemo.Color := ColorDialog.Color; |
| 445 |
end; |
| 446 |
end; |
| 447 |
|
| 448 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 449 |
procedure TOptionDialog.CabinetDefaultButtonClick(Sender: TObject); |
| 450 |
begin |
| 451 |
CabinetMemo.Font.Name := DEFAULT_FONT_NAME; |
| 452 |
CabinetMemo.Font.Size := DEFAULT_FONT_SIZE; |
| 453 |
CabinetMemo.Font.Color := clWindowText; |
| 454 |
CabinetMemo.Font.Style := []; |
| 455 |
CabinetMemo.Color := clWindow; |
| 456 |
CabinetMemo.Text := GetMemoText(CabinetMemo.Font, MEMO_CABINET); |
| 457 |
end; |
| 458 |
|
| 459 |
//鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 460 |
procedure TOptionDialog.ListFontBottonClick(Sender: TObject); |
| 461 |
begin |
| 462 |
FontDialog.Options := [fdAnsiOnly, fdEffects]; |
| 463 |
FontDialog.Font.Assign(ListMemo.Font); |
| 464 |
if FontDialog.Execute then begin |
| 465 |
ListMemo.Font.Assign(FontDialog.Font); |
| 466 |
ListMemo.Text := GetMemoText(ListMemo.Font, MEMO_THREAD); |
| 467 |
ListMemo.Font.Charset := SHIFTJIS_CHARSET; |
| 468 |
end; |
| 469 |
end; |
| 470 |
|
| 471 |
//鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 472 |
procedure TOptionDialog.ListColorBottonClick(Sender: TObject); |
| 473 |
begin |
| 474 |
ColorDialog.Color := ListMemo.Color; |
| 475 |
if ColorDialog.Execute then begin |
| 476 |
ListMemo.Color := ColorDialog.Color; |
| 477 |
end; |
| 478 |
end; |
| 479 |
|
| 480 |
//鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 481 |
procedure TOptionDialog.ListDefaultBottonClick(Sender: TObject); |
| 482 |
begin |
| 483 |
ListMemo.Font.Name := DEFAULT_FONT_NAME; |
| 484 |
ListMemo.Font.Size := DEFAULT_FONT_SIZE; |
| 485 |
ListMemo.Font.Color := clWindowText; |
| 486 |
ListMemo.Font.Style := []; |
| 487 |
ListMemo.Color := clWindow; |
| 488 |
ListMemo.Text := GetMemoText(ListMemo.Font, MEMO_THREAD); |
| 489 |
end; |
| 490 |
|
| 491 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 492 |
procedure TOptionDialog.HintFontButtonClick(Sender: TObject); |
| 493 |
begin |
| 494 |
FontDialog.Options := [fdAnsiOnly, fdEffects]; |
| 495 |
FontDialog.Font.Assign(HintMemo.Font); |
| 496 |
if FontDialog.Execute then begin |
| 497 |
HintMemo.Font.Assign(FontDialog.Font); |
| 498 |
HintMemo.Text := GetMemoText(HintMemo.Font, MEMO_BROWSERPOPUP); |
| 499 |
HintMemo.Font.Charset := SHIFTJIS_CHARSET; |
| 500 |
end; |
| 501 |
end; |
| 502 |
|
| 503 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 504 |
procedure TOptionDialog.HintBackButtonClick(Sender: TObject); |
| 505 |
begin |
| 506 |
ColorDialog.Color := HintMemo.Color; |
| 507 |
if ColorDialog.Execute then begin |
| 508 |
HintMemo.Color := ColorDialog.Color; |
| 509 |
end; |
| 510 |
end; |
| 511 |
|
| 512 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 513 |
procedure TOptionDialog.HintDefaultButtonClick(Sender: TObject); |
| 514 |
begin |
| 515 |
HintMemo.Font.Name := DEFAULT_FONT_NAME; |
| 516 |
HintMemo.Font.Size := DEFAULT_FONT_SIZE; |
| 517 |
HintMemo.Font.Color := clWindowText; |
| 518 |
HintMemo.Font.Style := []; |
| 519 |
HintMemo.Color := clInfoBk; |
| 520 |
HintMemo.Text := GetMemoText(HintMemo.Font, MEMO_BROWSERPOPUP); |
| 521 |
end; |
| 522 |
|
| 523 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 524 |
procedure TOptionDialog.BruwserTabFontButtonClick(Sender: TObject); |
| 525 |
begin |
| 526 |
FontDialog.Options := [fdAnsiOnly]; |
| 527 |
FontDialog.Font.Assign(BrowserTabMemo.Font); |
| 528 |
if FontDialog.Execute then begin |
| 529 |
BrowserTabMemo.Font.Assign(FontDialog.Font); |
| 530 |
BrowserTabMemo.Text := GetMemoText(FontDialog.Font, MEMO_BROWSERTAB); |
| 531 |
BrowserTabMemo.Font.Charset := SHIFTJIS_CHARSET; |
| 532 |
end; |
| 533 |
end; |
| 534 |
|
| 535 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 536 |
procedure TOptionDialog.BrowserTabDefaultButtonClick(Sender: TObject); |
| 537 |
begin |
| 538 |
BrowserTabMemo.Font.Name := DEFAULT_TABFONT_NAME; |
| 539 |
BrowserTabMemo.Font.Size := DEFAULT_TABFONT_SIZE; |
| 540 |
BrowserTabMemo.Font.Color := clWindowText; |
| 541 |
BrowserTabMemo.Font.Style := []; |
| 542 |
BrowserTabMemo.Color := clBtnFace; |
| 543 |
BrowserTabMemo.Text := GetMemoText(BrowserTabMemo.Font, MEMO_BROWSERTAB); |
| 544 |
end; |
| 545 |
|
| 546 |
//鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 547 |
procedure TOptionDialog.EditorFontBottonClick(Sender: TObject); |
| 548 |
begin |
| 549 |
FontDialog.Options := [fdAnsiOnly, fdEffects]; |
| 550 |
FontDialog.Font.Assign(EditorMemo.Font); |
| 551 |
if FontDialog.Execute then begin |
| 552 |
EditorMemo.Font.Assign(FontDialog.Font); |
| 553 |
EditorMemo.Text := GetMemoText(EditorMemo.Font, MEMO_EDITOR); |
| 554 |
EditorMemo.Font.Charset := SHIFTJIS_CHARSET; |
| 555 |
end; |
| 556 |
end; |
| 557 |
|
| 558 |
//鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 559 |
procedure TOptionDialog.EditorColorBottonClick(Sender: TObject); |
| 560 |
begin |
| 561 |
ColorDialog.Color := EditorMemo.Font.Color; |
| 562 |
if ColorDialog.Execute then begin |
| 563 |
EditorMemo.Color := ColorDialog.Color; |
| 564 |
end; |
| 565 |
end; |
| 566 |
|
| 567 |
//鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 568 |
procedure TOptionDialog.EditorDefaultBottonClick(Sender: TObject); |
| 569 |
begin |
| 570 |
EditorMemo.Font.Name := DEFAULT_FONT_NAME; |
| 571 |
EditorMemo.Font.Size := DEFAULT_FONT_SIZE; |
| 572 |
EditorMemo.Font.Color := clWindowText; |
| 573 |
EditorMemo.Font.Style := []; |
| 574 |
EditorMemo.Color := clWindow; |
| 575 |
EditorMemo.Text := GetMemoText(EditorMemo.Font, MEMO_EDITOR); |
| 576 |
end; |
| 577 |
|
| 578 |
procedure TOptionDialog.SetValue; |
| 579 |
var |
| 580 |
i: Integer; |
| 581 |
Item: TListItem; |
| 582 |
// s: string; |
| 583 |
idx: Integer; |
| 584 |
FileList : TStringList; |
| 585 |
DomainList : TStringList; |
| 586 |
begin |
| 587 |
|
| 588 |
//鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃? |
| 589 |
ReadProxyCheck.Checked := GikoSys.Setting.ReadProxy; |
| 590 |
ReadProxyCheckClick(nil); |
| 591 |
ReadProxyAddressEdit.Text := GikoSys.Setting.ReadProxyAddress; |
| 592 |
ReadPortEdit.Text := IntToStr(GikoSys.Setting.ReadProxyPort); |
| 593 |
ReadProxyUserIDEdit.Text := GikoSys.Setting.ReadProxyUserID; |
| 594 |
ReadProxyPasswordEdit.Text := GikoSys.Setting.ReadProxyPassword; |
| 595 |
//鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃? |
| 596 |
WriteProxyCheck.Checked := GikoSys.Setting.WriteProxy; |
| 597 |
WriteProxyCheckClick(nil); |
| 598 |
WriteProxyAddressEdit.Text := GikoSys.Setting.WriteProxyAddress; |
| 599 |
WritePortEdit.Text := IntToStr(GikoSys.Setting.WriteProxyPort); |
| 600 |
WriteProxyUserIDEdit.Text := GikoSys.Setting.WriteProxyUserID; |
| 601 |
WriteProxyPasswordEdit.Text := GikoSys.Setting.WriteProxyPassword; |
| 602 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 603 |
CabinetMemo.Font.Name := GikoSys.Setting.CabinetFontName; |
| 604 |
CabinetMemo.Font.Size := GikoSys.Setting.CabinetFontSize; |
| 605 |
CabinetMemo.Font.Color := GikoSys.Setting.CabinetFontColor; |
| 606 |
CabinetMemo.Font.Style := []; |
| 607 |
if GikoSys.Setting.CabinetFontBold then |
| 608 |
CabinetMemo.Font.Style := [fsBold]; |
| 609 |
if GikoSys.Setting.CabinetFontItalic then |
| 610 |
CabinetMemo.Font.Style := CabinetMemo.Font.Style + [fsItalic]; |
| 611 |
CabinetMemo.Color := GikoSys.Setting.CabinetBackColor; |
| 612 |
|
| 613 |
//鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 614 |
ListMemo.Font.Name := GikoSys.Setting.ListFontName; |
| 615 |
ListMemo.Font.Size := GikoSys.Setting.ListFontSize; |
| 616 |
ListMemo.Font.Color := GikoSys.Setting.ListFontColor; |
| 617 |
ListMemo.Font.Style := []; |
| 618 |
if GikoSys.Setting.ListFontBold then |
| 619 |
ListMemo.Font.Style := ListMemo.Font.Style + [fsBold]; |
| 620 |
if GikoSys.Setting.ListFontItalic then |
| 621 |
ListMemo.Font.Style := ListMemo.Font.Style + [fsItalic]; |
| 622 |
|
| 623 |
ListMemo.Color := GikoSys.Setting.ListBackColor; |
| 624 |
//鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 625 |
OddResNumCheckBox.Checked := GikoSys.Setting.UseOddColorOddResNum; |
| 626 |
OddResNumColorBox.Selected := GikoSys.Setting.OddColor; |
| 627 |
OddResNumColorBox.Enabled := OddResNumCheckBox.Checked; |
| 628 |
UnFocusedBoldCheckBox.Checked := GikoSys.Setting.UnFocusedBold; |
| 629 |
UnFocusedBoldCheckBox.Enabled := OddResNumCheckBox.Checked; |
| 630 |
|
| 631 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 632 |
HintMemo.Font.Name := GikoSys.Setting.HintFontName; |
| 633 |
HintMemo.Font.Size := GikoSys.Setting.HintFontSize; |
| 634 |
HintMemo.Font.Color := GikoSys.Setting.HintFontColor; |
| 635 |
HintMemo.Color := GikoSys.Setting.HintBackColor; |
| 636 |
//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 637 |
BrowserTabMemo.Font.Name := GikoSys.Setting.BrowserTabFontName; |
| 638 |
BrowserTabMemo.Font.Size := GikoSys.Setting.BrowserTabFontSize; |
| 639 |
BrowserTabMemo.Font.Style := []; |
| 640 |
if GikoSys.Setting.BrowserTabFontBold then |
| 641 |
BrowserTabMemo.Font.Style := BrowserTabMemo.Font.Style + [fsBold]; |
| 642 |
if GikoSys.Setting.BrowserTabFontItalic then |
| 643 |
BrowserTabMemo.Font.Style := BrowserTabMemo.Font.Style + [fsItalic]; |
| 644 |
//鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃? |
| 645 |
EditorMemo.Font.Name := GikoSys.Setting.EditorFontName; |
| 646 |
EditorMemo.Font.Size := GikoSys.Setting.EditorFontSize; |
| 647 |
EditorMemo.Font.Color := GikoSys.Setting.EditorFontColor; |
| 648 |
EditorMemo.Color := GikoSys.Setting.EditorBackColor; |
| 649 |
//CSS鐃?鐃緒申 |
| 650 |
CSSCheckBox.Checked := GikoSys.Setting.UseCSS; |
| 651 |
//鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃? |
| 652 |
UseKatjuTypeSkinCheckBox.Checked := GikoSys.Setting.UseKatjushaType; |
| 653 |
if FCSSFont <> nil then |
| 654 |
FCSSFont.Free; |
| 655 |
FCSSFont := TFont.Create; |
| 656 |
if (GikoSys.Setting.BrowserFontName <> '') or |
| 657 |
(GikoSys.Setting.BrowserFontSize <> 0) or |
| 658 |
(GikoSys.Setting.BrowserFontBold <> 0) or |
| 659 |
(GikoSys.Setting.BrowserFontItalic <> 0) or |
| 660 |
(GikoSys.Setting.BrowserFontColor <> -1 ) then begin |
| 661 |
CSSFontCheckBox.Checked := True; |
| 662 |
FCSSFont.Name := GikoSys.Setting.BrowserFontName; |
| 663 |
FCSSFont.Size := GikoSys.Setting.BrowserFontSize; |
| 664 |
FCSSFont.Style := []; |
| 665 |
if GikoSys.Setting.BrowserFontBold = 1 then |
| 666 |
FCSSFont.Style := FCSSFont.Style + [fsBold]; |
| 667 |
if GikoSys.Setting.BrowserFontItalic = 1 then |
| 668 |
FCSSFont.Style := FCSSFont.Style + [fsItalic]; |
| 669 |
i := GikoSys.Setting.BrowserFontColor; |
| 670 |
i := (i shr 16) or (i and $ff00) or ((i and $ff) shl 16); |
| 671 |
FCSSFont.Color := i; |
| 672 |
end; |
| 673 |
if GikoSys.Setting.BrowserBackColor <> -1 then begin |
| 674 |
CSSBackColorCheckBox.Checked := True; |
| 675 |
|
| 676 |
i := GikoSys.Setting.BrowserBackColor; |
| 677 |
i := (i shr 16) or (i and $ff00) or ((i and $ff) shl 16); |
| 678 |
FCSSBackColor := i; |
| 679 |
end; |
| 680 |
// |
| 681 |
//鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申 |
| 682 |
FileList := TStringList.Create; |
| 683 |
try |
| 684 |
FileList.BeginUpdate; |
| 685 |
GikoSys.GetFileList(GikoSys.GetStyleSheetDir, '*.css', FileList, True, True); |
| 686 |
FileList.EndUpdate; |
| 687 |
Idx := Length(GikoSys.GetStyleSheetDir); |
| 688 |
for i := 0 to FileList.Count - 1 do |
| 689 |
FileList[i] := Copy(FileList[i], Idx + 1, Length(FileList[i])); |
| 690 |
FileList.Sort; |
| 691 |
for i := 0 to FileList.Count - 1 do begin |
| 692 |
//s := ExtractFileName(FileList[i]); |
| 693 |
if LowerCase(FileList[i]) = DEFAULT_CSS_FILENAME then |
| 694 |
Item := CSSListView.Items.Insert(0) |
| 695 |
else |
| 696 |
Item := CSSListView.Items.Add; |
| 697 |
Item.Caption := ChangeFileExt(FileList[i], ''); |
| 698 |
if LowerCase(FileList[i]) = LowerCase(GikoSys.Setting.CSSFileName) then |
| 699 |
Item.Selected := True; |
| 700 |
end; |
| 701 |
finally |
| 702 |
FileList.Free; |
| 703 |
end; |
| 704 |
//鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申 |
| 705 |
//FileList := TStringList.Create; |
| 706 |
if FCSSStrings <> nil then |
| 707 |
FCSSStrings.Clear; |
| 708 |
FCSSStrings := TStringList.Create; |
| 709 |
try |
| 710 |
GikoSys.GetDirectoryList(GikoSys.GetSkinDir, '*', FCSSStrings, False); |
| 711 |
|
| 712 |
Idx := Length(GikoSys.GetSkinDir); |
| 713 |
FCSSStrings.Sort; |
| 714 |
for i := 0 to FCSSStrings.Count - 1 do begin |
| 715 |
Item := CSSListView.Items.Add; |
| 716 |
Item.Data := PChar( FCSSStrings[i] ); |
| 717 |
Item.Caption := Copy( FCSSStrings[i], Idx + 1, Length(FCSSStrings[i]) ); |
| 718 |
if LowerCase(FCSSStrings[i]) = LowerCase(GikoSys.Setting.CSSFileName) then |
| 719 |
Item.Selected := True; |
| 720 |
end; |
| 721 |
finally |
| 722 |
end; |
| 723 |
|
| 724 |
if (CSSListView.ItemIndex = -1) and (CSSListView.Items.Count > 0) then |
| 725 |
CSSListView.Items[0].Selected := True; |
| 726 |
|
| 727 |
//Mail鐃緒申鐃?鐃緒申 |
| 728 |
ShowMailCheckBox.Checked := GikoSys.Setting.ShowMail; |
| 729 |
|
| 730 |
// 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 731 |
ResRangeHoldCheckBox.Checked := GikoSys.Setting.ResRangeHold; |
| 732 |
case GikoSys.Setting.ResRange of |
| 733 |
Ord( grrAll ): ResRangeHoldComboBox.ItemIndex := 0; |
| 734 |
Ord( grrKoko ): ResRangeHoldComboBox.ItemIndex := 2; |
| 735 |
Ord( grrNew ): ResRangeHoldComboBox.ItemIndex := 3; |
| 736 |
10..65535: ResRangeHoldComboBox.ItemIndex := 1; |
| 737 |
end; |
| 738 |
ResRangeHoldComboBox.Enabled := GikoSys.Setting.ResRangeHold; |
| 739 |
//鐃?鐃?鐃緒申鐃緒申鐃緒申鐃? |
| 740 |
TabAddRadioGroup.ItemIndex := Ord(GikoSys.Setting.BrowserTabAppend); |
| 741 |
//鐃緒申鐃?鐃?URL |
| 742 |
//BoardURL2chEdit.Text := GikoSys.Setting.BoardURL2ch; |
| 743 |
BoardURLComboBox.Clear; |
| 744 |
BoardURLComboBox.Items.AddStrings(GikoSys.Setting.BoardURLs); |
| 745 |
try |
| 746 |
BoardURLComboBox.ItemIndex := GikoSys.Setting.BoardURLSelected - 1; |
| 747 |
except |
| 748 |
BoardURLComboBox.ItemIndex := 0; |
| 749 |
end; |
| 750 |
//鐃?鐃緒申 |
| 751 |
UserIDEdit.Text := GikoSys.Setting.UserID; |
| 752 |
PasswordEdit.Text := GikoSys.Setting.Password; |
| 753 |
AutoLoginCheckBox.Checked := GikoSys.Setting.AutoLogin; |
| 754 |
ForcedLoginCheckBox.Checked := GikoSys.Setting.ForcedLogin; |
| 755 |
//鐃緒申鐃?鐃?鐃?鐃緒申鐃? |
| 756 |
if GikoSys.Setting.NewLogFolder = '' then |
| 757 |
LogFolderEdit.Text := GikoSys.Setting.LogFolder |
| 758 |
else |
| 759 |
LogFolderEdit.Text := GikoSys.Setting.NewLogFolder; |
| 760 |
//鐃?鐃?鐃緒申鐃? |
| 761 |
for i := 0 to GikoSys.Setting.GetSoundCount - 1 do begin |
| 762 |
Item := SoundListView.Items.Add; |
| 763 |
Item.Caption := GikoSys.Setting.SoundViewName[i]; |
| 764 |
if FileExists(GikoSys.Setting.SoundFileName[i]) then |
| 765 |
Item.SubItems.Add(GikoSys.Setting.SoundFileName[i]) |
| 766 |
else |
| 767 |
Item.SubItems.Add(''); |
| 768 |
end; |
| 769 |
//URL鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申 |
| 770 |
URLAppCheckBox.Checked := GikoSys.Setting.URLApp; |
| 771 |
URLAppCheckBoxClick(nil); |
| 772 |
AppFolderEdit.Text := GikoSys.Setting.URLAppFile; |
| 773 |
|
| 774 |
//mailto鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申 |
| 775 |
OpenMailerCheckBox.Checked := GikoSys.Setting.OpenMailer; |
| 776 |
|
| 777 |
//鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃? |
| 778 |
LogDeleteMessageCheckBox.Checked := GikoSys.Setting.DeleteMsg; |
| 779 |
//鐃緒申ID鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃? |
| 780 |
IgnoreLimitResCountCheckBox.Checked := GikoSys.Setting.LimitResCountMessage; |
| 781 |
|
| 782 |
//鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 783 |
ShowDialogForEndCheckBox.Checked := GikoSys.Setting.ShowDialogForEnd; |
| 784 |
//AllTabClose |
| 785 |
AllTabCloseCheckBox.Checked := GikoSys.Setting.ShowDialogForAllTabClose; |
| 786 |
//Samba |
| 787 |
UseSambaCheckBox.Checked := GikoSys.Setting.UseSamba; |
| 788 |
ResAnchorCheckBox.Checked := GikoSys.Setting.ResAnchorJamp; |
| 789 |
// 鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申 |
| 790 |
BrowserMaxCombo.ItemIndex := Ord( GikoSys.Setting.BrowserAutoMaximize ); |
| 791 |
//鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 792 |
case GikoSys.Setting.PopupPosition of |
| 793 |
gppRightTop: gppRightTopRB.Checked := True; |
| 794 |
gppRight: gppRightRB.Checked := True; |
| 795 |
gppRightBottom: gppRighBottomRB.Checked := True; |
| 796 |
gppTop: gppTopRB.Checked := True; |
| 797 |
gppCenter: gppTopRB.Checked := True; // 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 798 |
gppBottom: gppBottomRB.Checked := True; |
| 799 |
gppLeftTop: gppLeftTopRB.Checked := True; |
| 800 |
gppLeft: gppLeftRB.Checked := True; |
| 801 |
gppLeftBottom: gppLeftBottomRB.Checked := True; |
| 802 |
end; |
| 803 |
|
| 804 |
//鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 805 |
UnActivePopupCheckBox.Checked := GikoSys.Setting.UnActivePopup; |
| 806 |
//鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申 |
| 807 |
ResPopupBoldCheckBox.Checked := GikoSys.Setting.ResPopupHeaderBold; |
| 808 |
|
| 809 |
//鐃?鐃?鐃緒申鐃?鐃?鐃? |
| 810 |
URLDisplayCheckBox.Checked := GikoSys.Setting.URLDisplay; |
| 811 |
TabStopAddressBarCheckBox.Checked := GikoSys.Setting.AddressBarTabStop; |
| 812 |
LinkAddCheckBox.Checked := GikoSys.Setting.LinkAddAddressBar; |
| 813 |
AddressHistoryCountEdit.Text := IntToStr(GikoSys.Setting.AddressHistoryCount); |
| 814 |
|
| 815 |
//HTML鐃?鐃緒申鐃?鐃緒申鐃? |
| 816 |
PreviewVisibleCheckBox.Checked := GikoSys.Setting.PreviewVisible; |
| 817 |
PreviewWaitEdit.Text := IntToStr(GikoSys.Setting.PreviewWait); |
| 818 |
PreviewSizeComboBox.ItemIndex := 2; |
| 819 |
case GikoSys.Setting.PreviewSize of |
| 820 |
gpsXLarge: PreviewSizeComboBox.ItemIndex := 4; |
| 821 |
gpsLarge: PreviewSizeComboBox.ItemIndex := 3; |
| 822 |
gpsMedium: PreviewSizeComboBox.ItemIndex := 2; |
| 823 |
gpsSmall: PreviewSizeComboBox.ItemIndex := 1; |
| 824 |
gpsXSmall: PreviewSizeComboBox.ItemIndex := 0; |
| 825 |
end; |
| 826 |
|
| 827 |
//鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 828 |
ThreadListIconCheckBox.Checked := GikoSys.Setting.ListIconVisible; |
| 829 |
CreationTimeLogsCheckBox.Checked := GikoSys.Setting.CreationTimeLogs; |
| 830 |
FutureThreadCheckBox.Checked := GikoSys.Setting.FutureThread; |
| 831 |
SelectIntervalEdit.Text := IntToStr(GikoSys.Setting.SelectInterval); |
| 832 |
|
| 833 |
//dat鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 834 |
case TGikoBoardColumnID( GikoSys.Setting.DatOchiSortIndex ) of |
| 835 |
gbcTitle: |
| 836 |
if GikoSys.Setting.DatOchiSortOrder then |
| 837 |
DatOchiSortCombo.ItemIndex := 1 |
| 838 |
else |
| 839 |
DatOchiSortCombo.ItemIndex := 2; |
| 840 |
gbcRoundDate://gbcLastModified: |
| 841 |
if GikoSys.Setting.DatOchiSortOrder then |
| 842 |
DatOchiSortCombo.ItemIndex := 3 |
| 843 |
else |
| 844 |
DatOchiSortCombo.ItemIndex := 4; |
| 845 |
gbcCreated: |
| 846 |
if GikoSys.Setting.DatOchiSortOrder then |
| 847 |
DatOchiSortCombo.ItemIndex := 5 |
| 848 |
else |
| 849 |
DatOchiSortCombo.ItemIndex := 6; |
| 850 |
gbcLastModified: |
| 851 |
if GikoSys.Setting.DatOchiSortOrder then |
| 852 |
DatOchiSortCombo.ItemIndex := 7 |
| 853 |
else |
| 854 |
DatOchiSortCombo.ItemIndex := 8; |
| 855 |
else |
| 856 |
DatOchiSortCombo.ItemIndex := 0; |
| 857 |
end; |
| 858 |
AutoSortCheckBox.Checked := GikoSys.Setting.AutoSortThreadList; |
| 859 |
|
| 860 |
//鐃緒申鐃緒申鐃?鐃緒申 |
| 861 |
RloCheckBox.Checked := GikoSys.Setting.AbonDeleterlo; |
| 862 |
ReplaceulCheckBox.Checked := GikoSys.Setting.AbonReplaceul; |
| 863 |
PopUpAbonCheckBox.Checked := GikoSys.Setting.PopUpAbon; |
| 864 |
ShowNGLineCheckBox.Checked := GikoSys.Setting.ShowNGLinesNum; |
| 865 |
AddResAnchorCheckBox.Checked := GikoSys.Setting.AddResAnchor; |
| 866 |
DeleteSyriaCheckBox.Checked := GikoSys.Setting.DeleteSyria; |
| 867 |
IgnoreKanaCheckBox.Checked := GikoSys.Setting.IgnoreKana; |
| 868 |
{$IFDEF SPAM_FILTER_ENABLED} |
| 869 |
// 鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申 |
| 870 |
SpamFilterGroupBox.Visible := True; |
| 871 |
{$ENDIF} |
| 872 |
// 鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃? |
| 873 |
{$IFDEF DEBUG} |
| 874 |
SpamFilterAlgorithmComboBox.Clear; |
| 875 |
SpamFilterAlgorithmComboBox.AddItem( '鐃?鐃?鐃緒申鐃緒申鐃緒申', nil ); |
| 876 |
SpamFilterAlgorithmComboBox.AddItem( 'Paul Graham 鐃?', nil ); |
| 877 |
SpamFilterAlgorithmComboBox.AddItem( 'Gary Robinson 鐃?', nil ); |
| 878 |
SpamFilterAlgorithmComboBox.AddItem( 'Gary Robinson-Fisher 鐃?', nil ); |
| 879 |
{$ENDIF} |
| 880 |
SpamFilterAlgorithmComboBox.ItemIndex := |
| 881 |
Ord( GikoSys.Setting.SpamFilterAlgorithm ); |
| 882 |
|
| 883 |
//TabAutoLoad |
| 884 |
TabLoadSave.Checked := Gikosys.Setting.TabAutoLoadSave; |
| 885 |
UseUndecidedCheckBox.Checked := GikoSys.Setting.UseUndecided; |
| 886 |
|
| 887 |
//Be2ch鐃?鐃緒申 |
| 888 |
BeUserIDEdit.Text := GikoSys.Setting.BeUserID; |
| 889 |
BeCodeEdit.Text := GikoSys.Setting.BePassword; |
| 890 |
BeAutoLoginCheckBox.Checked := GikoSys.Setting.BeAutoLogin; |
| 891 |
//鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 892 |
MaxRecordCountEdit.Text := IntToStr(GikoSys.Setting.MaxRecordCount); |
| 893 |
// 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申 |
| 894 |
StoredTaskTrayCB.Checked := GikoSys.Setting.StoredTaskTray; |
| 895 |
// 鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 896 |
LoopBrowserTabsCB.Checked := GikoSys.Setting.LoopBrowserTabs; |
| 897 |
// |
| 898 |
IgnoreContextCheckBox.Checked := GikoSys.Setting.GestureIgnoreContext; |
| 899 |
|
| 900 |
// 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 901 |
BoukenComboBox.Text := ''; |
| 902 |
BoukenComboBox.Items.Clear; |
| 903 |
DomainList := TStringList.Create; |
| 904 |
GikoSys.GetBoukenDomain(DomainList); |
| 905 |
for i := 0 to DomainList.Count - 1 do begin |
| 906 |
BoukenComboBox.Items.Add( DomainList[i] ) ; |
| 907 |
end; |
| 908 |
DomainList.Free; |
| 909 |
BoukenComboBox.ItemIndex := 0; |
| 910 |
BoukenComboBox.OnChange(nil); |
| 911 |
end; |
| 912 |
|
| 913 |
procedure TOptionDialog.SaveSetting; |
| 914 |
var |
| 915 |
i: Integer; |
| 916 |
tmp: string; |
| 917 |
// Item: TListItem; |
| 918 |
begin |
| 919 |
GikoSys.Setting.OptionDialogTabIndex := OptionTab.TabIndex; |
| 920 |
|
| 921 |
GikoSys.Setting.ReadProxy := ReadProxyCheck.Checked; |
| 922 |
GikoSys.Setting.ReadProxyAddress := ReadProxyAddressEdit.Text; |
| 923 |
GikoSys.Setting.ReadProxyPort := StrToInt(ReadPortEdit.Text); |
| 924 |
GikoSys.Setting.ReadProxyUserID := ReadProxyUserIDEdit.Text; |
| 925 |
GikoSys.Setting.ReadProxyPassword := ReadProxyPasswordEdit.Text; |
| 926 |
|
| 927 |
GikoSys.Setting.WriteProxy := WriteProxyCheck.Checked; |
| 928 |
GikoSys.Setting.WriteProxyAddress := WriteProxyAddressEdit.Text; |
| 929 |
GikoSys.Setting.WriteProxyPort := StrToInt(WritePortEdit.Text); |
| 930 |
GikoSys.Setting.WriteProxyUserID := WriteProxyUserIDEdit.Text; |
| 931 |
GikoSys.Setting.WriteProxyPassword := WriteProxyPasswordEdit.Text; |
| 932 |
|
| 933 |
GikoSys.Setting.CabinetFontName := CabinetMemo.Font.Name; |
| 934 |
GikoSys.Setting.CabinetFontSize := CabinetMemo.Font.Size; |
| 935 |
GikoSys.Setting.CabinetFontColor := CabinetMemo.Font.Color; |
| 936 |
GikoSys.Setting.CabinetFontBold := fsBold in CabinetMemo.Font.Style; |
| 937 |
GikoSys.Setting.CabinetFontItalic:= fsItalic in CabinetMemo.Font.Style; |
| 938 |
GikoSys.Setting.CabinetBackColor := CabinetMemo.Color; |
| 939 |
|
| 940 |
GikoSys.Setting.ListFontName := ListMemo.Font.Name; |
| 941 |
GikoSys.Setting.ListFontSize := ListMemo.Font.Size; |
| 942 |
GikoSys.Setting.ListFontColor := ListMemo.Font.Color; |
| 943 |
GikoSys.Setting.ListFontBold := fsBold in ListMemo.Font.Style; |
| 944 |
GikoSys.Setting.ListFontItalic := fsItalic in ListMemo.Font.Style; |
| 945 |
GikoSys.Setting.ListBackColor := ListMemo.Color; |
| 946 |
GikoSys.Setting.UseOddColorOddResNum := OddResNumCheckBox.Checked; |
| 947 |
GikoSys.Setting.OddColor := OddResNumColorBox.Selected; |
| 948 |
GikoSys.Setting.UnFocusedBold := (UnFocusedBoldCheckBox.Enabled) and |
| 949 |
(UnFocusedBoldCheckBox.Checked); |
| 950 |
|
| 951 |
GikoSys.Setting.HintFontName := HintMemo.Font.Name; |
| 952 |
GikoSys.Setting.HintFontSize := HintMemo.Font.Size; |
| 953 |
GikoSys.Setting.HintFontColor := HintMemo.Font.Color; |
| 954 |
GikoSys.Setting.HintBackColor := HintMemo.Color; |
| 955 |
|
| 956 |
GikoSys.Setting.BrowserTabFontName := BrowserTabMemo.Font.Name; |
| 957 |
GikoSys.Setting.BrowserTabFontSize := BrowserTabMemo.Font.Size; |
| 958 |
GikoSys.Setting.BrowserTabFontBold := fsBold in BrowserTabMemo.Font.Style; |
| 959 |
GikoSys.Setting.BrowserTabFontItalic := fsItalic in BrowserTabMemo.Font.Style; |
| 960 |
GikoSys.Setting.EditorFontName := EditorMemo.Font.Name; |
| 961 |
GikoSys.Setting.EditorFontSize := EditorMemo.Font.Size; |
| 962 |
GikoSys.Setting.EditorFontColor := EditorMemo.Font.Color; |
| 963 |
GikoSys.Setting.EditorBackColor := EditorMemo.Color; |
| 964 |
{FRepaintThread : 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申 |
| 965 |
鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?true鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申 |
| 966 |
鐃?鐃緒申鐃?鐃?鐃緒申Repaint鐃緒申true鐃緒申鐃緒申鐃緒申 |
| 967 |
} |
| 968 |
//CSS鐃?鐃緒申 |
| 969 |
if GikoSys.Setting.UseCSS <> CSSCheckBox.Checked then FRepaintThread := true; |
| 970 |
GikoSys.Setting.UseCSS := CSSCheckBox.Checked; |
| 971 |
GikoSys.Setting.UseKatjushaType := UseKatjuTypeSkinCheckBox.Checked; |
| 972 |
//CSS鐃?鐃?鐃?鐃緒申鐃緒申 |
| 973 |
tmp := GikoSys.Setting.CSSFileName; |
| 974 |
GikoSys.Setting.CSSFileName := DEFAULT_CSS_FILENAME; |
| 975 |
if CSSListView.Items.Count > 0 then begin |
| 976 |
try |
| 977 |
if CSSListView.Items[CSSListView.ItemIndex].Data <> nil then |
| 978 |
GikoSys.Setting.CSSFileName := string( CSSListView.Items[CSSListView.ItemIndex].data ) |
| 979 |
else |
| 980 |
GikoSys.Setting.CSSFileName := CSSListView.Items[CSSListView.ItemIndex].Caption + '.css'; |
| 981 |
except |
| 982 |
end; |
| 983 |
end; |
| 984 |
if tmp <> GikoSys.Setting.CSSFileName then FRepaintThread := true; |
| 985 |
// CSS 鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申 |
| 986 |
if CSSFontCheckBox.Checked then begin |
| 987 |
if GikoSys.Setting.BrowserFontName <> FCSSFont.Name then FRepaintThread := true; |
| 988 |
GikoSys.Setting.BrowserFontName := FCSSFont.Name; |
| 989 |
if GikoSys.Setting.BrowserFontSize <> FCSSFont.Size then FRepaintThread := true; |
| 990 |
GikoSys.Setting.BrowserFontSize := FCSSFont.Size; |
| 991 |
if fsBold in FCSSFont.Style then begin |
| 992 |
if GikoSys.Setting.BrowserFontBold <> 1 then FRepaintThread := true; |
| 993 |
GikoSys.Setting.BrowserFontBold := 1; |
| 994 |
end else begin |
| 995 |
if GikoSys.Setting.BrowserFontBold <> -1 then FRepaintThread := true; |
| 996 |
GikoSys.Setting.BrowserFontBold := -1; |
| 997 |
end; |
| 998 |
if fsItalic in FCSSFont.Style then begin |
| 999 |
if GikoSys.Setting.BrowserFontItalic <> 1 then FRepaintThread := true; |
| 1000 |
GikoSys.Setting.BrowserFontItalic := 1; |
| 1001 |
end else begin |
| 1002 |
if GikoSys.Setting.BrowserFontItalic <> -1 then FRepaintThread := true; |
| 1003 |
GikoSys.Setting.BrowserFontItalic := -1; |
| 1004 |
end; |
| 1005 |
i := ColorToRGB( FCSSFont.Color ); |
| 1006 |
if (GikoSys.Setting.BrowserFontColor <> (i shr 16) or (i and $ff00) or ((i and $ff) shl 16)) then |
| 1007 |
FRepaintThread := true; |
| 1008 |
GikoSys.Setting.BrowserFontColor := (i shr 16) or (i and $ff00) or ((i and $ff) shl 16); |
| 1009 |
end else begin |
| 1010 |
if GikoSys.Setting.BrowserFontName <> '' then FRepaintThread := true; |
| 1011 |
GikoSys.Setting.BrowserFontName := ''; |
| 1012 |
if GikoSys.Setting.BrowserFontSize <> 0 then FRepaintThread := true; |
| 1013 |
GikoSys.Setting.BrowserFontSize := 0; |
| 1014 |
if GikoSys.Setting.BrowserFontBold <> 0 then FRepaintThread := true; |
| 1015 |
GikoSys.Setting.BrowserFontBold := 0; |
| 1016 |
if GikoSys.Setting.BrowserFontItalic <> 0 then FRepaintThread := true; |
| 1017 |
GikoSys.Setting.BrowserFontItalic := 0; |
| 1018 |
if GikoSys.Setting.BrowserFontColor <> -1 then FRepaintThread := true; |
| 1019 |
GikoSys.Setting.BrowserFontColor := -1; |
| 1020 |
end; |
| 1021 |
if CSSBackColorCheckBox.Checked then begin |
| 1022 |
i := ColorToRGB( FCSSBackColor ); |
| 1023 |
if(GikoSys.Setting.BrowserBackColor <> (i shr 16) or (i and $ff00) or ((i and $ff) shl 16)) then |
| 1024 |
FRepaintThread := true; |
| 1025 |
GikoSys.Setting.BrowserBackColor := (i shr 16) or (i and $ff00) or ((i and $ff) shl 16); |
| 1026 |
end else begin |
| 1027 |
if GikoSys.Setting.BrowserBackColor <> -1 then FRepaintThread := true; |
| 1028 |
GikoSys.Setting.BrowserBackColor := -1; |
| 1029 |
end; |
| 1030 |
|
| 1031 |
//Mail鐃緒申鐃?鐃緒申 |
| 1032 |
if GikoSys.Setting.ShowMail <> ShowMailCheckBox.Checked then FRepaintThread := true; |
| 1033 |
GikoSys.Setting.ShowMail := ShowMailCheckBox.Checked; |
| 1034 |
// 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 1035 |
GikoSys.Setting.ResRangeHold := ResRangeHoldCheckBox.Checked; |
| 1036 |
case ResRangeHoldComboBox.ItemIndex of |
| 1037 |
0: GikoSys.Setting.ResRange := Ord( grrAll ); |
| 1038 |
1: GikoSys.Setting.ResRange := GikoSys.Setting.ResRangeExCount; |
| 1039 |
2: GikoSys.Setting.ResRange := Ord( grrKoko ); |
| 1040 |
3: GikoSys.Setting.ResRange := Ord( grrNew ); |
| 1041 |
end; |
| 1042 |
|
| 1043 |
GikoSys.Setting.BrowserTabAppend := TGikoTabAppend(TabAddRadioGroup.ItemIndex); |
| 1044 |
|
| 1045 |
// GikoSys.Setting.BoardURL2ch := BoardURL2chEdit.Text; |
| 1046 |
GikoSys.Setting.BoardURLs.Clear; |
| 1047 |
GikoSys.Setting.BoardURLs.AddStrings(BoardURLComboBox.Items); |
| 1048 |
GikoSys.Setting.BoardURLSelected := BoardURLComboBox.ItemIndex + 1; |
| 1049 |
GikoSys.Setting.UserID := UserIDEdit.Text; |
| 1050 |
GikoSys.Setting.Password := PasswordEdit.Text; |
| 1051 |
GikoSys.Setting.AutoLogin := AutoLoginCheckBox.Checked; |
| 1052 |
GikoSys.Setting.ForcedLogin := ForcedLoginCheckBox.Checked; |
| 1053 |
GikoSys.Setting.URLApp := URLAppCheckBox.Checked; |
| 1054 |
GikoSys.Setting.URLAppFile := AppFolderEdit.Text; |
| 1055 |
|
| 1056 |
GikoSys.Setting.OpenMailer := OpenMailerCheckBox.Checked; |
| 1057 |
GikoSys.Setting.DeleteMsg := LogDeleteMessageCheckBox.Checked; |
| 1058 |
GikoSys.Setting.LimitResCountMessage := IgnoreLimitResCountCheckBox.Checked; |
| 1059 |
|
| 1060 |
//鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 1061 |
GikoSys.Setting.ShowDialogForEnd := ShowDialogForEndCheckBox.Checked; |
| 1062 |
//AllTabClose |
| 1063 |
GikoSys.Setting.ShowDialogForAllTabClose := AllTabCloseCheckBox.Checked; |
| 1064 |
//Samba |
| 1065 |
GikoSys.Setting.UseSamba := UseSambaCheckBox.Checked; |
| 1066 |
GikoSys.Setting.ResAnchorJamp := ResAnchorCheckBox.Checked; |
| 1067 |
// 鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申 |
| 1068 |
GikoSys.Setting.BrowserAutoMaximize := TGikoBrowserAutoMaximize( BrowserMaxCombo.ItemIndex ); |
| 1069 |
//鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃? |
| 1070 |
if (gppRightTopRB.Checked) then GikoSys.Setting.PopupPosition := gppRightTop; |
| 1071 |
if (gppRightRB.Checked) then GikoSys.Setting.PopupPosition := gppRight; |
| 1072 |
if (gppRighBottomRB.Checked) then GikoSys.Setting.PopupPosition := gppRightBottom; |
| 1073 |
if (gppTopRB.Checked) then GikoSys.Setting.PopupPosition := gppTop; |
| 1074 |
if (gppBottomRB.Checked) then GikoSys.Setting.PopupPosition := gppBottom; |
| 1075 |
if (gppLeftTopRB.Checked) then GikoSys.Setting.PopupPosition := gppLeftTop; |
| 1076 |
if (gppLeftRB.Checked) then GikoSys.Setting.PopupPosition := gppLeft; |
| 1077 |
if (gppLeftBottomRB.Checked) then GikoSys.Setting.PopupPosition := gppLeftBottom; |
| 1078 |
//鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 1079 |
GikoSys.Setting.UnActivePopup := UnActivePopupCheckBox.Checked; |
| 1080 |
//鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申 |
| 1081 |
GikoSys.Setting.ResPopupHeaderBold := ResPopupBoldCheckBox.Checked; |
| 1082 |
|
| 1083 |
//鐃?鐃?鐃緒申鐃?鐃?鐃? |
| 1084 |
GikoSys.Setting.URLDisplay := URLDisplayCheckBox.Checked; |
| 1085 |
GikoSys.Setting.AddressBarTabStop := TabStopAddressBarCheckBox.Checked; |
| 1086 |
GikoSys.Setting.LinkAddAddressBar := LinkAddCheckBox.Checked; |
| 1087 |
if GikoSys.IsNumeric(AddressHistoryCountEdit.Text) then |
| 1088 |
GikoSys.Setting.AddressHistoryCount := StrToInt(AddressHistoryCountEdit.Text) |
| 1089 |
else |
| 1090 |
GikoSys.Setting.AddressHistoryCount := 100; |
| 1091 |
|
| 1092 |
//HTML鐃?鐃緒申鐃?鐃緒申鐃? |
| 1093 |
GikoSys.Setting.PreviewVisible := PreviewVisibleCheckBox.Checked; |
| 1094 |
if GikoSys.IsNumeric(PreviewWaitEdit.Text) then |
| 1095 |
GikoSys.Setting.PreviewWait := StrToInt(PreviewWaitEdit.Text) |
| 1096 |
else |
| 1097 |
GikoSys.Setting.PreviewWait := 500; |
| 1098 |
case PreviewSizeComboBox.ItemIndex of |
| 1099 |
0: GikoSys.Setting.PreviewSize := gpsXSmall; |
| 1100 |
1: GikoSys.Setting.PreviewSize := gpsSmall; |
| 1101 |
2: GikoSys.Setting.PreviewSize := gpsMedium; |
| 1102 |
3: GikoSys.Setting.PreviewSize := gpsLarge; |
| 1103 |
4: GikoSys.Setting.PreviewSize := gpsXLarge; |
| 1104 |
end; |
| 1105 |
|
| 1106 |
//鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申 |
| 1107 |
GikoSys.Setting.ListIconVisible := ThreadListIconCheckBox.Checked; |
| 1108 |
|
| 1109 |
GikoSys.Setting.CreationTimeLogs := CreationTimeLogsCheckBox.Checked; |
| 1110 |
GikoSys.Setting.FutureThread := FutureThreadCheckBox.Checked; |
| 1111 |
if StrToIntDef(SelectIntervalEdit.Text, 110) > 55 then |
| 1112 |
GikoSys.Setting.SelectInterval := StrToIntDef(SelectIntervalEdit.Text, 110) |
| 1113 |
else |
| 1114 |
GikoSys.Setting.SelectInterval := 55; |
| 1115 |
|
| 1116 |
//dat鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申 |
| 1117 |
case DatOchiSortCombo.ItemIndex of |
| 1118 |
0: GikoSys.Setting.DatOchiSortIndex := -1; //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 1119 |
1: begin //鐃?鐃緒申鐃緒申鐃緒申(鐃緒申鐃緒申) |
| 1120 |
GikoSys.Setting.DatOchiSortOrder := true; |
| 1121 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcTitle ); |
| 1122 |
end; |
| 1123 |
2: begin //鐃?鐃緒申鐃緒申鐃緒申(鐃?鐃緒申) |
| 1124 |
GikoSys.Setting.DatOchiSortOrder := false; |
| 1125 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcTitle ); |
| 1126 |
end; |
| 1127 |
3: begin //鐃緒申鐃緒申鐃緒申鐃緒申(鐃緒申鐃緒申) |
| 1128 |
GikoSys.Setting.DatOchiSortOrder := true; |
| 1129 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcRoundDate );{gbcLastModified} |
| 1130 |
end; |
| 1131 |
4: begin //鐃緒申鐃緒申鐃緒申鐃緒申(鐃?鐃緒申) |
| 1132 |
GikoSys.Setting.DatOchiSortOrder := false; |
| 1133 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcRoundDate );{gbcLastModified} |
| 1134 |
end; |
| 1135 |
5: begin //鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申(鐃緒申鐃緒申) |
| 1136 |
GikoSys.Setting.DatOchiSortOrder := true; |
| 1137 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcCreated ); |
| 1138 |
end; |
| 1139 |
6: begin //鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申(鐃?鐃緒申) |
| 1140 |
GikoSys.Setting.DatOchiSortOrder := false; |
| 1141 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcCreated ); |
| 1142 |
end; |
| 1143 |
7: begin //鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃? |
| 1144 |
GikoSys.Setting.DatOchiSortOrder := true; |
| 1145 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcLastModified );{gbcLastModified} |
| 1146 |
end; |
| 1147 |
8: begin //鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃? |
| 1148 |
GikoSys.Setting.DatOchiSortOrder := false; |
| 1149 |
GikoSys.Setting.DatOchiSortIndex := Ord( gbcLastModified );{gbcLastModified} |
| 1150 |
end; |
| 1151 |
end; |
| 1152 |
GikoSys.Setting.AutoSortThreadList := AutoSortCheckBox.Checked; |
| 1153 |
|
| 1154 |
GikoSys.Setting.WriteSystemSettingFile; |
| 1155 |
GikoSys.Setting.WriteBoardURLSettingFile; |
| 1156 |
// GikoForm.SetBrowserTabState; |
| 1157 |
|
| 1158 |
if LogFolderEdit.Text <> '' then begin |
| 1159 |
GikoSys.Setting.NewLogFolder := LogFolderEdit.Text; |
| 1160 |
GikoSys.Setting.WriteFolderSettingFile; |
| 1161 |
end; |
| 1162 |
|
| 1163 |
for i := 0 to SoundListView.Items.Count - 1 do begin |
| 1164 |
if FileExists(SoundListView.Items[i].SubItems[0]) then |
| 1165 |
GikoSys.Setting.SoundFileName[i] := SoundListView.Items[i].SubItems[0] |
| 1166 |
else |
| 1167 |
GikoSys.Setting.SoundFileName[i] := ''; |
| 1168 |
end; |
| 1169 |
|
| 1170 |
//鐃緒申鐃緒申鐃?鐃緒申 |
| 1171 |
GikoSys.Setting.AbonDeleterlo := RloCheckBox.Checked; |
| 1172 |
GikoSys.Setting.AbonReplaceul := ReplaceulCheckBox.Checked; |
| 1173 |
GikoSys.Setting.PopUpAbon := PopUpAbonCheckBox.Checked; |
| 1174 |
GikoSys.Setting.ShowNGLinesNum := ShowNGLineCheckBox.Checked; |
| 1175 |
GikoSys.Setting.AddResAnchor := AddResAnchorCheckBox.Checked; |
| 1176 |
GikoSys.Setting.DeleteSyria := DeleteSyriaCheckBox.Checked; |
| 1177 |
GikoSys.Setting.IgnoreKana := IgnoreKanaCheckBox.Checked; |
| 1178 |
GikoSys.FAbon.IgnoreKana := GikoSys.Setting.IgnoreKana; |
| 1179 |
// 鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃? |
| 1180 |
if GikoSys.Setting.SpamFilterAlgorithm <> TGikoSpamFilterAlgorithm( |
| 1181 |
SpamFilterAlgorithmComboBox.ItemIndex ) then begin |
| 1182 |
GikoSys.Setting.SpamFilterAlgorithm := TGikoSpamFilterAlgorithm( |
| 1183 |
SpamFilterAlgorithmComboBox.ItemIndex ); |
| 1184 |
FRepaintThread := True; |
| 1185 |
end; |
| 1186 |
|
| 1187 |
//Tab鐃緒申鐃緒申鐃緒申鐃緒申 |
| 1188 |
GikoSys.Setting.TabAutoLoadSave := TabLoadSave.Checked; |
| 1189 |
GikoSys.Setting.UseUndecided := UseUndecidedCheckBox.Checked; |
| 1190 |
//Be2ch |
| 1191 |
GikoSys.Setting.BeUserID := BeUserIDEdit.Text; |
| 1192 |
GikoSys.Setting.BePassword := BeCodeEdit.Text; |
| 1193 |
GikoSys.Setting.BeAutoLogin := BeAutoLoginCheckBox.Checked; |
| 1194 |
//鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 1195 |
GikoSys.Setting.MaxRecordCount := Max(StrToInt64Def(MaxRecordCountEdit.Text,100),1); |
| 1196 |
GikoSys.Setting.StoredTaskTray := StoredTaskTrayCB.Checked; |
| 1197 |
GikoSys.Setting.LoopBrowserTabs := LoopBrowserTabsCB.Checked; |
| 1198 |
|
| 1199 |
GikoSys.Setting.GestureIgnoreContext := IgnoreContextCheckBox.Checked; |
| 1200 |
|
| 1201 |
end; |
| 1202 |
|
| 1203 |
procedure TOptionDialog.SettingApply; |
| 1204 |
var |
| 1205 |
i: Integer; |
| 1206 |
begin |
| 1207 |
GikoForm.TreeView.Items.BeginUpdate; |
| 1208 |
GikoForm.FavoriteTreeView.Items.BeginUpdate; |
| 1209 |
GikoForm.ListView.Items.BeginUpdate; |
| 1210 |
try |
| 1211 |
GikoForm.TreeView.Font.Name := GikoSys.Setting.CabinetFontName; |
| 1212 |
GikoForm.TreeView.Font.Size := GikoSys.Setting.CabinetFontSize; |
| 1213 |
GikoForm.TreeView.Font.Color := GikoSys.Setting.CabinetFontColor; |
| 1214 |
GikoForm.TreeView.Color := GikoSys.Setting.CabinetBackColor; |
| 1215 |
|
| 1216 |
GikoForm.FavoriteTreeView.Font.Assign(GikoForm.TreeView.Font); |
| 1217 |
GikoForm.FavoriteTreeView.Color := GikoSys.Setting.CabinetBackColor; |
| 1218 |
|
| 1219 |
GikoForm.ListView.Font.Name := GikoSys.Setting.ListFontName; |
| 1220 |
GikoForm.ListView.Font.Size := GikoSys.Setting.ListFontSize; |
| 1221 |
GikoForm.ListView.Font.Color := GikoSys.Setting.ListFontColor; |
| 1222 |
GikoForm.ListView.Font.Style := []; |
| 1223 |
if GikoSys.Setting.ListFontBold then |
| 1224 |
GikoForm.ListView.Font.Style := [fsbold]; |
| 1225 |
if GikoSys.Setting.ListFontItalic then |
| 1226 |
GikoForm.ListView.Font.Style := GikoForm.ListView.Font.Style + [fsitalic]; |
| 1227 |
|
| 1228 |
//GikoForm.ListView.Color := GikoSys.Setting.ListBackColor; |
| 1229 |
GikoForm.ListViewBackGroundColor := GikoSys.Setting.ListBackColor; |
| 1230 |
GikoForm.UseOddResOddColor := GikoSys.Setting.UseOddColorOddResNum; |
| 1231 |
GikoForm.OddColor := GikoSys.Setting.OddColor; |
| 1232 |
GikoSys.Setting.UnFocusedBold := (UnFocusedBoldCheckBox.Enabled) and |
| 1233 |
(UnFocusedBoldCheckBox.Checked); |
| 1234 |
|
| 1235 |
GikoForm.BrowserTab.Font.Name := GikoSys.Setting.BrowserTabFontName; |
| 1236 |
GikoForm.BrowserTab.Font.Size := GikoSys.Setting.BrowserTabFontSize; |
| 1237 |
GikoForm.BrowserTab.Font.Style := []; |
| 1238 |
if GikoSys.Setting.BrowserTabFontBold then |
| 1239 |
GikoForm.BrowserTab.Font.Style := [fsBold]; |
| 1240 |
if GikoSys.Setting.BrowserTabFontItalic then |
| 1241 |
GikoForm.BrowserTab.Font.Style := GikoForm.BrowserTab.Font.Style + [fsItalic]; |
| 1242 |
// GikoForm.BrowserTab.Height := (GikoSys.Setting.BrowserTabFontSize * 2) + 1; |
| 1243 |
// GikoForm.BrowserBottomPanel.Height := GikoForm.BrowserTab.Height; |
| 1244 |
|
| 1245 |
for i := 0 to Screen.CustomFormCount - 1 do begin |
| 1246 |
if TObject(Screen.CustomForms[i]) is TEditorForm then begin |
| 1247 |
TEditorForm(Screen.CustomForms[i]).SetFont; |
| 1248 |
end; |
| 1249 |
end; |
| 1250 |
|
| 1251 |
finally |
| 1252 |
GikoForm.TreeView.Items.EndUpdate; |
| 1253 |
GikoForm.FavoriteTreeView.Items.EndUpdate; |
| 1254 |
GikoForm.ListView.Items.EndUpdate; |
| 1255 |
end; |
| 1256 |
|
| 1257 |
//鐃?鐃?鐃緒申鐃?鐃?鐃? |
| 1258 |
for i := GikoForm.AddressComboBox.Items.Count - 1 downto 0 do begin |
| 1259 |
if GikoSys.Setting.AddressHistoryCount >= GikoForm.AddressComboBox.Items.Count then |
| 1260 |
Break; |
| 1261 |
GikoForm.AddressComboBox.Items.Delete(i); |
| 1262 |
end; |
| 1263 |
GikoForm.AddressComboBox.TabStop := GikoSys.Setting.AddressBarTabStop; |
| 1264 |
|
| 1265 |
//鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申 |
| 1266 |
if FRepaintList then begin |
| 1267 |
// SetActiveList鐃緒申鐃緒申鐃? |
| 1268 |
GikoForm.ActiveList := GikoForm.ActiveList; |
| 1269 |
end; |
| 1270 |
|
| 1271 |
// 鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申 |
| 1272 |
if FRepaintThread then begin |
| 1273 |
for i := GikoForm.BrowserTab.Tabs.Count - 1 downto 0 do begin |
| 1274 |
TBrowserRecord(GikoForm.BrowserTab.Tabs.Objects[i]).Repaint := true; |
| 1275 |
end; |
| 1276 |
GikoForm.BrowserTab.OnChange(nil); |
| 1277 |
end; |
| 1278 |
end; |
| 1279 |
|
| 1280 |
procedure TOptionDialog.ReadProxyCheckClick(Sender: TObject); |
| 1281 |
begin |
| 1282 |
ReadProxyAddressEdit.Enabled := ReadProxyCheck.Checked; |
| 1283 |
ReadPortEdit.Enabled := ReadProxyCheck.Checked; |
| 1284 |
ReadProxyUserIDEdit.Enabled := ReadProxyCheck.Checked; |
| 1285 |
ReadProxyPasswordEdit.Enabled := ReadProxyCheck.Checked; |
| 1286 |
|
| 1287 |
ReadAddressLabel.Enabled := ReadProxyCheck.Checked; |
| 1288 |
ReadPortLabel.Enabled := ReadProxyCheck.Checked; |
| 1289 |
ReadUserIDLabel.Enabled := ReadProxyCheck.Checked; |
| 1290 |
ReadPasswordLabel.Enabled := ReadProxyCheck.Checked; |
| 1291 |
end; |
| 1292 |
|
| 1293 |
procedure TOptionDialog.ReadPortEditExit(Sender: TObject); |
| 1294 |
begin |
| 1295 |
if not GikoSys.IsNumeric(ReadPortEdit.Text) then |
| 1296 |
ReadPortEdit.Text := '0'; |
| 1297 |
end; |
| 1298 |
|
| 1299 |
procedure TOptionDialog.LogFolderButtonClick(Sender: TObject); |
| 1300 |
var |
| 1301 |
Root: WideString; |
| 1302 |
Dir: string; |
| 1303 |
begin |
| 1304 |
Root := ''; |
| 1305 |
if SelectDirectory('鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申', Root, Dir) then begin |
| 1306 |
LogFolderEdit.Text := Dir; |
| 1307 |
end; |
| 1308 |
end; |
| 1309 |
|
| 1310 |
function TOptionDialog.CheckFolder: Boolean; |
| 1311 |
begin |
| 1312 |
if Trim(LogFolderEdit.Text) = '' then |
| 1313 |
LogFolderEdit.Text := GikoSys.GetAppDir + 'Log'; |
| 1314 |
|
| 1315 |
if DirectoryExists(LogFolderEdit.Text) then begin |
| 1316 |
Result := True; |
| 1317 |
end else begin |
| 1318 |
if MsgBox(Handle, '鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?', '鐃?鐃?鐃?鐃?', MB_YESNO or MB_ICONQUESTION) = IDYES then begin |
| 1319 |
//鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申 |
| 1320 |
try |
| 1321 |
GikoSys.ForceDirectoriesEx(LogFolderEdit.Text); |
| 1322 |
Result := True |
| 1323 |
except |
| 1324 |
MsgBox(Handle, '鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?', '鐃?鐃緒申鐃?', MB_OK or MB_ICONSTOP); |
| 1325 |
OptionTab.ActivePage := FolderSheet; |
| 1326 |
LogFolderEdit.SetFocus; |
| 1327 |
Result := False; |
| 1328 |
end; |
| 1329 |
end else |
| 1330 |
Result := False; |
| 1331 |
end; |
| 1332 |
end; |
| 1333 |
|
| 1334 |
procedure TOptionDialog.FormClose(Sender: TObject; var Action: TCloseAction); |
| 1335 |
begin |
| 1336 |
if not FClose then |
| 1337 |
Action := caNone; |
| 1338 |
FClose := True; |
| 1339 |
end; |
| 1340 |
|
| 1341 |
procedure TOptionDialog.SoundReferButtonClick(Sender: TObject); |
| 1342 |
begin |
| 1343 |
OpenDialog.Filter := '鐃?鐃?鐃緒申鐃? (*.wav)|*.wav|鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申 (*.*)|*.*'; |
| 1344 |
sndPlaySound(nil, SND_ASYNC); |
| 1345 |
if OpenDialog.Execute then begin |
| 1346 |
SoundFileEdit.Text := OpenDialog.FileName; |
| 1347 |
// 鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃? |
| 1348 |
if (AnsiPos(GikoSys.Setting.GetAppDir,SoundFileEdit.Text) = 1) then begin |
| 1349 |
// .\ 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?.\鐃緒申鐃緒申鐃緒申 |
| 1350 |
SoundFileEdit.Text := '.\' + ExtractRelativePath( |
| 1351 |
GikoSys.Setting.GetAppDir, |
| 1352 |
SoundFileEdit.Text); |
| 1353 |
|
| 1354 |
end; |
| 1355 |
end; |
| 1356 |
end; |
| 1357 |
|
| 1358 |
procedure TOptionDialog.SoundPlayButtonClick(Sender: TObject); |
| 1359 |
var |
| 1360 |
s : String; |
| 1361 |
begin |
| 1362 |
SetCurrentDir(GikoSys.Setting.GetAppDir); |
| 1363 |
s := ExpandFileName(SoundFileEdit.Text); |
| 1364 |
if not FileExists(s) then begin |
| 1365 |
MsgBox(Handle, '鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申', '鐃?鐃緒申鐃?', MB_ICONSTOP or MB_OK); |
| 1366 |
SoundFileEdit.Text := ''; |
| 1367 |
Exit; |
| 1368 |
end; |
| 1369 |
if not sndPlaySound(PChar(s), SND_ASYNC or SND_NOSTOP) then begin |
| 1370 |
sndPlaySound(nil, SND_ASYNC); |
| 1371 |
end; |
| 1372 |
end; |
| 1373 |
|
| 1374 |
procedure TOptionDialog.SoundListViewChanging(Sender: TObject; |
| 1375 |
Item: TListItem; Change: TItemChange; var AllowChange: Boolean); |
| 1376 |
begin |
| 1377 |
if Item.SubItems.Count > 0 then |
| 1378 |
SoundFileEdit.Text := Item.SubItems[0]; |
| 1379 |
end; |
| 1380 |
|
| 1381 |
procedure TOptionDialog.SoundFileEditChange(Sender: TObject); |
| 1382 |
var |
| 1383 |
Item: TListItem; |
| 1384 |
begin |
| 1385 |
sndPlaySound(nil, SND_ASYNC); |
| 1386 |
Item := SoundListView.Selected; |
| 1387 |
if Item = nil then Exit; |
| 1388 |
|
| 1389 |
SetCurrentDir(GikoSys.Setting.GetAppDir); |
| 1390 |
if FileExists(ExpandFileName(SoundFileEdit.Text)) then |
| 1391 |
Item.SubItems[0] := SoundFileEdit.Text; |
| 1392 |
if Trim(SoundFileEdit.Text) = '' then |
| 1393 |
Item.SubItems[0] := ''; |
| 1394 |
end; |
| 1395 |
|
| 1396 |
procedure TOptionDialog.OptionTabChange(Sender: TObject); |
| 1397 |
begin |
| 1398 |
sndPlaySound(nil, SND_ASYNC); |
| 1399 |
|
| 1400 |
if OptionTab.ActivePage = CSSTabSheet then |
| 1401 |
CSSPreview; |
| 1402 |
end; |
| 1403 |
|
| 1404 |
procedure TOptionDialog.AppFolderButtonClick(Sender: TObject); |
| 1405 |
begin |
| 1406 |
OpenDialog.Filter := '鐃緒申鐃?鐃?鐃?鐃?鐃緒申 (*.exe)|*.exe|鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申 (*.*)|*.*'; |
| 1407 |
if OpenDialog.Execute then |
| 1408 |
AppFolderEdit.Text := OpenDialog.FileName; |
| 1409 |
end; |
| 1410 |
|
| 1411 |
procedure TOptionDialog.WriteProxyCheckClick(Sender: TObject); |
| 1412 |
begin |
| 1413 |
WriteProxyAddressEdit.Enabled := WriteProxyCheck.Checked; |
| 1414 |
WritePortEdit.Enabled := WriteProxyCheck.Checked; |
| 1415 |
WriteProxyUserIDEdit.Enabled := WriteProxyCheck.Checked; |
| 1416 |
WriteProxyPasswordEdit.Enabled := WriteProxyCheck.Checked; |
| 1417 |
|
| 1418 |
WriteAddressLabel.Enabled := WriteProxyCheck.Checked; |
| 1419 |
WritePortLabel.Enabled := WriteProxyCheck.Checked; |
| 1420 |
WriteUserIDLabel.Enabled := WriteProxyCheck.Checked; |
| 1421 |
WritePasswordLabel.Enabled := WriteProxyCheck.Checked; |
| 1422 |
end; |
| 1423 |
|
| 1424 |
procedure TOptionDialog.WritePortEditExit(Sender: TObject); |
| 1425 |
begin |
| 1426 |
if not GikoSys.IsNumeric(WritePortEdit.Text) then |
| 1427 |
WritePortEdit.Text := '0'; |
| 1428 |
end; |
| 1429 |
|
| 1430 |
procedure TOptionDialog.Tora3URLLabelClick(Sender: TObject); |
| 1431 |
begin |
| 1432 |
GikoSys.OpenBrowser(URL_TORA3, gbtAuto); |
| 1433 |
end; |
| 1434 |
|
| 1435 |
procedure TOptionDialog.HotKeyEnter(Sender: TObject); |
| 1436 |
begin |
| 1437 |
OkBotton.Default := False; |
| 1438 |
CancelBotton.Cancel := False; |
| 1439 |
end; |
| 1440 |
|
| 1441 |
procedure TOptionDialog.HotKeyExit(Sender: TObject); |
| 1442 |
begin |
| 1443 |
OkBotton.Default := True; |
| 1444 |
CancelBotton.Cancel := True; |
| 1445 |
end; |
| 1446 |
|
| 1447 |
procedure TOptionDialog.URLAppCheckBoxClick(Sender: TObject); |
| 1448 |
begin |
| 1449 |
AppFolderLabel.Enabled := URLAppCheckBox.Checked; |
| 1450 |
AppFolderEdit.Enabled := URLAppCheckBox.Checked; |
| 1451 |
AppFolderButton.Enabled := URLAppCheckBox.Checked; |
| 1452 |
end; |
| 1453 |
|
| 1454 |
procedure TOptionDialog.AddressHistoryCountEditExit(Sender: TObject); |
| 1455 |
begin |
| 1456 |
if not GikoSys.IsNumeric(AddressHistoryCountEdit.Text) then |
| 1457 |
AddressHistoryCountEdit.Text := '100'; |
| 1458 |
end; |
| 1459 |
|
| 1460 |
procedure TOptionDialog.PreviewWaitEditExit(Sender: TObject); |
| 1461 |
begin |
| 1462 |
if not GikoSys.IsNumeric(PreviewWaitEdit.Text) then |
| 1463 |
PreviewWaitEdit.Text := '500'; |
| 1464 |
if StrToInt(PreviewWaitEdit.Text) < 500 then |
| 1465 |
PreviewWaitEdit.Text := '500'; |
| 1466 |
if StrToInt(PreviewWaitEdit.Text) > 9999 then |
| 1467 |
PreviewWaitEdit.Text := '9999'; |
| 1468 |
end; |
| 1469 |
|
| 1470 |
procedure TOptionDialog.CSSCheckBoxClick(Sender: TObject); |
| 1471 |
begin |
| 1472 |
CSSListLabel.Enabled := CSSCheckBox.Checked; |
| 1473 |
CSSListView.Enabled := CSSCheckBox.Checked; |
| 1474 |
end; |
| 1475 |
|
| 1476 |
procedure TOptionDialog.SetAbonpropertys; |
| 1477 |
begin |
| 1478 |
//鐃緒申鐃緒申鐃?鐃緒申 |
| 1479 |
GikoSys.FAbon.Deleterlo := RloCheckBox.Checked; |
| 1480 |
GikoSys.FAbon.Replaceul := ReplaceulCheckBox.Checked; |
| 1481 |
GikoSys.FAbon.AbonPopupRes := PopUpAbonCheckBox.Checked; |
| 1482 |
GikoSys.FAbon.ReturnNGwordLineNum := ShowNGLineCheckBox.Checked; |
| 1483 |
GikoSys.FAbon.SetNGResAnchor := AddResAnchorCheckBox.Checked; |
| 1484 |
GikoSys.FAbon.DeleteSyria := DeleteSyriaCheckBox.Checked; |
| 1485 |
end; |
| 1486 |
procedure TOptionDialog.CSSFontButtonClick(Sender: TObject); |
| 1487 |
begin |
| 1488 |
|
| 1489 |
FontDialog.Options := [fdAnsiOnly, fdEffects]; |
| 1490 |
FontDialog.Font.Assign(FCSSFont); |
| 1491 |
if FontDialog.Execute then begin |
| 1492 |
FontDialog.Font.Style := FontDialog.Font.Style - [fsUnderline] - [fsStrikeout]; |
| 1493 |
FCSSFont.Assign(FontDialog.Font); |
| 1494 |
//FCSSFont := FontDialog.Font; |
| 1495 |
end; |
| 1496 |
|
| 1497 |
CSSPreview; |
| 1498 |
|
| 1499 |
end; |
| 1500 |
|
| 1501 |
procedure TOptionDialog.CSSBackColorButtonClick(Sender: TObject); |
| 1502 |
begin |
| 1503 |
|
| 1504 |
ColorDialog.Color := FCSSBackColor; |
| 1505 |
if ColorDialog.Execute then begin |
| 1506 |
FCSSBackColor := ColorDialog.Color; |
| 1507 |
end; |
| 1508 |
|
| 1509 |
CSSPreview; |
| 1510 |
|
| 1511 |
end; |
| 1512 |
|
| 1513 |
procedure TOptionDialog.CSSFontCheckBoxClick(Sender: TObject); |
| 1514 |
begin |
| 1515 |
|
| 1516 |
CSSFontButton.Enabled := CSSFontCheckBox.Checked; |
| 1517 |
CSSPreview; |
| 1518 |
|
| 1519 |
end; |
| 1520 |
|
| 1521 |
procedure TOptionDialog.CSSBackColorCheckBoxClick(Sender: TObject); |
| 1522 |
begin |
| 1523 |
|
| 1524 |
CSSBackColorButton.Enabled := CSSBackColorCheckBox.Checked; |
| 1525 |
CSSPreview; |
| 1526 |
|
| 1527 |
end; |
| 1528 |
|
| 1529 |
procedure TOptionDialog.CSSSetContent(Content: string); |
| 1530 |
var |
| 1531 |
doc : OleVariant; |
| 1532 |
begin |
| 1533 |
if CSSBrowser.Document <> nil then begin |
| 1534 |
doc := CSSBrowser.OleObject.Document; |
| 1535 |
doc.open; |
| 1536 |
doc.Clear; |
| 1537 |
doc.charset := 'Shift_JIS'; |
| 1538 |
doc.Write(Content); |
| 1539 |
doc.Close; |
| 1540 |
end; |
| 1541 |
end; |
| 1542 |
|
| 1543 |
procedure TOptionDialog.CSSPreview; |
| 1544 |
var |
| 1545 |
Board: TBoard; |
| 1546 |
ThreadItem: TThreadItem; |
| 1547 |
html: string; |
| 1548 |
Res: array [0..1] of TResRec; |
| 1549 |
fileName: string; |
| 1550 |
begin |
| 1551 |
|
| 1552 |
fileName := GikoSys.Setting.CSSFileName; |
| 1553 |
|
| 1554 |
GikoSys.Setting.CSSFileName := DEFAULT_CSS_FILENAME; |
| 1555 |
if CSSListView.Items.Count > 0 then begin |
| 1556 |
try |
| 1557 |
if CSSListView.ItemIndex >= 0 then begin |
| 1558 |
if CSSListView.Items[CSSListView.ItemIndex].Data <> nil then |
| 1559 |
GikoSys.Setting.CSSFileName := string( CSSListView.Items[CSSListView.ItemIndex].data ) |
| 1560 |
else |
| 1561 |
GikoSys.Setting.CSSFileName := CSSListView.Items[CSSListView.ItemIndex].Caption + '.css'; |
| 1562 |
end; |
| 1563 |
except |
| 1564 |
end; |
| 1565 |
end; |
| 1566 |
|
| 1567 |
Board := TBoard.Create( nil, 'about://sample/' ); |
| 1568 |
ThreadItem := TThreadItem.Create( nil, Board, 'about://sample/test/read.cgi/sample/' ); |
| 1569 |
|
| 1570 |
try |
| 1571 |
Board.Title := '鐃?鐃緒申鐃?鐃緒申鐃緒申'; |
| 1572 |
ThreadItem.ParentBoard := Board; |
| 1573 |
ThreadItem.AllResCount := High( Res ); |
| 1574 |
ThreadItem.NewResCount := 1; |
| 1575 |
ThreadItem.NewReceive := 2; |
| 1576 |
ThreadItem.Title := '鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?'; |
| 1577 |
|
| 1578 |
Res[0].FName := '鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申'; |
| 1579 |
Res[0].FMailTo := 'sage'; |
| 1580 |
Res[0].FDateTime := 'ID:Sample'; |
| 1581 |
Res[0].FBody := 'CSS 鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申'; |
| 1582 |
Res[1].FName := '鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申'; |
| 1583 |
Res[1].FMailTo := 'age'; |
| 1584 |
Res[1].FDateTime := 'ID:Sample'; |
| 1585 |
Res[1].FBody := '鐃?鐃?鐃?鐃緒申鐃?鐃?'; |
| 1586 |
|
| 1587 |
|
| 1588 |
if FileExists( GikoSys.GetSkinHeaderFileName ) then begin |
| 1589 |
html := |
| 1590 |
HTMLCreater.LoadFromSkin( GikoSys.GetSkinHeaderFileName, ThreadItem, 0 ) + |
| 1591 |
'<a name="top"></a>' + |
| 1592 |
HTMLCreater.SkinedRes( HTMLCreater.LoadFromSkin( GikoSys.GetSkinResFileName, ThreadItem, 0 ), @Res[0], '1' ) + |
| 1593 |
HTMLCreater.SkinedRes( HTMLCreater.LoadFromSkin( GikoSys.GetSkinNewResFileName, ThreadItem, 0 ), @Res[1], '2' ) + |
| 1594 |
'<a name="bottom"></a>' + |
| 1595 |
HTMLCreater.LoadFromSkin( GikoSys.GetSkinFooterFileName, ThreadItem, 0 ); |
| 1596 |
|
| 1597 |
html := StringReplace( html, '</head>', |
| 1598 |
'<style type="text/css">body {' + GetPreviewUserStyle + '}</style></head>', [rfReplaceAll] ); |
| 1599 |
end else begin |
| 1600 |
html := |
| 1601 |
'<html><head><meta http-equiv="Content-type" content="text/html; charset=Shift_JIS">' + |
| 1602 |
'<title>' + ThreadItem.Title + '</title>' + |
| 1603 |
'<link rel="stylesheet" href="' + GikoSys.GetStyleSheetDir + GikoSys.Setting.CSSFileName + '" type="text/css">' + |
| 1604 |
'<style type="text/css">body {' + GetPreviewUserStyle + '}</style>' + |
| 1605 |
'</head><body><div class="title">' + ThreadItem.Title + '</div>'; |
| 1606 |
|
| 1607 |
html := html + CreatePreviewBody(Res) + '</body></html>'; |
| 1608 |
end; |
| 1609 |
|
| 1610 |
try |
| 1611 |
CSSSetContent( html ); |
| 1612 |
except |
| 1613 |
end; |
| 1614 |
|
| 1615 |
finally |
| 1616 |
ThreadItem.Free; |
| 1617 |
Board.Free; |
| 1618 |
GikoSys.Setting.CSSFileName := fileName; |
| 1619 |
end; |
| 1620 |
|
| 1621 |
end; |
| 1622 |
function TOptionDialog.CreatePreviewBody(Res: array of TResRec): string; |
| 1623 |
var |
| 1624 |
i : Integer; |
| 1625 |
begin |
| 1626 |
Result := ''; |
| 1627 |
for i := 0 to High( Res ) do |
| 1628 |
begin |
| 1629 |
Result := Result + |
| 1630 |
'<div class="header"><span class="no">' + IntToStr( i + 1 ) + '</span>' + |
| 1631 |
'<span class="name_label"> 鐃緒申鐃?鐃? </span>' + |
| 1632 |
'<a class="name_mail" href="mailto:' + Res[i].FMailTo + '">' + |
| 1633 |
'<b>' + Res[i].FName + '</b></a><span class="mail"> [' + Res[i].FMailTo + ']</span>' + |
| 1634 |
'<span class="date_label"> 鐃緒申鐃?鐃緒申鐃?</span>' + |
| 1635 |
'<span class="date"> ' + Res[i].FDateTime+ '</span></div>' + |
| 1636 |
'<div class="mes">' + Res[i].FBody + ' </div>'; |
| 1637 |
end; |
| 1638 |
end; |
| 1639 |
|
| 1640 |
function TOptionDialog.GetPreviewUserStyle(): string; |
| 1641 |
var |
| 1642 |
i : Integer; |
| 1643 |
|
| 1644 |
begin |
| 1645 |
Result := ''; |
| 1646 |
// 鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申 |
| 1647 |
if CSSFontCheckBox.Checked then begin |
| 1648 |
i := ColorToRGB( FCSSFont.Color ); |
| 1649 |
i := (i shr 16) or (i and $ff00) or ((i and $ff) shl 16); |
| 1650 |
|
| 1651 |
Result := Result + |
| 1652 |
'font-family:"' + FCSSFont.Name + '";' + |
| 1653 |
'font-size:' + IntToStr( FCSSFont.Size ) + 'pt;' + |
| 1654 |
'color:#' + IntToHex( i, 6 ) + ';'; |
| 1655 |
if fsBold in FCSSFont.Style then |
| 1656 |
Result := Result + 'font-weight:bold;' |
| 1657 |
else |
| 1658 |
Result := Result + 'font-weight:normal;'; |
| 1659 |
if fsItalic in FCSSFont.Style then |
| 1660 |
Result := Result + 'font-style:italic;' |
| 1661 |
else |
| 1662 |
Result := Result + 'font-style:normal;'; |
| 1663 |
end; |
| 1664 |
if CSSBackColorCheckBox.Checked then begin |
| 1665 |
i := ColorToRGB( FCSSBackColor ); |
| 1666 |
i := (i shr 16) or (i and $ff00) or ((i and $ff) shl 16); |
| 1667 |
|
| 1668 |
Result := Result + |
| 1669 |
'background-color:#' + IntToHex( i, 6 ) + ';'; |
| 1670 |
end; |
| 1671 |
|
| 1672 |
end; |
| 1673 |
procedure TOptionDialog.CSSListViewChange(Sender: TObject; Item: TListItem; |
| 1674 |
Change: TItemChange); |
| 1675 |
begin |
| 1676 |
|
| 1677 |
if OptionTab.ActivePage = CSSTabSheet then |
| 1678 |
CSSPreview; |
| 1679 |
|
| 1680 |
end; |
| 1681 |
|
| 1682 |
procedure TOptionDialog.AddURLButtonClick(Sender: TObject); |
| 1683 |
begin |
| 1684 |
BoardURLComboBox.Items.Append(BoardURLComboBox.Text); |
| 1685 |
BoardURLComboBox.ItemIndex := BoardURLComboBox.Items.Count - 1; |
| 1686 |
end; |
| 1687 |
|
| 1688 |
procedure TOptionDialog.RemoveURLButtonClick(Sender: TObject); |
| 1689 |
begin |
| 1690 |
BoardURLComboBox.DeleteSelected; |
| 1691 |
end; |
| 1692 |
|
| 1693 |
procedure TOptionDialog.OddResNumCheckBoxClick(Sender: TObject); |
| 1694 |
begin |
| 1695 |
OddResNumColorBox.Enabled := OddResNumCheckBox.Checked; |
| 1696 |
UnFocusedBoldCheckBox.Enabled := OddResNumCheckBox.Checked; |
| 1697 |
end; |
| 1698 |
|
| 1699 |
procedure TOptionDialog.ResRangeHoldCheckBoxClick(Sender: TObject); |
| 1700 |
begin |
| 1701 |
ResRangeHoldComboBox.Enabled := ResRangeHoldCheckBox.Checked; |
| 1702 |
end; |
| 1703 |
|
| 1704 |
procedure TOptionDialog.CroutOptionClick(Sender: TObject); |
| 1705 |
var |
| 1706 |
KuroutOption: TKuroutOption; |
| 1707 |
begin |
| 1708 |
KuroutOption := TKuroutOption.Create(Self); |
| 1709 |
try |
| 1710 |
KuroutOption.ShowModal; |
| 1711 |
finally |
| 1712 |
KuroutOption.Release; |
| 1713 |
end; |
| 1714 |
end; |
| 1715 |
|
| 1716 |
procedure TOptionDialog.MaxRecordCountEditExit(Sender: TObject); |
| 1717 |
begin |
| 1718 |
if not GikoSys.IsNumeric(MaxRecordCountEdit.Text) then |
| 1719 |
MaxRecordCountEdit.Text := '100' |
| 1720 |
else if StrToIntDef(MaxRecordCountEdit.Text, 100) <= 0 then |
| 1721 |
MaxRecordCountEdit.Text := '1'; |
| 1722 |
end; |
| 1723 |
|
| 1724 |
procedure TOptionDialog.BoukenDelButtonClick(Sender: TObject); |
| 1725 |
begin |
| 1726 |
if ( BoukenComboBox.Items.IndexOf( BoukenComboBox.Text ) <> -1 ) then begin |
| 1727 |
if MsgBox(Self.Handle, BoukenComboBox.Text + ' 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?'#13#10 + |
| 1728 |
'鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?', '鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申', MB_YESNO or MB_ICONQUESTION) = IDYES then begin |
| 1729 |
GikoSys.DelBoukenCookie(BoukenComboBox.Text); |
| 1730 |
GikoSys.Setting.WriteBoukenSettingFile; |
| 1731 |
BoukenComboBox.Items.Delete(BoukenComboBox.ItemIndex); |
| 1732 |
if ( BoukenComboBox.Items.Count = 0 ) then begin |
| 1733 |
BoukenComboBox.Text := ''; |
| 1734 |
end; |
| 1735 |
BoukenComboBox.OnChange(nil); |
| 1736 |
end |
| 1737 |
end else begin |
| 1738 |
BoukenComboBox.Text := ''; |
| 1739 |
end; |
| 1740 |
end; |
| 1741 |
|
| 1742 |
procedure TOptionDialog.BoukenComboBoxChange(Sender: TObject); |
| 1743 |
begin |
| 1744 |
BoukenEdit.Text := GikoSys.GetBoukenCookie('http://*' +BoukenComboBox.Text); |
| 1745 |
end; |
| 1746 |
|
| 1747 |
procedure TOptionDialog.BoukenModButtonClick(Sender: TObject); |
| 1748 |
var |
| 1749 |
DomainList : TStringList; |
| 1750 |
i : Integer; |
| 1751 |
s : String; |
| 1752 |
begin |
| 1753 |
if ( Length(BoukenComboBox.Text) > 0 ) then begin |
| 1754 |
s := BoukenComboBox.Text; |
| 1755 |
GikoSys.SetBoukenCookie(BoukenEdit.Text, s); |
| 1756 |
GikoSys.Setting.WriteBoukenSettingFile; |
| 1757 |
// 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 1758 |
BoukenComboBox.Text := ''; |
| 1759 |
BoukenComboBox.Items.Clear; |
| 1760 |
DomainList := TStringList.Create; |
| 1761 |
GikoSys.GetBoukenDomain(DomainList); |
| 1762 |
for i := 0 to DomainList.Count - 1 do begin |
| 1763 |
BoukenComboBox.Items.Add( DomainList[i] ) ; |
| 1764 |
end; |
| 1765 |
DomainList.Free; |
| 1766 |
BoukenComboBox.ItemIndex := 0; |
| 1767 |
for i := 0 to BoukenComboBox.Items.Count - 1 do begin |
| 1768 |
if ( BoukenComboBox.Items[i] = s) then begin |
| 1769 |
BoukenComboBox.ItemIndex := i; |
| 1770 |
Break; |
| 1771 |
end; |
| 1772 |
end; |
| 1773 |
BoukenComboBox.OnChange(nil); |
| 1774 |
end; |
| 1775 |
end; |
| 1776 |
|
| 1777 |
end. |
| 1778 |
|