mirror of
https://github.com/n5ac/mmtty.git
synced 2025-12-06 04:12:03 +01:00
59 lines
2.5 KiB
C++
59 lines
2.5 KiB
C++
|
|
//Copyright+LGPL
|
|||
|
|
|
|||
|
|
//-----------------------------------------------------------------------------------------------------------------------------------------------
|
|||
|
|
// Copyright 2000-2013 Makoto Mori, Nobuyuki Oba
|
|||
|
|
//-----------------------------------------------------------------------------------------------------------------------------------------------
|
|||
|
|
// This file is part of MMTTY.
|
|||
|
|
|
|||
|
|
// MMTTY is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
|||
|
|
// as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|||
|
|
|
|||
|
|
// MMTTY 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 Lesser General Public License for more details.
|
|||
|
|
|
|||
|
|
// You should have received a copy of the GNU Lesser General Public License along with MMTTY. If not, see
|
|||
|
|
// <http://www.gnu.org/licenses/>.
|
|||
|
|
//-----------------------------------------------------------------------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
//---------------------------------------------------------------------
|
|||
|
|
#include <vcl.h>
|
|||
|
|
#pragma hdrstop
|
|||
|
|
|
|||
|
|
#include "TxdDlg.h"
|
|||
|
|
//---------------------------------------------------------------------
|
|||
|
|
#pragma resource "*.dfm"
|
|||
|
|
//TTxdDlgBox *TxdDlgBox;
|
|||
|
|
//---------------------------------------------------------------------
|
|||
|
|
__fastcall TTxdDlgBox::TTxdDlgBox(TComponent* AOwner)
|
|||
|
|
: TForm(AOwner)
|
|||
|
|
{
|
|||
|
|
FormStyle = ((TForm *)AOwner)->FormStyle;
|
|||
|
|
Font->Name = ((TForm *)AOwner)->Font->Name;
|
|||
|
|
Font->Charset = ((TForm *)AOwner)->Font->Charset;
|
|||
|
|
if( Font->Charset != SHIFTJIS_CHARSET ){
|
|||
|
|
CancelBtn->Caption = "Cancel";
|
|||
|
|
LMsg->Caption = "Please try to test B, C, D, if you have a trouble in the USB-COM adaptor. (C)Limiting speed seems to be well.";
|
|||
|
|
TxdJob->Caption = "Processing method";
|
|||
|
|
TxdJob->Items->Strings[0] = "A: Normal";
|
|||
|
|
TxdJob->Items->Strings[1] = "B: Polling";
|
|||
|
|
TxdJob->Items->Strings[2] = "C: Limiting speed";
|
|||
|
|
TxdJob->Items->Strings[3] = "D: Polling and Limiting speed";
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
else {
|
|||
|
|
LMsg->Caption = "FSK<EFBFBD><EFBFBD>USB<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>_<EFBFBD>v<EFBFBD>^<5E>[<5B>Ő<EFBFBD><C590><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>삵<EFBFBD>Ȃ<EFBFBD><C882>ꍇ<EFBFBD><EA8D87>B, C, D<><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĉ<EFBFBD><C489><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B(C)<29><><EFBFBD>M<EFBFBD><4D><EFBFBD>x<EFBFBD>̐<EFBFBD><CC90><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǂ<EFBFBD><C782>悤<EFBFBD>ł<EFBFBD>.";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
//---------------------------------------------------------------------
|
|||
|
|
int __fastcall TTxdDlgBox::Execute(int sel)
|
|||
|
|
{
|
|||
|
|
TxdJob->ItemIndex = sel;
|
|||
|
|
if( ShowModal() == IDOK ){
|
|||
|
|
sel = TxdJob->ItemIndex;
|
|||
|
|
}
|
|||
|
|
return sel;
|
|||
|
|
}
|
|||
|
|
|