Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a lot of framework code for showing item properties in designer
And hook up a non-functional page properties widget which is shown when right clicking on a page in the view.
- Loading branch information
1 parent
0f90e23
commit 20029c2
Showing
12 changed files
with
385 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*************************************************************************** | ||
qgslayoutpagepropertieswidget.cpp | ||
--------------------------------- | ||
Date : July 2017 | ||
Copyright : (C) 2017 Nyall Dawson | ||
Email : nyall dot dawson at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#include "qgslayoutpagepropertieswidget.h" | ||
#include "qgslayoutitempage.h" | ||
|
||
QgsLayoutPagePropertiesWidget::QgsLayoutPagePropertiesWidget( QWidget *parent, QgsLayoutItem *layoutItem ) | ||
: QgsLayoutItemBaseWidget( parent, layoutItem ) | ||
, mPage( static_cast< QgsLayoutItemPage *>( layoutItem ) ) | ||
{ | ||
setupUi( this ); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/*************************************************************************** | ||
qgslayoutpagepropertieswidget.h | ||
------------------------------- | ||
Date : July 2017 | ||
Copyright : (C) 2017 Nyall Dawson | ||
Email : nyall dot dawson at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSLAYOUTPAGEPROPERTIESWIDGET_H | ||
#define QGSLAYOUTPAGEPROPERTIESWIDGET_H | ||
|
||
#include "qgis.h" | ||
#include "ui_qgslayoutpagepropertieswidget.h" | ||
|
||
#include "qgslayoutsize.h" | ||
#include "qgslayoutpoint.h" | ||
#include "qgslayoutitemwidget.h" | ||
#include "qgslayoutmeasurementconverter.h" | ||
|
||
class QgsLayoutItem; | ||
class QgsLayoutItemPage; | ||
|
||
/** | ||
* A widget for configuring properties of pages in a layout | ||
*/ | ||
class QgsLayoutPagePropertiesWidget : public QgsLayoutItemBaseWidget, private Ui::QgsLayoutPagePropertiesWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
|
||
/** | ||
* Constructor for QgsLayoutPagePropertiesWidget. | ||
*/ | ||
QgsLayoutPagePropertiesWidget( QWidget *parent, QgsLayoutItem *page ); | ||
|
||
private: | ||
|
||
QgsLayoutItemPage *mPage = nullptr; | ||
|
||
QgsLayoutMeasurementConverter mConverter; | ||
|
||
}; | ||
|
||
#endif // QGSLAYOUTPAGEPROPERTIESWIDGET_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.