18 #ifndef QGSLAYOUTPICTUREWIDGET_H 19 #define QGSLAYOUTPICTUREWIDGET_H 25 #include "ui_qgslayoutpicturewidgetbase.h" 47 void addStandardDirectoriesToPreview();
50 void mPictureBrowseButton_clicked();
51 void mPictureLineEdit_editingFinished();
52 void mPictureRotationSpinBox_valueChanged(
double d );
53 void mPreviewListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous );
54 void mAddDirectoryButton_clicked();
55 void mRemoveDirectoryButton_clicked();
56 void mRotationFromComposerMapCheckBox_stateChanged(
int state );
58 void mResizeModeComboBox_currentIndexChanged(
int index );
59 void mAnchorPointComboBox_currentIndexChanged(
int index );
65 void resizeEvent( QResizeEvent *event )
override;
69 void populateDataDefinedButtons();
73 void setGuiElementValues();
76 void setPicRotationSpinValue(
double r );
81 void loadPicturePreviews(
bool collapsed );
83 void mFillColorButton_colorChanged(
const QColor &color );
84 void mStrokeColorButton_colorChanged(
const QColor &color );
85 void mStrokeWidthSpinBox_valueChanged(
double d );
86 void mPictureRotationOffsetSpinBox_valueChanged(
double d );
87 void mNorthTypeComboBox_currentIndexChanged(
int index );
90 QPointer< QgsLayoutItemPicture > mPicture;
95 bool mPreviewsLoaded =
false;
98 int addDirectoryToPreview(
const QString &path );
101 bool testSvgFile(
const QString &filename )
const;
103 bool testImageFile(
const QString &filename )
const;
106 QIcon svgToIcon(
const QString &filePath )
const;
108 void updateSvgParamGui(
bool resetValues =
true );
111 #endif // QGSLAYOUTPICTUREWIDGET_H Base class for graphical items within a QgsLayout.
A layout item subclass that displays SVG files or raster format images (jpg, png, ...
Interface for master layout type objects, such as print layouts and reports.