summaryrefslogtreecommitdiffstats
path: root/src/qalculatesetbasedialog.cpp
blob: b95b2051c97b35aadd081da979ba180fc857ae61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/***************************************************************************
 *   Copyright (C) 2005 by Niklas Knutsson                                 *
 *   nq@altern.org                                                         *
 *                                                                         *
 *   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 2 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, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include "qalculatesetbasedialog.h"

#include <qradiobutton.h>
#include <qvbuttongroup.h>
#include <qspinbox.h>
#include <klocale.h>
#include <qvbox.h>

QalculateSetBaseDialog::QalculateSetBaseDialog(QWidget *parent, const char *name)
		: KDialogBase(parent, name, false, i18n("Number Bases"), Close, Close) {
	
	QHBox *box = makeHBoxMainWidget();

	radiogroup_output = new QVButtonGroup(i18n("Result Base"), box);
	radiogroup_output->setRadioButtonExclusive(true);
	new QRadioButton(i18n("Binary"), radiogroup_output);
	new QRadioButton(i18n("Octal"), radiogroup_output);
	new QRadioButton(i18n("Decimal"), radiogroup_output);
	new QRadioButton(i18n("Hexadecimal"), radiogroup_output);
	new QRadioButton(i18n("Other:"), radiogroup_output);
	outputBaseBox = new QSpinBox(2, 36, 1, radiogroup_output);
	outputBaseBox->setValue(10);
	new QRadioButton(i18n("Sexagesimal"), radiogroup_output);
	new QRadioButton(i18n("Time format"), radiogroup_output);
	new QRadioButton(i18n("Roman numerals"), radiogroup_output);

	radiogroup_input = new QVButtonGroup(i18n("Expression Base"), box);
	radiogroup_input->setRadioButtonExclusive(true);
	new QRadioButton(i18n("Binary"), radiogroup_input);
	new QRadioButton(i18n("Octal"), radiogroup_input);
	new QRadioButton(i18n("Decimal"), radiogroup_input);
	new QRadioButton(i18n("Hexadecimal"), radiogroup_input);
	new QRadioButton(i18n("Other:"), radiogroup_input);
	inputBaseBox = new QSpinBox(2, 36, 1, radiogroup_input);
	inputBaseBox->setValue(10);
	new QRadioButton(i18n("Roman numerals"), radiogroup_input);

}


QalculateSetBaseDialog::~QalculateSetBaseDialog() {}


#include "qalculatesetbasedialog.moc"