generated from kamangir/blue-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
towards datacube.label - kamangir/bolt#746
- Loading branch information
Showing
9 changed files
with
49 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
if not QGIS_is_live: | ||
from ..logger import Q_log | ||
from ..application import BLUE_GEO_QGIS_APPLICATION | ||
from ..QGIS import QGIS | ||
|
||
|
||
class BLUE_GEO_QGIS_APPLICATION_DATACUBE(BLUE_GEO_QGIS_APPLICATION): | ||
def __init__(self): | ||
super().__init__("datacube", "π§") | ||
|
||
def help_(self): | ||
Q_log( | ||
"datacube.label", | ||
"label the datacube.", | ||
icon=self.icon, | ||
) | ||
|
||
@property | ||
def label(self): | ||
self.log("πͺ") | ||
|
||
|
||
datacube = BLUE_GEO_QGIS_APPLICATION_DATACUBE() | ||
QGIS.add_app(datacube) |
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,18 +1,11 @@ | ||
if not QGIS_is_live: | ||
from .layer import Q_layer | ||
from .logger import Q_clear | ||
from .QGIS import QGIS | ||
from .project import Q_project | ||
|
||
|
||
def Q_help(clear=False): | ||
if clear: | ||
Q_clear(log=False) | ||
|
||
for thing in [ | ||
Q_layer, | ||
Q_project, | ||
] + [app for app in QGIS.app_list if app.name != "template"]: | ||
thing.help() | ||
|
||
QGIS.help_() | ||
for thing in [app for app in QGIS.app_list if app.name != "template"] + [QGIS]: | ||
thing.help_() |
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 |
---|---|---|
|
@@ -69,9 +69,6 @@ def add_layer( | |
if refresh: | ||
Q_refresh() | ||
|
||
def help(self): | ||
pass | ||
|
||
@property | ||
def filename(self): | ||
try: | ||
|
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 |
---|---|---|
|
@@ -9,9 +9,6 @@ | |
|
||
|
||
class ABCLI_QGIS_Project(object): | ||
def help(self): | ||
pass | ||
|
||
def exists( | ||
self, | ||
layer_name: str, | ||
|
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