summaryrefslogtreecommitdiffstats
path: root/src/qalculatesetbasedialog.cpp
blob: b67934a058a53198aaceef8ce7364a1c7549cea0 (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 <tqradiobutton.h>
#include <tqvbuttongroup.h>
#include <tqspinbox.h>
#include <tdelocale.h>
#include <tqvbox.h>

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

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

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

}


QalculateSetBaseDialog::~QalculateSetBaseDialog() {}


#include "qalculatesetbasedialog.moc"