2004-10-27 14:10:57 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
|
|
|
|
* *
|
|
|
|
* 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. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2007-04-19 18:30:20 +00:00
|
|
|
// reimplementing this
|
|
|
|
#include "preferencesdialog.h"
|
|
|
|
|
2004-10-27 14:10:57 +00:00
|
|
|
#include <klocale.h>
|
|
|
|
|
|
|
|
// single config pages
|
|
|
|
#include "dlggeneral.h"
|
2004-11-05 10:27:38 +00:00
|
|
|
#include "dlgperformance.h"
|
2004-10-27 14:10:57 +00:00
|
|
|
#include "dlgaccessibility.h"
|
2005-01-03 23:31:40 +00:00
|
|
|
#include "dlgpresentation.h"
|
2006-11-02 22:47:52 +00:00
|
|
|
#include "dlgidentity.h"
|
2006-12-22 15:04:01 +00:00
|
|
|
#include "dlgdebug.h"
|
2004-10-27 14:10:57 +00:00
|
|
|
|
|
|
|
PreferencesDialog::PreferencesDialog( QWidget * parent, KConfigSkeleton * skeleton )
|
|
|
|
: KConfigDialog( parent, "preferences", skeleton )
|
|
|
|
{
|
2007-09-11 22:27:39 +00:00
|
|
|
m_general = new DlgGeneral( this );
|
|
|
|
m_performance = new DlgPerformance( this );
|
|
|
|
m_accessibility = new DlgAccessibility( this );
|
|
|
|
m_presentation = new DlgPresentation( this );
|
|
|
|
m_identity = new DlgIdentity( this );
|
2007-10-06 17:54:33 +00:00
|
|
|
#ifdef OKULAR_DEBUG_CONFIGPAGE
|
2007-09-11 22:27:39 +00:00
|
|
|
m_debug = new DlgDebug( this );
|
2007-10-06 17:54:33 +00:00
|
|
|
#endif
|
2004-10-27 14:10:57 +00:00
|
|
|
|
2007-10-02 16:23:28 +00:00
|
|
|
addPage( m_general, i18n("General"), "graphics-viewer-document", i18n("General Options") );
|
2007-10-01 22:49:47 +00:00
|
|
|
addPage( m_accessibility, i18n("Accessibility"), "preferences-desktop-accessibility", i18n("Accessibility Reading Aids") );
|
2007-11-11 23:25:11 +00:00
|
|
|
addPage( m_performance, i18n("Performance"), "preferences-system-performance", i18n("Performance Tuning") );
|
2007-12-26 19:31:48 +00:00
|
|
|
addPage( m_presentation, i18n("Presentation"), "view-presentation",
|
2005-01-16 17:04:31 +00:00
|
|
|
i18n("Options for Presentation Mode") );
|
2007-12-26 19:31:48 +00:00
|
|
|
addPage( m_identity, i18n("Identity"), "preferences-desktop-personal",
|
2006-11-02 22:47:52 +00:00
|
|
|
i18n("Identity Settings") );
|
2007-10-06 17:54:33 +00:00
|
|
|
#ifdef OKULAR_DEBUG_CONFIGPAGE
|
2007-12-26 19:31:48 +00:00
|
|
|
addPage( m_debug, "Debug", "system-run", "Debug options" );
|
2007-10-06 17:54:33 +00:00
|
|
|
#endif
|
2004-10-27 14:10:57 +00:00
|
|
|
}
|