1
/***************************************************************************
3
Handle dialog factory element : Toggle
4
(C) 2006 Mean Fixounet@free.fr
5
***************************************************************************/
7
/***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
25
#include <QMessageBox>
26
#include <QGridLayout>
30
#include "ADM_commonUI/DIA_factory.h"
31
#include "ADM_assert.h"
33
extern const char *shortkey(const char *);
35
diaElemNotch::diaElemNotch(uint32_t yes,const char *toggleTitle, const char *tip)
39
paramTitle=toggleTitle;
43
diaElemNotch::~diaElemNotch()
47
void diaElemNotch::setMe(void *dialog, void *opaque,uint32_t line)
49
QCheckBox *box=new QCheckBox(QString::fromUtf8(paramTitle),(QWidget *)dialog);
50
QGridLayout *layout=(QGridLayout*) opaque;
54
box->setCheckState(Qt::Checked);
57
layout->addWidget(box,line,0);
59
//******************************************************