//----------------------------------------------------------------------------//
// module: FGuiOptions.cpp //
// //
// Options dialog for Gui specific settings - directly saves to registry //
// //
// copyright (c) 2003 by Lars Haendel //
// home: www.newty.de //
// //
// This program 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 as version 2 of the License. //
// //
// This program 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 this program; if not, write to the Free Software //
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
// //
//----------------------------------------------------------------------------//
#ifndef TFGuiOptionsH
#define TFGuiOptionsH
//------------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
//----------------------------------------------------------------------------------------------------------------------
// options dialog for program/gui settings
class TFGuiOptions : public TForm
{
__published:
TCheckBox *CbDisableWarnings;
TLabel *LaComChar;
TComboBox *DlComChar;
TBitBtn *BtOk;
TCheckBox *CbDisableQuestions;
void __fastcall FormShow(TObject *Sender);
void __fastcall BtOkClick(TObject *Sender);
void __fastcall DlComCharChange(TObject *Sender);
void __fastcall CbDisableWarningsClick(TObject *Sender);
void __fastcall CbDisableQuestionsClick(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private:
void ActComChar(); // initialize drop down list according to project comment character
public:
// constructor/destructor
__fastcall TFGuiOptions(TComponent* Owner);
};
extern PACKAGE TFGuiOptions *FGuiOptions;
#endif