diff --git a/src/libs/ui/kpttaskprogressdialog.cpp b/src/libs/ui/kpttaskprogressdialog.cpp index 7d57f0c8..bfd98560 100644 --- a/src/libs/ui/kpttaskprogressdialog.cpp +++ b/src/libs/ui/kpttaskprogressdialog.cpp @@ -1,104 +1,104 @@ /* This file is part of the KDE project Copyright (C) 2005-2010 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 "kpttaskprogressdialog.h" #include "kpttaskprogresspanel.h" #include "kptcommand.h" #include "kptproject.h" #include "kpttask.h" #include "kptnode.h" #include "Help.h" #include namespace KPlato { TaskProgressDialog::TaskProgressDialog(Task &task, ScheduleManager *sm, StandardWorktime *workTime, QWidget *p) : KoDialog( p), m_node( &task ) { setCaption( i18n("Task Progress") ); setButtons( Ok|Cancel ); setDefaultButton( Ok ); showButtonSeparator( true ); m_panel = new TaskProgressPanel(task, sm, workTime, this); setMainWidget(m_panel); enableButtonOk(false); connect(m_panel, &TaskProgressPanelImpl::changed, this, &TaskProgressDialog::slotChanged); Project *proj = static_cast( task.projectNode() ); if ( proj ) { connect(proj, &Project::nodeRemoved, this, &TaskProgressDialog::slotNodeRemoved); } Help::add(this, xi18nc("@info:whatsthis", "Edit Task Progress" "" "This dialog consists of the following parts:" "" - "Edit mode control to define the behaviour of the dialog." + "Edit mode control to define the behavior of the dialog." "Controls to mark the task as started and finished." "Table to enter used effort for each resource." "Table for entry of task completion and remaining effort." "" "Edit modes:" "" "Per resource requires you to enter used effort for each resource assigned to this task." " This enables the most detailed tracking of effort- and cost usage." "Per task enables you to enter the minimum of information. When completion is changed," - " used effort and remaining effort is automatically calculated, but can of coursey be manually modified if needed." + " used effort and remaining effort is automatically calculated, but can of course be manually modified if needed." "" "You should select the desired edit mode when starting the task." "More..." "", Help::page("Manual/Task_Progress_Dialog"))); } void TaskProgressDialog::slotNodeRemoved( Node *node ) { if ( m_node == node ) { reject(); } } void TaskProgressDialog::slotChanged() { enableButtonOk(true); } MacroCommand *TaskProgressDialog::buildCommand() { MacroCommand *m = new MacroCommand(kundo2_i18n("Modify Task Progress")); bool modified = false; MacroCommand *cmd = m_panel->buildCommand(); if (cmd) { m->addCommand(cmd); modified = true; } if (!modified) { delete m; return 0; } return m; } } //KPlato namespace