-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Hahmotelma] Lisää käyttöliittymä kaavamääräysryhmien luomiselle #51
The head ref may contain hidden characters: "50-lis\u00E4\u00E4-templaateista-irrallinen-k\u00E4ytt\u00F6liittym\u00E4-kaavam\u00E4\u00E4r\u00E4yksien-lis\u00E4\u00E4miselle"
[Hahmotelma] Lisää käyttöliittymä kaavamääräysryhmien luomiselle #51
Conversation
392ba59
to
756f95d
Compare
- changed plan regulation type selection from combobox to qtreewidget - create widgets when user presses buttons of a plan regulation
e95fd16
to
fd14767
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hyvältä pohjalta näyttää!
Pari kommenttia lisäsin, mutta noita "lisäominaisuuksia" voidaan lisätä myöhemminkin. Niistä voisi sitten tehdä omat issuet.
def add_input_field(self, input_field_type: InputTypes): | ||
if input_field_type == InputTypes.TEXT_VALUE: | ||
widget = QTextEdit() | ||
self.form_layout.addRow("Tekstiarvo", widget) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Olisi kiva, jos oikean muotoinen arvo-kenttä tulisi automaattisesti näkyviin valitun määräyslajin perusteella. Uskoisin, että yhdelle määräyslajille arvot ovat aina samanmuotoisia.
Alkuun tää voi ehkä olla näin ja toteuttaa tämä seuraavaan iteraatioon. Jos näin, niin tee tästä uusi issue.
|
||
def add_input_field(self, input_field_type: InputTypes): | ||
if input_field_type == InputTypes.TEXT_VALUE: | ||
widget = QTextEdit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jos kyseessä tekstiarvo, niin tietomallin mukaan pitäisi syöttää myös tekstin "syntaksi" (en oo kyllä ihan varma mitä se meinaa).
widget = QTextEdit() | ||
self.form_layout.addRow("Tekstiarvo", widget) | ||
elif input_field_type == InputTypes.NUMERIC_VALUE: | ||
widget = QgsDoubleSpinBox() # Or QgsSpinBox? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Numeromuotoiselle kentälle pitäisi syöttää myös tekstimuotoinen yksikkö.
widget = QgsDoubleSpinBox() # Or QgsSpinBox? | ||
self.form_layout.addRow("Numeerinen arvo", widget) | ||
elif input_field_type == InputTypes.CODE_VALUE: | ||
widget = QComboBox() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
koodistotunnuksen lisäksi pitäisi kyetä syöttämään itse arvo ja näille jokin otsikko.
# TODO: widget.addItems() | ||
self.form_layout.addRow("Koodiarvo", widget) | ||
|
||
elif input_field_type == InputTypes.TEXT_INFO: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tietomallin mukaan lisätiedolla on aina "lisätiedon laji"-koodi, ja tämän lisäksi mahdollisesti jokin arvo.
Maakuntakaavaprojektin tietokannassa nämä on rakennettu tällä hetkellä vähän eri tavalla. Siinä kaavamääräyksellä on esim merkittävyys kenttä, johon valitaan lisätiedon laji-koodistosta jokin merkittävyyshierarkian koodi. Näin voisi periaatteessa tehdä sillä oletuksella, että samalla kaavakohteella ei tule montaa saman tyypin lisätietoa.
Näitä listätietojuttuja voitaisiin miettiä koko porukalla ja päättää miten me tämä toteutetaan.
…nect dialog close/reject signal
No description provided.