Skip to content
Permalink
Browse files

Port ui for attribute table

  • Loading branch information
nyalldawson committed Nov 24, 2017
1 parent cca7c74 commit f76ed223ebf0287d371af45aa353ee3bd9aa03f6
@@ -36,6 +36,14 @@ class QgsLayoutMultiFrame: QgsLayoutObject, QgsLayoutUndoObjectInterface
UndoHtmlBreakDistance,
UndoHtmlSource,
UndoHtmlStylesheet,
UndoTableCellStyle,
UndoTableMaximumFeatures,
UndoTableMargin,
UndoTableHeaderFontColor,
UndoTableContentFontColor,
UndoTableGridStrokeWidth,
UndoTableGridColor,
UndoTableBackgroundColor,
UndoNone,
};

@@ -10,7 +10,7 @@



class QgsLayoutTableColumn
class QgsLayoutTableColumn : QObject
{
%Docstring
Stores properties of a column for a QgsLayoutTable. Some properties of aQgsLayoutTableColumn
@@ -178,6 +178,8 @@ SET(QGIS_APP_SRCS

layout/qgslayoutaddpagesdialog.cpp
layout/qgslayoutapputils.cpp
layout/qgslayoutattributeselectiondialog.cpp
layout/qgslayoutattributetablewidget.cpp
layout/qgslayoutdesignerdialog.cpp
layout/qgslayoutguidewidget.cpp
layout/qgslayouthtmlwidget.cpp
@@ -195,6 +197,7 @@ SET(QGIS_APP_SRCS
layout/qgslayoutpropertieswidget.cpp
layout/qgslayoutscalebarwidget.cpp
layout/qgslayoutshapewidget.cpp
layout/qgslayouttablebackgroundcolorsdialog.cpp

locator/qgsinbuiltlocatorfilters.cpp
locator/qgslocatoroptionswidget.cpp
@@ -389,6 +392,8 @@ SET (QGIS_APP_MOC_HDRS

layout/qgslayoutaddpagesdialog.h
layout/qgslayoutappmenuprovider.h
layout/qgslayoutattributeselectiondialog.h
layout/qgslayoutattributetablewidget.h
layout/qgslayoutdesignerdialog.h
layout/qgslayoutguidewidget.h
layout/qgslayouthtmlwidget.h
@@ -405,6 +410,7 @@ SET (QGIS_APP_MOC_HDRS
layout/qgslayoutpropertieswidget.h
layout/qgslayoutscalebarwidget.h
layout/qgslayoutshapewidget.h
layout/qgslayouttablebackgroundcolorsdialog.h

locator/qgsinbuiltlocatorfilters.h
locator/qgslocatoroptionswidget.h
@@ -39,6 +39,7 @@
#include "qgslayouthtmlwidget.h"
#include "qgslayoutscalebarwidget.h"
#include "qgslayoutitemattributetable.h"
#include "qgslayoutattributetablewidget.h"
#include "qgisapp.h"
#include "qgsmapcanvas.h"

@@ -285,7 +286,7 @@ void QgsLayoutAppUtils::registerGuiForKnownItemTypes()
auto attributeTableItemMetadata = qgis::make_unique< QgsLayoutItemGuiMetadata >( QgsLayoutItemRegistry::LayoutAttributeTable, QObject::tr( "Attribute Table" ), QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddTable.svg" ) ),
[ = ]( QgsLayoutItem * item )->QgsLayoutItemBaseWidget *
{
return nullptr; //new QgsLayoutHtmlWidget( qobject_cast< QgsLayoutFrame * >( item ) );
return new QgsLayoutAttributeTableWidget( qobject_cast< QgsLayoutFrame * >( item ) );
}, createRubberBand );
attributeTableItemMetadata->setItemCreationFunction( [ = ]( QgsLayout * layout )->QgsLayoutItem*
{

0 comments on commit f76ed22

Please sign in to comment.
You can’t perform that action at this time.