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 #1325 from 3nids/qtdesignerplugin
QGIS custom widgets plugins for Qt Designer
- Loading branch information
Showing
32 changed files
with
1,374 additions
and
499 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
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,49 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
*************************************************************************** | ||
customwidgets.py | ||
--------------------- | ||
Date : May 2014 | ||
Copyright : (C) 2014 by Denis Rouzaud | ||
Email : denis.rouzaud@gmail.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. * | ||
* * | ||
*************************************************************************** | ||
""" | ||
|
||
""" | ||
This file is used by pyuic to redirect includes | ||
in custom widgets to the correct QGIS python packages. | ||
It is copied on installation in /pythonX/dist-packages/PyQt4/uic/widget-plugins/ | ||
""" | ||
|
||
#pluginType = CW_FILTER | ||
#def getFilter(): | ||
# import qgis.gui | ||
# | ||
# QGIS_widgets = {} | ||
# for pyClass in dir(qgis.gui): | ||
# QGIS_widgets[pyClass] = 'qgis.gui' | ||
# | ||
# def _QGISfilter(widgetname, baseclassname, module): | ||
# print widgetname, baseclassname, module | ||
# if widgetname in QGIS_widgets: | ||
# return (MATCH, (widgetname, baseclassname, QGIS_widgets[widgetname])) | ||
# else: | ||
# return (NO_MATCH, None) | ||
# | ||
# return _QGISfilter | ||
|
||
|
||
|
||
pluginType = MODULE | ||
def moduleInformation(): | ||
import qgis.gui | ||
return "qgis.gui", dir(qgis.gui) | ||
|
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
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
Oops, something went wrong.