Commit 8783b930 authored by Laurent Montel's avatar Laurent Montel 😁

Remove dead code. Move multiagendaviewconfigwidget.ui in own directory

parent 44bfeed3
......@@ -178,7 +178,6 @@ set(korganizerprivate_LIB_SRCS
datechecker.cpp
datenavigator.cpp
datenavigatorcontainer.cpp
docprefs.cpp
exportwebdialog.cpp
filtereditdialog.cpp
htmlexportjob.cpp
......@@ -214,7 +213,7 @@ set(korganizerprivate_LIB_SRCS
kde4_add_ui_files(korganizerprivate_LIB_SRCS
filteredit_base.ui
kogroupwareprefspage.ui
multiagendaviewconfigwidget.ui
views/multiagendaview/multiagendaviewconfigwidget.ui
searchdialog_base.ui
)
......
/*
This file is part of KOrganizer.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net>
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.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
with any edition of Qt, and distribute the resulting executable,
without including the source code for Qt in the source distribution.
*/
#include "docprefs.h"
#include <KConfig>
#include <KConfigGroup>
#include <KStandardDirs>
KConfig *DocPrefs::mConfig = 0;
DocPrefs::DocPrefs( const QString &type )
{
if ( !mConfig ) {
mConfig = new KConfig(
KStandardDirs::locateLocal( "data", QLatin1String("korganizer/docprefs.") + type + QLatin1String(".kconfig") ) );
}
}
DocPrefs::~DocPrefs()
{
mConfig->sync();
}
void DocPrefs::setDoc( const QString &identifier )
{
mDocId = identifier;
}
QString DocPrefs::doc() const
{
return mDocId;
}
bool DocPrefs::readBoolEntry( const QString &id ) const
{
KConfigGroup docConfig( mConfig, mDocId );
bool result = docConfig.readEntry( id, false );
return result;
}
void DocPrefs::writeBoolEntry( const QString &id, bool value )
{
KConfigGroup docConfig( mConfig, mDocId );
docConfig.writeEntry( id, value );
}
int DocPrefs::readNumEntry( const QString &id ) const
{
KConfigGroup docConfig( mConfig, mDocId );
int result = docConfig.readEntry( id, 0 );
return result;
}
void DocPrefs::writeNumEntry( const QString &id, int value )
{
KConfigGroup docConfig( mConfig, mDocId );
docConfig.writeEntry( id, value );
}
/*
This file is part of KOrganizer.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net>
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.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
with any edition of Qt, and distribute the resulting executable,
without including the source code for Qt in the source distribution.
*/
#ifndef KORG_DOCPREFS_H
#define KORG_DOCPREFS_H
#include <QString>
class KConfig;
class DocPrefs
{
public:
explicit DocPrefs( const QString &type=QLatin1String("general") );
~DocPrefs();
void setDoc( const QString &identifier );
QString doc() const;
bool readBoolEntry( const QString &identifier ) const;
void writeBoolEntry( const QString &identifier, bool value );
int readNumEntry( const QString &identifier ) const;
void writeNumEntry( const QString &identifier, int value );
private:
static KConfig *mConfig;
QString mDocId;
};
#endif
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ViewConfigurationWidget</class>
<widget class="QWidget" name="ViewConfigurationWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>306</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QWidget" name="calendarWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="useCustomCalendarSelection">
<property name="text">
<string>Show custom calendars</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment