📄 progress.h
字号:
//License: GNU
//
//
//
// J-QAM sound card modem
//
// Copyright (C) 2008 Jonti Olds
//
//
//
// 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, either version 3 of the License, or
//
// (at your option) any later version.
//
//
//
// 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, see <http://www.gnu.org/licenses/>
//---------------------------------------------------------------------------
#ifndef ProgressH
#define ProgressH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "fftw3.h"
#include <ExtCtrls.hpp>
#include "JvExControls.hpp"
#include "JvXPButtons.hpp"
#include "JvXPCore.hpp"
#include "JvLabel.hpp"
//---------------------------------------------------------------------------
class TProgressForm : public TForm
{
__published: // IDE-managed Components
TTimer *Timer1;
TJvLabel *JvLabel20;
TJvLabel *JvLabel1;
void __fastcall Timer1Timer(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private: // User declarations
public: // User declarations
__fastcall TProgressForm(TComponent* Owner);
bool *Finished;
};
//---------------------------------------------------------------------------
extern PACKAGE TProgressForm *ProgressForm;
//---------------------------------------------------------------------------
class ProgressThread : public TThread
{
private:
protected:
void __fastcall Execute();
public:
__fastcall ProgressThread(int N, double *in, double *out, fftw_plan *p);
void __fastcall FinshedEvent(TObject* Sender);
bool Finished;
fftw_plan *plan;
private:
int _N;
double *_in;
double *_out;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -