~ubuntu-branches/debian/sid/calligraplan/sid

« back to all changes in this revision

Viewing changes to src/libs/ui/kptmilestoneprogresspanel.h

  • Committer: Package Import Robot
  • Author(s): Pino Toscano
  • Date: 2018-02-01 18:20:19 UTC
  • Revision ID: package-import@ubuntu.com-20180201182019-1qo7qaim5wejm5k9
Tags: upstream-3.1.0
ImportĀ upstreamĀ versionĀ 3.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the KDE project
 
2
   Copyright (C) 2005-2007 Dag Andersen <danders@get2net.dk>
 
3
 
 
4
   This library is free software; you can redistribute it and/or
 
5
   modify it under the terms of the GNU Library General Public
 
6
   License as published by the Free Software Foundation; either
 
7
   version 2 of the License, or (at your option) any later version.
 
8
 
 
9
   This library is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
   Library General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU Library General Public License
 
15
   along with this library; see the file COPYING.LIB.  If not, write to
 
16
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
 
18
*/
 
19
 
 
20
#ifndef KPTMILESTONEPROGRESSPANEL_H
 
21
#define KPTMILESTONEPROGRESSPANEL_H
 
22
 
 
23
#include "kplatoui_export.h"
 
24
 
 
25
#include "ui_kptmilestoneprogresspanelbase.h"
 
26
#include "kpttask.h"
 
27
 
 
28
 
 
29
namespace KPlato
 
30
{
 
31
 
 
32
class MacroCommand;
 
33
 
 
34
class MilestoneProgressPanelImpl : public QWidget, public Ui_MilestoneProgressPanelBase {
 
35
    Q_OBJECT
 
36
public:
 
37
    explicit MilestoneProgressPanelImpl(QWidget *parent=0, const char *name=0);
 
38
    
 
39
    void enableWidgets();
 
40
 
 
41
Q_SIGNALS:
 
42
    void changed();
 
43
    
 
44
public Q_SLOTS:
 
45
    void slotChanged();
 
46
    void slotFinishedChanged(bool state);
 
47
};
 
48
 
 
49
class MilestoneProgressPanel : public MilestoneProgressPanelImpl {
 
50
    Q_OBJECT
 
51
public:
 
52
    explicit MilestoneProgressPanel(Task &task, QWidget *parent=0, const char *name=0);
 
53
 
 
54
    MacroCommand *buildCommand();
 
55
 
 
56
private:
 
57
    Task &m_task;
 
58
    Completion &m_completion;
 
59
};
 
60
 
 
61
}  //KPlato namespace
 
62
 
 
63
#endif // MILESTONEPROGRESSPANEL_H