-
Notifications
You must be signed in to change notification settings - Fork 3
/
form4dialog.py
72 lines (60 loc) · 3.57 KB
/
form4dialog.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"""
/***************************************************************************
FlowMapperDialog
A QGIS plugin
This plugin generates discreet flow lines between nodes
-------------------
begin : 2011-12-04
copyright : (C) 2011 by Cem GULLUOGLU
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
"""
import sys
import os
from os.path import isfile
from PyQt4 import QtCore, QtGui
from ui_form4 import Ui_Form
import flowmapper
# create the dialog for zoom to point
class Form4Dialog(QtGui.QDialog):
def __init__(self):
QtGui.QDialog.__init__(self)
# Set up the user interface from Designer.
self.ui = Ui_Form()
self.ui.setupUi(self)
def SetTextBrowseInputShapeSymbology(self):
self.ui.BrowseShapeLineEdit.setText(flowmapper.InputShpSymbologyName)
def MeanSymbology(self):
self.ui.lineEditMeanSymbology.setText(flowmapper.GradSymMeanSymbology)
def MaxSymbology(self):
self.ui.lineEditMaxSymbology.setText(flowmapper.GradSymMaxSymbology)
def MinSymbology(self):
self.ui.lineEditMinSymbology.setText(flowmapper.GradSymMinSymbology)
def StdDevSymbology(self):
self.ui.lineEditStdDevSymbology.setText(flowmapper.GradSymStdDevSymbology)
def NoOfFeaturesSymbology(self):
self.ui.lineEditNoOfFeaturesSymbology.setText(flowmapper.GradSymNoOfFeaturesSymbology)
def PushButtonColorSelectSymbology_1(self):
self.ui.PushButtonColorSelect_1.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_1+" }")
def PushButtonColorSelectSymbology_2(self):
self.ui.PushButtonColorSelect_2.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_2+" }")
def PushButtonColorSelectSymbology_3(self):
self.ui.PushButtonColorSelect_3.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_3+" }")
def PushButtonColorSelectSymbology_4(self):
self.ui.PushButtonColorSelect_4.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_4+" }")
def PushButtonColorSelectSymbology_5(self):
self.ui.PushButtonColorSelect_5.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_5+" }")
def PushButtonColorSelectSymbology_6(self):
self.ui.PushButtonColorSelect_6.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_6+" }")
def PushButtonColorSelectSymbology_7(self):
self.ui.PushButtonColorSelect_7.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_7+" }")
def PushButtonColorSelectSymbology_8(self):
self.ui.PushButtonColorSelect_8.setStyleSheet("QPushButton {background-color: "+flowmapper.color_name_8+" }")