Skip to content

Commit 322f2e8

Browse files
committed
Drop composer class from gui library
1 parent 0732754 commit 322f2e8

21 files changed

+19
-3706
lines changed

python/gui/qgspropertyoverridebutton.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ and QgsPropertyCollection).
2121
It allows users to specify field or expression based overrides
2222
which should be applied to a property of an object. Eg, this widget
2323
is used for controlling data defined overrides in symbology, labeling
24-
and composer.
24+
and layouts.
2525

2626
.. versionadded:: 3.0
2727
%End

src/app/qgisapp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
154154
#include "qgsbrowserdockwidget.h"
155155
#include "qgsadvanceddigitizingdockwidget.h"
156156
#include "qgsclipboard.h"
157-
#include "qgscomposerview.h"
158157
#include "qgsconfigureshortcutsdialog.h"
159158
#include "qgscoordinatetransform.h"
160159
#include "qgscoordinateutils.h"

src/gui/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ SET(QGIS_GUI_SRCS
225225
qgscolorschemelist.cpp
226226
qgscolorswatchgrid.cpp
227227
qgscolorwidgets.cpp
228-
qgscomposeritemcombobox.cpp
229-
qgscomposerruler.cpp
230-
qgscomposerview.cpp
231228
qgscompoundcolorwidget.cpp
232229
qgsconfigureshortcutsdialog.cpp
233230
qgscredentialdialog.cpp
@@ -400,10 +397,6 @@ SET(QGIS_GUI_MOC_HDRS
400397
qgscolorschemelist.h
401398
qgscolorswatchgrid.h
402399
qgscolorwidgets.h
403-
qgscomposerinterface.h
404-
qgscomposeritemcombobox.h
405-
qgscomposerruler.h
406-
qgscomposerview.h
407400
qgscompoundcolorwidget.h
408401
qgsconfigureshortcutsdialog.h
409402
qgscredentialdialog.h
@@ -872,7 +865,6 @@ INCLUDE_DIRECTORIES(
872865
${CMAKE_SOURCE_DIR}/src/core
873866
${CMAKE_SOURCE_DIR}/src/core/annotations
874867
${CMAKE_SOURCE_DIR}/src/core/auth
875-
${CMAKE_SOURCE_DIR}/src/core/composer
876868
${CMAKE_SOURCE_DIR}/src/core/fieldformatter
877869
${CMAKE_SOURCE_DIR}/src/core/geometry
878870
${CMAKE_SOURCE_DIR}/src/core/layertree

src/gui/layout/qgslayoutdesignerinterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/***************************************************************************
2-
qgscomposerinterface.h
2+
qgslayoutdesignerinterface.h
33
---------------------
44
Date : July 2017
55
Copyright : (C) 2017 Nyall Dawson

src/gui/layout/qgslayoutitemwidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class QgsPropertyOverrideButton;
4040
// So QgsLayoutItemWidget HAS a QgsLayoutConfigObject to handle these common tasks.
4141
// Specific item property widgets (e.g., QgsLayoutMapWidget) should inherit from QgsLayoutItemBaseWidget
4242
// (which is a QgsPanelWidget) and also HAS a QgsLayoutConfigObject, with protected methods
43-
// which are just proxied through to the QgsComposerConfigObject.
43+
// which are just proxied through to the QgsLayoutConfigObject.
4444
// phew!
4545
// long story short - don't change this without good reason. If you add a new item type, inherit
4646
// from QgsLayoutItemBaseWidget and trust that everything else has been done for you.

src/gui/layout/qgslayoutmousehandles.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ double QgsLayoutMouseHandles::rectHandlerBorderTolerance()
319319
//get view scale factor
320320
double viewScaleFactor = mView->transform().m11();
321321

322-
//size of handle boxes depends on zoom level in composer view
322+
//size of handle boxes depends on zoom level in layout view
323323
double rectHandlerSize = 10.0 / viewScaleFactor;
324324

325325
//make sure the boxes don't get too large
@@ -510,7 +510,7 @@ QgsLayoutMouseHandles::MouseAction QgsLayoutMouseHandles::mouseActionForPosition
510510
QgsLayoutItem *item = dynamic_cast<QgsLayoutItem *>( graphicsItem );
511511
if ( item && item->isSelected() )
512512
{
513-
//cursor is over a selected composer item
513+
//cursor is over a selected layout item
514514
return QgsLayoutMouseHandles::MoveItem;
515515
}
516516
}

src/gui/layout/qgslayoutmousehandles.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ class GUI_EXPORT QgsLayoutMouseHandles: public QObject, public QGraphicsRectItem
143143
QPointF mLastMouseEventPos;
144144
//! Position of the mouse at beginning of move/resize (in scene coordinates)
145145
QPointF mBeginMouseEventPos;
146-
//! Position of composer handles at beginning of move/resize (in scene coordinates)
146+
//! Position of layout handles at beginning of move/resize (in scene coordinates)
147147
QPointF mBeginHandlePos;
148-
//! Width and height of composer handles at beginning of resize
148+
//! Width and height of layout handles at beginning of resize
149149
double mBeginHandleWidth = 0;
150150
double mBeginHandleHeight = 0;
151151

@@ -200,7 +200,7 @@ class GUI_EXPORT QgsLayoutMouseHandles: public QObject, public QGraphicsRectItem
200200
//sets the mouse cursor for the QGraphicsView attached to the composition (workaround qt bug #3732)
201201
void setViewportCursor( Qt::CursorShape cursor );
202202

203-
//resets the composer window status bar to the default message
203+
//resets the layout designer status bar to the default message
204204
void resetStatusBar();
205205

206206
//! Snaps an item or point (depending on mode) originating at originalPoint to the grid or align rulers

src/gui/layout/qgslayoutruler.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
#ifndef QGSLAYOUTRULER_H
1616
#define QGSLAYOUTRULER_H
1717

18-
#include "qgscomposeritem.h"
18+
#include "qgis_gui.h"
19+
#include "qgis_sip.h"
1920
#include <QWidget>
2021
#include <QPointer>
21-
#include "qgis_gui.h"
22+
#include <QMenu>
23+
#include <memory>
2224

2325
class QgsLayout;
2426
class QGraphicsLineItem;

src/gui/layout/qgslayoutview.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "qgslayoutpagecollection.h"
3535
#include "qgslayoutundostack.h"
3636
#include "qgslayoutreportsectionlabel.h"
37+
#include "qgsreadwritecontext.h"
3738
#include <memory>
3839
#include <QDesktopWidget>
3940
#include <QMenu>

src/gui/qgscolorschemelist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ QModelIndex QgsColorSchemeModel::index( int row, int column, const QModelIndex &
320320

321321
if ( !parent.isValid() && row >= 0 && row < mColors.size() )
322322
{
323-
//return an index for the composer item at this position
323+
//return an index for the color item at this position
324324
return createIndex( row, column );
325325
}
326326

0 commit comments

Comments
 (0)