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
// //
2007-04-20 10:58:20 +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 //
2017-10-08 22:28:35 +02:00
// 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>
2017-05-01 18:42:29 +02:00
# include "Translator.h"
2017-04-18 01:25:22 +02:00
2017-05-16 22:49:46 +02:00
# include "ui_editdlg.h"
2000-02-05 22:37:44 +00:00
2017-04-18 01:25:22 +02:00
2017-05-16 22:49:46 +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
2018-10-16 18:42:23 +02:00
public :
2017-05-01 18:42:29 +02:00
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
2018-10-16 18:42:23 +02:00
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
2018-10-16 18:42:23 +02: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 ;
2017-04-26 18:14:20 +02:00
long mMax ;
2000-02-05 22:37:44 +00:00
} ;
# endif