ponyprog/SrcPony/filldlg.h

65 lines
2.5 KiB
C
Raw Normal View History

2000-02-05 22:37:44 +00:00
//=========================================================================//
// //
// PonyProg - Serial Device Programmer //
// //
2019-02-08 00:29:55 +01:00
// Copyright (C) 1997-2019 Claudio Lanconelli //
2000-02-05 22:37:44 +00:00
// //
// http://ponyprog.sourceforge.net //
2000-02-05 22:37:44 +00:00
// //
//-------------------------------------------------------------------------//
// //
// 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 version2 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 (see LICENSE); if not, write to the //
2000-02-05 22:37:44 +00:00
// Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
// //
//=========================================================================//
#ifndef FillDIALOG_H
#define FillDIALOG_H
2017-04-18 01:25:22 +02:00
#include <QString>
#include <QDialog>
#include <QObject>
#include "Translator.h"
2017-04-18 01:25:22 +02:00
#include "ui_editdlg.h"
2000-02-05 22:37:44 +00:00
2017-04-18 01:25:22 +02:00
class FillDialog : public QDialog, public cTranslator, public Ui::EditDialog
2000-02-05 22:37:44 +00:00
{
2017-04-18 01:25:22 +02:00
Q_OBJECT
public:
FillDialog(QWidget *bw, long &cfrom, long &cto, int &cval, long max_addr, const QString title = translate(STR_LBLFILLBUF));
2017-04-18 01:25:22 +02:00
virtual ~FillDialog(); // Destructor
protected:
2017-04-18 01:25:22 +02:00
2017-04-29 01:56:50 +02:00
private slots:
2017-04-18 01:25:22 +02:00
void onOk();
2000-02-05 22:37:44 +00:00
private:
2000-02-05 22:37:44 +00:00
2017-04-18 01:25:22 +02:00
long *pFrom, *pTo;
int *pVal;
2000-02-05 22:37:44 +00:00
long mFrom, mTo;
int mVal;
long mMax;
2000-02-05 22:37:44 +00:00
};
#endif