-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jajberni/develop
Major rewrite of the plugin
- Loading branch information
Showing
31 changed files
with
2,271 additions
and
1,200 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,3 +99,6 @@ ENV/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.idea | ||
.vscode |
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 |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
# | ||
# Creates a field layout for a typical row-column breeder's trial | ||
# ------------------- | ||
# begin : 2018-02-20 | ||
# begin : 2021-05-14 | ||
# git sha : $Format:%H$ | ||
# copyright : (C) 2018 by Jose A. Jimenez Berni | ||
# email : jose.jimenez.[email protected] | ||
# copyright : (C) 2021 by Jose A. _Jimenez-Berni | ||
# email : berni@ias.csic.es | ||
# ***************************************************************************/ | ||
# | ||
#/*************************************************************************** | ||
|
@@ -38,17 +38,15 @@ LOCALES = | |
# translation | ||
SOURCES = \ | ||
__init__.py \ | ||
breeder_map.py breeder_map_dialog.py \ | ||
about_dialog.py | ||
breeder_map.py breeder_map_dockwidget.py | ||
|
||
PLUGINNAME = BreederMap | ||
PLUGINNAME = breeder_map | ||
|
||
PY_FILES = \ | ||
__init__.py \ | ||
breeder_map.py breeder_map_dialog.py \ | ||
about_dialog.py | ||
breeder_map.py breeder_map_dockwidget.py | ||
|
||
UI_FILES = breeder_map_dialog_base.ui ui_about_dialog.ui | ||
UI_FILES = breeder_map_dockwidget_base.ui | ||
|
||
EXTRAS = metadata.txt icon.png | ||
|
||
|
@@ -58,6 +56,16 @@ COMPILED_RESOURCE_FILES = resources.py | |
|
||
PEP8EXCLUDE=pydev,resources.py,conf.py,third_party,ui | ||
|
||
# QGISDIR points to the location where your plugin should be installed. | ||
# This varies by platform, relative to your HOME directory: | ||
# * Linux: | ||
# .local/share/QGIS/QGIS3/profiles/default/python/plugins/ | ||
# * Mac OS X: | ||
# Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins | ||
# * Windows: | ||
# AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins' | ||
|
||
QGISDIR=C:\Users\berni\AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins | ||
|
||
################################################# | ||
# Normally you would not need to edit below here | ||
|
@@ -69,14 +77,19 @@ PLUGIN_UPLOAD = $(c)/plugin_upload.py | |
|
||
RESOURCE_SRC=$(shell grep '^ *<file' resources.qrc | sed 's@</file>@@g;s/.*>//g' | tr '\n' ' ') | ||
|
||
QGISDIR=.qgis2 | ||
|
||
default: compile | ||
.PHONY: default | ||
default: | ||
@echo While you can use make to build and deploy your plugin, pb_tool | ||
@echo is a much better solution. | ||
@echo A Python script, pb_tool provides platform independent management of | ||
@echo your plugins and runs anywhere. | ||
@echo You can install pb_tool using: pip install pb_tool | ||
@echo See https://g-sherman.github.io/plugin_build_tool/ for info. | ||
|
||
compile: $(COMPILED_RESOURCE_FILES) | ||
|
||
%.py : %.qrc $(RESOURCES_SRC) | ||
pyrcc4 -o $*.py $< | ||
pyrcc5 -o $*.py $< | ||
|
||
%.qm : %.ts | ||
$(LRELEASE) $< | ||
|
@@ -115,7 +128,7 @@ deploy: compile doc transcompile | |
cp -vfr i18n $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME) | ||
cp -vfr $(HELP) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)/help | ||
# Copy extra directories if any | ||
# (temporarily removed) | ||
(foreach EXTRA_DIR,(EXTRA_DIRS), cp -R (EXTRA_DIR) (HOME)/(QGISDIR)/python/plugins/(PLUGINNAME)/;) | ||
|
||
|
||
# The dclean target removes compiled python files from plugin directory | ||
|
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# BreederMap | ||
QGIS plug-in that creates a field layout for a typical row-column breeder's trial | ||
# Breeder Map | ||
Breeder Map is a QGIS plugin for assisting with the processing and extraction of field phenomics data. |
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 |
---|---|---|
|
@@ -4,10 +4,11 @@ | |
BreederMap | ||
A QGIS plugin | ||
Creates a field layout for a typical row-column breeder's trial | ||
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/ | ||
------------------- | ||
begin : 2018-02-20 | ||
copyright : (C) 2018 by Jose A. Jimenez Berni | ||
email : jose.jimenez.[email protected] | ||
begin : 2021-05-14 | ||
copyright : (C) 2021 by Jose A. _Jimenez-Berni | ||
email : berni@ias.csic.es | ||
git sha : $Format:%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 |
---|---|---|
@@ -1,16 +1,21 @@ | ||
import os | ||
|
||
from PyQt4 import QtGui, uic | ||
from qgis.PyQt import uic | ||
from qgis.PyQt.QtWidgets import QDialog | ||
import sys | ||
|
||
sys.path.append(os.path.dirname(__file__)) | ||
FORM_CLASS, _ = uic.loadUiType(os.path.join( | ||
os.path.dirname(__file__), 'ui_about_dialog.ui')) | ||
os.path.dirname(__file__), 'ui_about_dialog.ui'), resource_suffix='') | ||
|
||
class AboutDialog(QtGui.QDialog, FORM_CLASS): | ||
def __init__(self): | ||
QtGui.QDialog.__init__(self) | ||
|
||
class AboutDialog(QDialog, FORM_CLASS): | ||
def __init__(self, parent=None): | ||
QDialog.__init__(self) | ||
# Set up the user interface from Designer. | ||
# After setupUI you can access any designer object by doing | ||
# self.<objectname>, and you can use autoconnect slots - see | ||
# http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html | ||
# #widgets-and-dialogs-with-auto-connect | ||
|
||
self.setupUi(self) |
Oops, something went wrong.