//---------------------------------------------------------------------------
/*
Remote Train Control Program for Windows

© Copyright 2024 by Mark DiVecchio

    This file is part of Remote Train Control.

    Remote Train Control 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 3 of the License, or
    (at your option) any later version.

    Remote Train Control 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 Remote Train Control.  If not, see <http://www.gnu.org/licenses/>.

*/
// Home Page : http://www.silogic.com/trains/RTC_Running.html
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#ifndef RouteScenePopoutListH
#define RouteScenePopoutListH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "HideButton.h"
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
class TPopoutRouteSceneList : public TForm
{
__published:	// IDE-managed Components
    TLabel *Route_Scene_List_Label;
    TStringGrid *RSData;
    TPanel *Panel1;
    THideButton *HideButton1;
    TPopupMenu *RouteScenePopupMenu;
    TMenuItem *ActivateSelectedRouteScene;
    TMenuItem *ResetRouteScenetoDefaultPosition;
    TImage *Copyright;
    TMenuItem *AllSwitchesinSelectedRouteScenetoNORMALposition1;
    TMenuItem *AllAccyinSelectedRouteScenetoON1;
    TMenuItem *AllAccyinSelectedRouteScenetoOFF1;
    TButton *Refresh;
    void __fastcall HideButton1Click(TObject *Sender);
    void __fastcall RSDataDblClick(TObject *Sender);
    void __fastcall RSDataDrawCell(TObject *Sender, int ACol, int ARow,
          TRect &Rect, TGridDrawState State);
    void __fastcall RSDataClick(TObject *Sender);
    void __fastcall RSDataKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
    void __fastcall ActivateSelectedRouteSceneClick(TObject *Sender);
    void __fastcall ResetRouteScenetoDefaultPositionClick(
          TObject *Sender);
    void __fastcall CopyrightClick(TObject *Sender);
    void __fastcall AllSwitchesinSelectedRouteScenetoNORMALposition1Click(
          TObject *Sender);
    void __fastcall AllAccyinSelectedRouteScenetoON1Click(TObject *Sender);
    void __fastcall AllAccyinSelectedRouteScenetoOFF1Click(
          TObject *Sender);
    void __fastcall RefreshClick(TObject *Sender);

private:	// User declarations
    String RegFileRootKey;

public:		// User declarations
    __fastcall TPopoutRouteSceneList(TComponent* Owner);
    __fastcall ~TPopoutRouteSceneList(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TPopoutRouteSceneList *PopoutRouteSceneList;
//---------------------------------------------------------------------------
#endif
