]>
cloud.milkyroute.net Git - dolphin.git/blob - src/viewsettingspage.cpp
d4c7f5bae330df1c5120d0c26428cbc26242954a
1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
21 #include "viewsettingspage.h"
22 #include "generalviewsettingspage.h"
23 #include "iconsviewsettingspage.h"
24 #include "detailsviewsettingspage.h"
26 #include <Q3VBoxLayout>
33 #include <kiconloader.h>
35 ViewSettingsPage::ViewSettingsPage(DolphinMainWindow
* mainWindow
,
37 SettingsPageBase(parent
),
42 Q3VBoxLayout
* topLayout
= new Q3VBoxLayout(this, 0, KDialog::spacingHint());
44 QTabWidget
* tabWidget
= new QTabWidget(this);
46 // initialize 'General' tab
47 m_generalPage
= new GeneralViewSettingsPage(mainWindow
, tabWidget
);
48 tabWidget
->addTab(m_generalPage
, SmallIcon("view_choose"), i18n("General"));
50 // initialize 'Icons' tab
51 m_iconsPage
= new IconsViewSettingsPage(mainWindow
, tabWidget
);
52 tabWidget
->addTab(m_iconsPage
, SmallIcon("view_icon"), i18n("Icons"));
54 // initialize 'Details' tab
55 m_detailsPage
= new DetailsViewSettingsPage(mainWindow
, tabWidget
);
56 tabWidget
->addTab(m_detailsPage
, SmallIcon("fileview-text"), i18n("Details"));
58 topLayout
->addWidget(tabWidget
, 0, 0 );
61 ViewSettingsPage::~ViewSettingsPage()
65 void ViewSettingsPage::applySettings()
67 m_generalPage
->applySettings();
68 m_iconsPage
->applySettings();
69 m_detailsPage
->applySettings();
72 #include "viewsettingspage.moc"