diff --git a/src/config/kptconfigbehaviorpanel.cpp b/src/config/kptconfigbehaviorpanel.cpp deleted file mode 100644 index 68131638..00000000 --- a/src/config/kptconfigbehaviorpanel.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2004, 2007 Dag Andersen - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. -*/ - -// clazy:excludeall=qstring-arg -#include "kptconfigbehaviorpanel.h" - -#include "kptdatetime.h" -#include "kptfactory.h" - -namespace KPlato -{ - -ConfigBehaviorPanel::ConfigBehaviorPanel(Behavior &behavior, QWidget *p, const char *n) - : ConfigBehaviorPanelBase(p, n), - m_oldvalues(behavior), - m_behavior(behavior) -{ - setStartValues(); - - allowOverbooking->setEnabled(false); // not yet used -} - -void ConfigBehaviorPanel::setStartValues() { - calculationGroup->setButton(m_oldvalues.calculationMode); - allowOverbooking->setChecked(m_oldvalues.allowOverbooking); -} - -bool ConfigBehaviorPanel::ok() { - return true; -} - -bool ConfigBehaviorPanel::apply() { - m_behavior.calculationMode = calculationGroup->selectedId(); - m_behavior.allowOverbooking = allowOverbooking->isChecked(); - return true; -} - - -} //KPlato namespace diff --git a/src/config/kptconfigbehaviorpanel.h b/src/config/kptconfigbehaviorpanel.h deleted file mode 100644 index e33bec84..00000000 --- a/src/config/kptconfigbehaviorpanel.h +++ /dev/null @@ -1,48 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2004, 2007 Dag Andersen - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. -*/ - -#ifndef KPTCONFIGBEHAVIORPANEL_H -#define KPTCONFIGBEHAVIORPANEL_H - -#include "kptconfigbehaviorpanelbase.h" -#include "kptconfig.h" - - -namespace KPlato -{ - - -class ConfigBehaviorPanel : public ConfigBehaviorPanelBase { - Q_OBJECT -public: - explicit ConfigBehaviorPanel(Behavior &behavior, QWidget *parent=0, const char *name=0); - - void setStartValues(); - bool ok(); - bool apply(); - -private: - Behavior m_oldvalues; - Behavior &m_behavior; - -}; - -} //KPlato namespace - -#endif // CONFIGBEHAVIORPANEL_H diff --git a/src/config/kptconfigbehaviorpanelbase.ui b/src/config/kptconfigbehaviorpanelbase.ui deleted file mode 100644 index eea2ee6b..00000000 --- a/src/config/kptconfigbehaviorpanelbase.ui +++ /dev/null @@ -1,122 +0,0 @@ - - - Dag Andersen <danders@get2net.dk> - ConfigBehaviorPanelBase - - - - 0 - 0 - 307 - 179 - - - - - - - Calculation - - - - - - Manual - - - - - - - Immediate on change - - - - - - - - - - Constraints - - - - - - Allow overbooking of resources - - - - - - - - - qPixmapFromMimeSource - - - Q3GroupBox - QGroupBox -
Qt3Support/Q3GroupBox
- 1 -
- - Q3ButtonGroup - Q3GroupBox -
Qt3Support/Q3ButtonGroup
- 1 -
-
- - - - calcManual - toggled(bool) - ConfigBehaviorPanelBase - slotChanged() - - - 20 - 20 - - - 20 - 20 - - - - - calcImmedate - toggled(bool) - ConfigBehaviorPanelBase - slotChanged() - - - 20 - 20 - - - 20 - 20 - - - - - allowOverbooking - toggled(bool) - ConfigBehaviorPanelBase - slotChanged() - - - 20 - 20 - - - 20 - 20 - - - - -
diff --git a/src/config/kptconfigbehaviorpanelbase.ui.h b/src/config/kptconfigbehaviorpanelbase.ui.h deleted file mode 100644 index 62de6800..00000000 --- a/src/config/kptconfigbehaviorpanelbase.ui.h +++ /dev/null @@ -1,35 +0,0 @@ -/**************************************************************************** -** ui.h extension file, included from the uic-generated form implementation. -** -** If you want to add, delete, or rename functions or slots, use -** Qt Designer to update this file, preserving your code. -** -** You should not define a constructor or destructor in this file. -** Instead, write your code in functions called init() and destroy(). -** These will automatically be called by the form's constructor and -** destructor. -*****************************************************************************/ - -/* This file is part of the KDE project - Copyright (C) 2004, 2007 Dag Andersen - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. -*/ - -void ConfigBehaviorPanelBase::slotChanged() -{ - emit changed(); -}