~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to plan/workpackage/view.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <KoView.h>
25
25
 
26
 
#include <QMenu>
 
26
#include <QStackedWidget>
27
27
 
28
28
#include <kprocess.h>
29
29
 
32
32
class QPrinter;
33
33
class QPrintDialog;
34
34
class QLabel;
 
35
class QMenu;
 
36
class QActionGroup;
35
37
 
36
38
class KAction;
37
39
class KToggleAction;
76
78
 
77
79
class Part;
78
80
class View;
 
81
class AbstractView;
79
82
class TaskWorkPackageView;
 
83
class TaskWPGanttView;
80
84
 
81
85
//-------------
82
 
class View : public QWidget
 
86
class View : public QStackedWidget
83
87
{
84
88
    Q_OBJECT
85
89
 
97
101
//    virtual ViewAdaptor* dbusObject();
98
102
 
99
103
    virtual bool loadContext();
100
 
    virtual void saveContext( QDomElement &context ) const;
 
104
    virtual void saveContext() const;
101
105
 
102
106
    ScheduleManager *currentScheduleManager() const;
103
107
    long currentScheduleId() const;
104
108
    
105
109
    TaskWorkPackageView *createTaskWorkPackageView();
106
 
//     ViewBase *createTaskInfoView();
107
 
//     ViewBase *createDocumentsView();
108
 
//     ViewBase *createTaskView();
 
110
    TaskWPGanttView *createGanttView();
109
111
 
110
112
    KPlatoWork_MainWindow *kplatoWorkMainWindow() const;
111
113
    
132
134
    void slotTaskCompletion();
133
135
 
134
136
protected slots:
 
137
    void slotCurrentChanged( int index );
135
138
    void slotProgressChanged( int value );
136
139
 
137
140
    void slotEditDocument();
146
149
    void slotRemoveSelectedPackages();
147
150
    void slotSelectionChanged();
148
151
 
 
152
    void slotViewList();
 
153
    void slotViewGantt();
 
154
 
149
155
protected:
150
156
    virtual void updateReadWrite( bool readwrite );
151
157
 
152
158
    QAction *addScheduleAction( Schedule *sch );
153
159
    void setLabel();
154
 
    TaskWorkPackageView *currentView() const;
 
160
    AbstractView *currentView() const;
155
161
 
156
162
private:
157
163
    void createViews();
171
177
    QAction *actionPaste;
172
178
    KAction *actionRemoveSelectedPackages;
173
179
 
 
180
    // ------ View
 
181
    QAction *actionViewList;
 
182
    QAction *actionViewGantt;
 
183
 
174
184
    // ------ Settings
175
185
    KAction *actionConfigure;
176
186