Skip to content

Commit 322ac91

Browse files
committed
Add export epanet button
Update qmls for add new features
1 parent 43550d9 commit 322ac91

20 files changed

+3711
-2277
lines changed

Epa2GIS.py

Lines changed: 583 additions & 584 deletions
Large diffs are not rendered by default.

ExportEpanetInpFiles_dialog.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
/***************************************************************************
4+
ExportEpanetInpFilesDialog
5+
A QGIS plugin
6+
Export shapefiles to epanet input files
7+
-------------------
8+
begin : 2017-04-20
9+
git sha : $Format:%H$
10+
copyright : (C) 2017 by KIOS Research Center
11+
email : mariosmsk@gmail.com
12+
***************************************************************************/
13+
14+
/***************************************************************************
15+
* *
16+
* This program is free software; you can redistribute it and/or modify *
17+
* it under the terms of the GNU General Public License as published by *
18+
* the Free Software Foundation; either version 2 of the License, or *
19+
* (at your option) any later version. *
20+
* *
21+
***************************************************************************/
22+
"""
23+
24+
from qgis.PyQt import QtGui, uic, QtCore
25+
from qgis.PyQt.QtWidgets import QDialog
26+
import os
27+
28+
FORM_CLASS, _ = uic.loadUiType(os.path.join(
29+
os.path.dirname(__file__), 'ExportEpanetInpFiles_dialog_base.ui'))
30+
31+
32+
class ExportEpanetInpFilesDialog(QDialog, FORM_CLASS):
33+
def __init__(self, parent=None):
34+
"""Constructor."""
35+
QDialog.__init__(self, None, QtCore.Qt.WindowStaysOnTopHint)
36+
super(ExportEpanetInpFilesDialog, self).__init__(parent)
37+
# Set up the user interface from Designer.
38+
# After setupUI you can access any designer object by doing
39+
# self.<objectname>, and you can use autoconnect slots - see
40+
# http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
41+
# #widgets-and-dialogs-with-auto-connect
42+
43+
self.setupUi(self)
44+
45+
46+

0 commit comments

Comments
 (0)