4
4
5
5
from qgis .PyQt .QtCore import QCoreApplication , Qt , QTranslator
6
6
from qgis .PyQt .QtGui import QIcon
7
- from qgis .PyQt .QtWidgets import QAction , QMessageBox , QWidget
7
+ from qgis .PyQt .QtWidgets import QAction , QWidget
8
8
from qgis .utils import iface
9
9
10
10
from arho_feature_template .core .feature_template_library import FeatureTemplater , TemplateGeometryDigitizeMapTool
13
13
from arho_feature_template .qgis_plugin_tools .tools .custom_logging import setup_logger , teardown_logger
14
14
from arho_feature_template .qgis_plugin_tools .tools .i18n import setup_translation
15
15
from arho_feature_template .qgis_plugin_tools .tools .resources import plugin_name
16
- from arho_feature_template .utils .misc_utils import get_active_plan_id , get_lambda_settings
17
16
18
17
if TYPE_CHECKING :
19
18
from qgis .gui import QgisInterface , QgsMapTool
@@ -164,15 +163,6 @@ def initGui(self) -> None: # noqa N802
164
163
add_to_toolbar = True ,
165
164
)
166
165
167
- self .validate_plan_action = self .add_action (
168
- "" ,
169
- text = "Vahvista kaava" ,
170
- triggered_callback = self .validate_plan ,
171
- add_to_menu = True ,
172
- add_to_toolbar = True ,
173
- status_tip = "Vahvista kaava" ,
174
- )
175
-
176
166
self .plugin_settings_action = self .add_action (
177
167
"" ,
178
168
text = "Asetukset" ,
@@ -192,17 +182,6 @@ def add_new_plan(self):
192
182
def load_existing_land_use_plan (self ):
193
183
self .plan_manager .load_land_use_plan ()
194
184
195
- def validate_plan (self ):
196
- """Validate the plan."""
197
- lambda_host , lambda_port = get_lambda_settings ()
198
-
199
- # Testing.
200
- QMessageBox .information (
201
- None ,
202
- "Lambda asetukset" ,
203
- f"Lambdan isäntä: { lambda_host } \n Lambdan portti: { lambda_port } \n Aktiivinen kaava: { active_plan } " ,
204
- )
205
-
206
185
def open_settings (self ):
207
186
"""Open the plugin settings dialog."""
208
187
settings = PluginSettings ()
0 commit comments