File tree 3 files changed +56
-0
lines changed
3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ SET(QGIS_CORE_SRCS
133
133
composer/qgsnumericscalebarstyle.cpp
134
134
composer/qgssingleboxscalebarstyle.cpp
135
135
composer/qgsticksscalebarstyle.cpp
136
+ composer/qgscomposermultiframe.cpp
136
137
composer/qgscomposition.cpp
137
138
138
139
pal/costcalculator.cpp
@@ -280,6 +281,7 @@ SET(QGIS_CORE_MOC_HDRS
280
281
composer/qgscomposerlabel.h
281
282
composer/qgscomposershape.h
282
283
composer/qgscomposerattributetable.h
284
+ composer/qgscomposermultiframe.h
283
285
composer/qgscomposition.h
284
286
285
287
composer/qgslegendmodel.h
Original file line number Diff line number Diff line change
1
+ #include " qgscomposermultiframe.h"
2
+
3
+ QgsComposerMultiFrame::QgsComposerMultiFrame ( QgsComposition* c ): mComposition( c )
4
+ {
5
+ }
6
+
7
+ QgsComposerMultiFrame::QgsComposerMultiFrame (): mComposition( 0 )
8
+ {
9
+ }
10
+
11
+ QgsComposerMultiFrame::~QgsComposerMultiFrame ()
12
+ {
13
+ }
14
+
15
+ void QgsComposerMultiFrame::recalculateFrameSizes ()
16
+ {
17
+ // todo...
18
+ }
Original file line number Diff line number Diff line change
1
+ #ifndef QGSCOMPOSERMULTIFRAME_H
2
+ #define QGSCOMPOSERMULTIFRAME_H
3
+
4
+ #include < QObject>
5
+ #include < QSizeF>
6
+
7
+ class QgsComposerItem ;
8
+ class QgsComposition ;
9
+
10
+ /* *Abstract base class for composer entries with the ability to distribute the content to several frames (items)*/
11
+ class QgsComposerMultiFrame : public QObject
12
+ {
13
+ Q_OBJECT
14
+ public:
15
+
16
+ enum ResizeMode
17
+ {
18
+ ExtendToNextPage = 0 , // duplicates last frame to next page to fit the total size
19
+ UseExistingFrames //
20
+ };
21
+
22
+ QgsComposerMultiFrame ( QgsComposition* c );
23
+ virtual ~QgsComposerMultiFrame ();
24
+ virtual QSizeF totalSize () = 0;
25
+
26
+ protected:
27
+ QgsComposition* mComposition ;
28
+ QList<QgsComposerItem*> mFrameItems ;
29
+
30
+ void recalculateFrameSizes ();
31
+
32
+ private:
33
+ QgsComposerMultiFrame (); // forbidden
34
+ };
35
+
36
+ #endif // QGSCOMPOSERMULTIFRAME_H
You can’t perform that action at this time.
0 commit comments