source: trunk/Taper/src/pref.cpp@ 4428

Last change on this file since 4428 was 4307, checked in by merck, 20 years ago
new project
File size: 1.6 KB
Line 
1/***************************************************************************
2 * Copyright (C) 2004 by Martin Merck *
3 * merck@astro.uni-wuerzburg.de *
4 * *
5 * This software is part of the MAGIC software. *
6 ***************************************************************************/
7
8#include "pref.h"
9
10#include <klocale.h>
11
12#include <qlayout.h>
13#include <qlabel.h>
14
15TaperPreferences::TaperPreferences()
16 : KDialogBase(TreeList, i18n("Taper Preferences"),
17 Help|Default|Ok|Apply|Cancel, Ok)
18{
19 // this is the base class for your preferences dialog. it is now
20 // a Treelist dialog.. but there are a number of other
21 // possibilities (including Tab, Swallow, and just Plain)
22 QFrame *frame;
23 frame = addPage(i18n("First Page"), i18n("Page One Options"));
24 m_pageOne = new TaperPrefPageOne(frame);
25
26 frame = addPage(i18n("Second Page"), i18n("Page Two Options"));
27 m_pageTwo = new TaperPrefPageTwo(frame);
28}
29
30TaperPrefPageOne::TaperPrefPageOne(QWidget *parent)
31 : QFrame(parent)
32{
33 QHBoxLayout *layout = new QHBoxLayout(this);
34 layout->setAutoAdd(true);
35
36 new QLabel(i18n("Add something here"), this);
37}
38
39TaperPrefPageTwo::TaperPrefPageTwo(QWidget *parent)
40 : QFrame(parent)
41{
42 QHBoxLayout *layout = new QHBoxLayout(this);
43 layout->setAutoAdd(true);
44
45 new QLabel(i18n("Add something here"), this);
46}
47#include "pref.moc"
Note: See TracBrowser for help on using the repository browser.