⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prefroster.pas

📁 类似QQ的源码程序
💻 PAS
字号:
unit PrefRoster;
{
    Copyright 2003, Peter Millard

    This file is part of Exodus.

    Exodus is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Exodus is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Exodus; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
}

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, PrefPanel, StdCtrls, TntStdCtrls, ExtCtrls, TntExtCtrls;

type
  TfrmPrefRoster = class(TfrmPrefPanel)
    lblDblClick: TTntLabel;
    chkShowUnsubs: TTntCheckBox;
    chkHideBlocked: TTntCheckBox;
    chkPresErrors: TTntCheckBox;
    chkShowPending: TTntCheckBox;
    cboDblClick: TTntComboBox;
    chkRosterUnicode: TTntCheckBox;
    chkInlineStatus: TTntCheckBox;
    cboInlineStatus: TColorBox;
    chkNestedGrps: TTntCheckBox;
    txtGrpSeperator: TTntEdit;
    TntLabel1: TTntLabel;
    chkRosterAvatars: TTntCheckBox;
    procedure chkInlineStatusClick(Sender: TObject);
    procedure chkNestedGrpsClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    procedure LoadPrefs(); override;
    procedure SavePrefs(); override;
  end;

var
  frmPrefRoster: TfrmPrefRoster;

implementation
{$R *.dfm}

uses
    JabberUtils, ExUtils,  Unicode, Session;

procedure TfrmPrefRoster.LoadPrefs();
begin
    inherited;
    cboInlineStatus.Enabled := chkInlineStatus.Checked;
    txtGrpSeperator.Enabled := chkNestedGrps.Checked;
end;

procedure TfrmPrefRoster.SavePrefs();
begin
    inherited;

    // XXX: save nested group seperator per JEP-48
end;

procedure TfrmPrefRoster.chkInlineStatusClick(Sender: TObject);
begin
  inherited;
    // toggle the color drop down on/off
    cboInlineStatus.Enabled := chkInlineStatus.Checked;
end;

procedure TfrmPrefRoster.chkNestedGrpsClick(Sender: TObject);
begin
  inherited;
    txtGrpSeperator.Enabled := chkNestedGrps.Checked;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -