diff --git a/.gitignore b/.gitignore index 2b3fd79fb3e0e382b90df6651124ca016f484beb..0bbd95696748ed708279d84c6245b74255f8b947 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ doc/build/ doc/build/* qgisresources/ qgisresources/* +screenshots/ +screenshots/* example/*.aux.xml timeseriesviewer/ui/tmp.ui .* diff --git a/make/screenshots.py b/make/screenshots.py new file mode 100644 index 0000000000000000000000000000000000000000..096b083f48e9c72820ef895109e07def90a7f689 --- /dev/null +++ b/make/screenshots.py @@ -0,0 +1,23 @@ + + +# + +from timeseriesviewer.utils import * +from timeseriesviewer.main import TimeSeriesViewer +from timeseriesviewer import DIR_REPO, DIR_QGIS_RESOURCES +DIR_SCREENSHOTS = jp(DIR_REPO, 'screenshots') +os.makedirs(DIR_SCREENSHOTS, exist_ok=True) + +app = initQgisApplication(qgisResourceDir=DIR_QGIS_RESOURCES) + +TS = TimeSeriesViewer(None) +TS.show() +TS.loadExampleTimeSeries() + + + + + + +app.exec_() + diff --git a/timeseriesviewer/main.py b/timeseriesviewer/main.py index c5399c7cfc96926be57438d5a058fe68cf553fdc..6a9b5531dadc49ecdadeb2d49244138546f6ff18 100644 --- a/timeseriesviewer/main.py +++ b/timeseriesviewer/main.py @@ -676,6 +676,9 @@ class TimeSeriesViewer(QgisInterface, QObject): """Removes the plugin menu item and icon """ self.iface.removeToolBarIcon(self.action) + def show(self): + self.ui.show() + def run(self): #QApplication.processEvents() self.ui.show()