Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d446c0a
commit 3e06d0a
Showing
16 changed files
with
605 additions
and
5 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
79 changes: 79 additions & 0 deletions
79
images/themes/default/temporal_navigation/vcr_settings.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
46 changes: 46 additions & 0 deletions
46
python/gui/auto_generated/qgstemporalmapsettingsdialog.sip.in
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,46 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgstemporalmapsettingsdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsTemporalMapSettingsDialog : QDialog | ||
{ | ||
%Docstring | ||
The QgsTemporalMapSettingsDialog class | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgstemporalmapsettingsdialog.h" | ||
%End | ||
public: | ||
|
||
QgsTemporalMapSettingsDialog( QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags() ); | ||
%Docstring | ||
Constructor for QgsTemporalMapSettingsDialog | ||
%End | ||
|
||
~QgsTemporalMapSettingsDialog(); | ||
|
||
double frameRateValue(); | ||
%Docstring | ||
Returns the value of frame rate from widget. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgstemporalmapsettingsdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
52 changes: 52 additions & 0 deletions
52
python/gui/auto_generated/qgstemporalmapsettingswidget.sip.in
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 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgstemporalmapsettingswidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsTemporalMapSettingsWidget : QWidget | ||
{ | ||
%Docstring | ||
The QgsTemporalMapSettingsWidget class | ||
|
||
.. versionadded:: 3.14 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgstemporalmapsettingswidget.h" | ||
%End | ||
public: | ||
|
||
QgsTemporalMapSettingsWidget( QWidget *parent = 0 ); | ||
%Docstring | ||
Constructor for QgsTemporalMapSettingsWidget | ||
%End | ||
|
||
~QgsTemporalMapSettingsWidget(); | ||
|
||
double frameRateValue(); | ||
%Docstring | ||
Returns the value of frame rate from widget input | ||
%End | ||
|
||
void setFrameRateValue( double value ); | ||
%Docstring | ||
Sets the value of frame rate from the vcr widget. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgstemporalmapsettingswidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
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,56 @@ | ||
/*************************************************************************** | ||
qgstemporalmapsettingsdialog.cpp | ||
--------------- | ||
begin : March 2020 | ||
copyright : (C) 2020 by Samweli Mwakisambwe | ||
email : samweli at kartoza 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 "qgstemporalmapsettingsdialog.h" | ||
#include "qgsgui.h" | ||
#include "qgstemporalmapsettingswidget.h" | ||
|
||
QgsTemporalMapSettingsDialog::QgsTemporalMapSettingsDialog( QWidget *parent, Qt::WindowFlags flags ) | ||
: QDialog( parent, flags ) | ||
{ | ||
setupUi( this ); | ||
|
||
connect( this, &QDialog::accepted, this, &QgsTemporalMapSettingsDialog::apply ); | ||
connect( this, &QDialog::rejected, this, &QgsTemporalMapSettingsDialog::onCancel ); | ||
|
||
QVBoxLayout *layout = new QVBoxLayout(); | ||
mTemporalMapSettingsWidget = new QgsTemporalMapSettingsWidget( this ); | ||
layout->addWidget( mTemporalMapSettingsWidget ); | ||
setLayout( layout ); | ||
setWindowTitle( tr( "Temporal Map Settings" ) ); | ||
|
||
mTemporalMapSettingsWidget->setFrameRateValue( 1 ); | ||
|
||
hide(); | ||
} | ||
|
||
QgsTemporalMapSettingsDialog::~QgsTemporalMapSettingsDialog() | ||
{ | ||
} | ||
|
||
void QgsTemporalMapSettingsDialog::apply() | ||
{ | ||
} | ||
|
||
void QgsTemporalMapSettingsDialog::onCancel() | ||
{ | ||
|
||
} | ||
double QgsTemporalMapSettingsDialog::frameRateValue() | ||
{ | ||
return mTemporalMapSettingsWidget->frameRateValue(); | ||
} |
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,63 @@ | ||
/*************************************************************************** | ||
qgstemporalmapsettingsdialog.h | ||
--------------- | ||
begin : March 2020 | ||
copyright : (C) 2020 by Samweli Mwakisambwe | ||
email : samweli at kartoza 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 QGSTEMPORALMAPSETTINGSDIALOG_H | ||
#define QGSTEMPORALMAPSETTINGSDIALOG_H | ||
|
||
#include "ui_qgstemporalmapsettingsdialogbase.h" | ||
#include "qgis_gui.h" | ||
|
||
class QgsTemporalMapSettingsWidget; | ||
|
||
/** | ||
* \ingroup gui | ||
* The QgsTemporalMapSettingsDialog class | ||
* | ||
* \since QGIS 3.14 | ||
*/ | ||
class GUI_EXPORT QgsTemporalMapSettingsDialog : public QDialog, private Ui::QgsTemporalMapSettingsDialogBase | ||
{ | ||
Q_OBJECT | ||
public: | ||
|
||
/** | ||
* Constructor for QgsTemporalMapSettingsDialog | ||
* | ||
*/ | ||
QgsTemporalMapSettingsDialog( QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() ); | ||
|
||
~QgsTemporalMapSettingsDialog() override; | ||
|
||
/** | ||
* Returns the value of frame rate from widget. | ||
*/ | ||
double frameRateValue(); | ||
|
||
private slots: | ||
|
||
//! \brief Applies the settings made in the dialog. | ||
void apply(); | ||
//! \brief Called when cancel button is pressed | ||
void onCancel(); | ||
|
||
private: | ||
|
||
//! Widget for handling temporal map settings | ||
QgsTemporalMapSettingsWidget *mTemporalMapSettingsWidget = nullptr; | ||
}; | ||
|
||
#endif // QGSTEMPORALMAPSETTINGSDIALOG_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/*************************************************************************** | ||
qgstemporalmapsettingswidget.cpp | ||
--------------- | ||
begin : March 2020 | ||
copyright : (C) 2020 by Samweli Mwakisambwe | ||
email : samweli at kartoza 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 "qgstemporalmapsettingswidget.h" | ||
#include "qgsgui.h" | ||
|
||
QgsTemporalMapSettingsWidget::QgsTemporalMapSettingsWidget( QWidget *parent ) | ||
: QWidget( parent ) | ||
{ | ||
setupUi( this ); | ||
} | ||
|
||
QgsTemporalMapSettingsWidget::~QgsTemporalMapSettingsWidget() | ||
{ | ||
} | ||
|
||
double QgsTemporalMapSettingsWidget::frameRateValue() | ||
{ | ||
return mFrameSpinBox->value(); | ||
} | ||
|
||
void QgsTemporalMapSettingsWidget::setFrameRateValue( double value ) | ||
{ | ||
mFrameSpinBox->setValue( value ); | ||
} |
Oops, something went wrong.