OSDN Git Service

93f251a88b44d3b8f6d8677aa38332369f19fff0
[kita/kita.git] / kita / src / prefs / uiprefpage.cpp
1 /***************************************************************************
2 *   Copyright (C) 2003 by Hideki Ikemoto                                  *
3 *   ikemo@users.sourceforge.jp                                            *
4 *                                                                         *
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.                                   *
9 ***************************************************************************/
10
11 #include "uiprefpage.h"
12
13 #include <ktoolinvocation.h>
14
15 using namespace Kita;
16
17 UIPrefPage::UIPrefPage(QWidget* parent) : AbstractPrefPage(parent)
18 {
19     setupUi(this);
20     load();
21     connect(editFileAssociation, SIGNAL(leftClickedUrl()),
22             SLOT(slotEditFileAssociation()));
23 }
24
25 void UIPrefPage::apply()
26 {
27 }
28
29 void UIPrefPage::load()
30 {
31 }
32
33 void UIPrefPage::reset()
34 {
35     kcfg_AlwaysUseTab->setChecked(true);
36     kcfg_MarkTime->setValue(24);
37     kcfg_ShowMailAddress->setChecked(false);
38     kcfg_ShowNum->setValue(100);
39     //kcfg_ListSortOrder->setButton(GlobalConfig::EnumListSortOrder::Mark);TODO
40     kcfg_PartMimeList->setText("image/gif,image/jpeg,image/png,image/x-bmp");
41     kcfg_UsePart->setChecked(true);
42 }
43
44 void UIPrefPage::slotEditFileAssociation()
45 {
46     KToolInvocation::kdeinitExec("kcmshell", QStringList("filetypes"));
47 }