The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ConfigDLLF.cpp
Go to the documentation of this file.
1 /*
2 winamp remote control suite ŠPatrick Michael Martin 2000, 2001, 2002
3 
4 Copyright (C) 2000,2001,2002 Patrick M. Martin
5 
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 
20 Patrick M. Martin may be reached by email at patrickmmartin@gmail.com.
21 */
22 
23 #include <vcl.h>
24 #pragma hdrstop
25 
26 #include "ConfigDLLF.h"
27 #include "AboutF.h"
28 #include "ServerDLLF.h"
29 #include "RFC1060U.h"
30 #include "DetailsF.h"
31 
32 
33 #pragma package(smart_init)
34 #pragma resource "*.dfm"
35 
37 
38 __fastcall TConfigForm::TConfigForm(TComponent* Owner)
39  : TForm(Owner)
40 {
41 }
42 
43 
44 void __fastcall TConfigForm::btnAboutClick(TObject *Sender)
45 {
46  frmAbout = new TfrmAbout(NULL);
47 
48  try
49  {
50  frmAbout->Caption = "About winamp remote control client";
51  frmAbout->Icon->Handle = this->Icon->Handle;
52  frmAbout->ShowModal();
53  }
54  __finally
55  {
56  delete frmAbout;
57  frmAbout = NULL;
58  }
59 
60 }
61 
62 
63 void __fastcall TConfigForm::chkVisibleClick(TObject *Sender)
64 {
65  frmPluginMain->Visible = chkVisible->Checked;
66 }
67 
68 
69 void __fastcall TConfigForm::FormCreate(TObject *Sender)
70 {
71  chkVisible->Checked = frmPluginMain->Visible;
72 }
73 
74 void __fastcall TConfigForm::DetailsClick(TObject *Sender)
75 {
76 
77  TfrmDetails *DetailsForm = new TfrmDetails(this);
78  try
79  {
80  DetailsForm->Icon->Handle = this->Icon->Handle;
81  DetailsForm->ShowModal();
82  }
83  __finally
84  {
85  delete DetailsForm;
86  }
87 
88 }
89 
90