Skip to content
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

Upgrade of inputs and form editors #3318

Merged
merged 44 commits into from
Apr 19, 2024
Merged
Changes from 2 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
276f0df
Add MMBaseInput component
tomasMizera Apr 15, 2024
9980137
Add new negative colors
tomasMizera Apr 15, 2024
ac8c6cd
[WIP] Add MMBaseTextInput
tomasMizera Apr 15, 2024
58f725e
Enhanced mouse area for checkbox
tomasMizera Apr 16, 2024
f985507
Add MMBaseTextInput
tomasMizera Apr 16, 2024
89b2e7a
Update MMTextInput component
tomasMizera Apr 17, 2024
66a9e2c
Fix predictive text on Android
tomasMizera Apr 17, 2024
67f3d69
Rename MMBaseTextInput to MMBaseSingleLineInput
tomasMizera Apr 17, 2024
a22fece
Update MMFormTextEditor
tomasMizera Apr 17, 2024
e0a7c73
Update MMFormNumberEditor (#3327)
tomasMizera Apr 18, 2024
88eb2b6
Bind left/right content mouse areas to enabled state by default (#3328)
tomasMizera Apr 18, 2024
e93e480
Update MMFormCalendarEditor.qml (#3329)
tomasMizera Apr 18, 2024
189d28e
Update MMFormValueMapEditor and MMFormValueRelationEditor (#3330)
tomasMizera Apr 18, 2024
60144ed
MMSwitchInput, MMSwitchFormEditor (#3331)
uclaros Apr 18, 2024
a208175
Rework multiline form editor
tomasMizera Apr 18, 2024
cf8a14f
Rework MMFormSliderEditor
tomasMizera Apr 18, 2024
cc4e928
Merge pull request #3334 from MerginMaps/rework-multiline-editor
tomasMizera Apr 18, 2024
5db2912
Merge pull request #3335 from MerginMaps/rework-slider-editor
tomasMizera Apr 18, 2024
508541e
Rework MMPasswordInput (#3333)
uclaros Apr 18, 2024
d0c50e4
Fix binding loop on implicitWidth in MMBaseSingleLineInput
tomasMizera Apr 18, 2024
54624d9
rework combobox
uclaros Apr 18, 2024
0d7cf6d
Rework MMSearchInput (#3336)
uclaros Apr 18, 2024
d6efc81
Merge pull request #3338 from MerginMaps/rework-base-input-fix-bindin…
tomasMizera Apr 18, 2024
be2b6be
Merge pull request #3339 from MerginMaps/rework-combobox
tomasMizera Apr 18, 2024
f40b7a5
Rework MMFormPhotoEditor (#3332)
tomasMizera Apr 18, 2024
bfb8587
fix setting the background for a MMSearchInput (#3340)
uclaros Apr 18, 2024
7b9aed9
Fix console warnings with import (#3342)
tomasMizera Apr 18, 2024
3328417
Rework MMFromRelationEditor (#3341)
tomasMizera Apr 18, 2024
b2c51f4
Rework MMRelationReferenceEditor (#3337)
tomasMizera Apr 18, 2024
4d3df5e
rework MMFormScannerEditor
uclaros Apr 19, 2024
33fdada
Merge pull request #3343 from MerginMaps/rework-qr
tomasMizera Apr 19, 2024
32d857c
Rework MMFormGalleryEditor
tomasMizera Apr 19, 2024
7b935ab
rework MMFormRichTextViewer
uclaros Apr 19, 2024
fb35c85
Merge pull request #3345 from MerginMaps/rework-rich-text
tomasMizera Apr 19, 2024
6ebad83
Merge pull request #3344 from MerginMaps/rework-gallery-editor
tomasMizera Apr 19, 2024
6fa0846
don't open combobox if disabled
uclaros Apr 19, 2024
cfc28ce
Merge pull request #3346 from MerginMaps/fix-disabled
tomasMizera Apr 19, 2024
3e61fdf
don't open calendar when disabled
uclaros Apr 19, 2024
cfa7645
Remove old base input and unused input with button
tomasMizera Apr 19, 2024
70dfb48
Merge pull request #3347 from MerginMaps/fix-disabled
tomasMizera Apr 19, 2024
833f6fa
Merge pull request #3348 from MerginMaps/rework-remove-unused-code
tomasMizera Apr 19, 2024
adf1b8c
Merge master into rework-base-input
uclaros Apr 19, 2024
14d8e79
Fix colors for input and editor icons
tomasMizera Apr 19, 2024
56cddd0
Merge pull request #3349 from MerginMaps/rework-fix-colors
tomasMizera Apr 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/qml/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -113,12 +113,10 @@ set(MM_QML
gps/MMPositionProviderPage.qml
gps/MMStakeoutDrawer.qml
gps/components/MMGpsDataText.qml
inputs/MMBaseInput.qml
inputs/MMComboboxInput.qml
inputs/MMPasswordInput.qml
inputs/MMSearchInput.qml
inputs/MMTextInput.qml
inputs/MMTextWithButtonInput.qml
inputs/MMSwitchInput.qml
layers/MMFeaturesListPage.qml
layers/MMLayerDetailPage.qml
198 changes: 0 additions & 198 deletions app/qml/inputs/MMBaseInput.qml

This file was deleted.

82 changes: 0 additions & 82 deletions app/qml/inputs/MMTextWithButtonInput.qml

This file was deleted.

2 changes: 0 additions & 2 deletions gallery/qml.qrc
Original file line number Diff line number Diff line change
@@ -86,13 +86,11 @@
<file>../app/qml/account/MMLoginPage.qml</file>
<file>../app/qml/account/MMSignUpPage.qml</file>
<file>../app/qml/account/MMWhichIndustryPage.qml</file>
<file>../app/qml/inputs/MMBaseInput.qml</file>
<file>../app/qml/inputs/MMComboboxInput.qml</file>
<file>../app/qml/inputs/MMPasswordInput.qml</file>
<file>../app/qml/inputs/MMTextInput.qml</file>
<file>../app/qml/inputs/MMSearchInput.qml</file>
<file>../app/qml/inputs/MMSwitchInput.qml</file>
<file>../app/qml/inputs/MMTextWithButtonInput.qml</file>
<file>../app/qml/form/components/MMFormTabBar.qml</file>
<file>../app/qml/form/components/MMCalendarDrawer.qml</file>
<file>../app/qml/form/components/MMFeaturesListPageDrawer.qml</file>
9 changes: 0 additions & 9 deletions gallery/qml/pages/InputsPage.qml
Original file line number Diff line number Diff line change
@@ -90,15 +90,6 @@ ScrollView {
warningMsg: text.length > 0 ? "" : "Write something"
}

MMInputs.MMTextWithButtonInput {
title: "MMTextWithButtonInput"
placeholderText: "Write something"
buttonText: "Copy"
width: parent.width
onButtonClicked: console.log("Copy pressed")
buttonEnabled: text.length > 0
}

MMInputs.MMPasswordInput {
title: "MMPasswordInput"
text: "Password"
90 changes: 48 additions & 42 deletions gallery/qml/pages/NotificationPage.qml
Original file line number Diff line number Diff line change
@@ -12,63 +12,69 @@ import QtQuick.Controls
import QtQuick.Controls.Basic

import "../../app/qml/components"
import "../../app/qml/components/private" as MMPrivateComponents
import "../../app/qml/inputs"

import mm 1.0 as MM

Page {
id: pane

Rectangle {
anchors.fill: parent
color: "white"
background: Rectangle {
color: __style.lightGreenColor
}

Column {
width: parent.width - 60
spacing: 20
anchors.centerIn: parent
contentItem: Item {
width: ( ApplicationWindow.window?.width ?? 0 )

MMTextWithButtonInput {
buttonText: "Send"
anchors.horizontalCenter: parent.horizontalCenter
text: "Write an informative message"
Column {
width: parent.width * 2/3
spacing: 20
x: parent.width / 2 - width / 2

onButtonClicked: { __notificationModel.addInfo(text) }
}
MMTextWithButtonInput {
buttonText: "Send"
anchors.horizontalCenter: parent.horizontalCenter
text: "Write a success message"
MMPrivateComponents.MMBaseSingleLineInput {
width: parent.width
text: "Write an informative message"

onButtonClicked: { __notificationModel.addSuccess(text) }
}
MMTextWithButtonInput {
buttonText: "Send"
anchors.horizontalCenter: parent.horizontalCenter
text: "Write a warning message"
rightContent: MMIcon { source: __style.checkmarkIcon }
onRightContentClicked: { __notificationModel.addInfo(text) }
}

onButtonClicked: { __notificationModel.addWarning(text) }
}
MMTextWithButtonInput {
buttonText: "Send"
anchors.horizontalCenter: parent.horizontalCenter
text: "Write an error message"
MMPrivateComponents.MMBaseSingleLineInput {
width: parent.width
text: "Write a success message"

onButtonClicked: { __notificationModel.addError(text) }
}
MMTextWithButtonInput {
buttonText: "Send"
anchors.horizontalCenter: parent.horizontalCenter
text: "Stojí, stojí mohyla, Na mohyle zlá chvíľa, Na mohyle tŕnie chrastie A v tom tŕní, chrastí rastie, Rastie, kvety rozvíja Jedna žltá ľalia. Tá ľalia smutno vzdychá: „Hlávku moju tŕnie pichá A nožičky oheň páli – Pomôžte mi v mojom žiali!“ "
rightContent: MMIcon { source: __style.checkmarkIcon }
onRightContentClicked: { __notificationModel.addSuccess(text) }
}
MMPrivateComponents.MMBaseSingleLineInput {
width: parent.width
text: "Write a warning message"

onButtonClicked: { __notificationModel.addInfo(text) }
}
MMTextWithButtonInput {
buttonText: "Send"
anchors.horizontalCenter: parent.horizontalCenter
text: "Click on notification to invoke action"
rightContent: MMIcon { source: __style.checkmarkIcon }
onRightContentClicked: { __notificationModel.addWarning(text) }
}
MMPrivateComponents.MMBaseSingleLineInput {
width: parent.width
text: "Write an error message"

rightContent: MMIcon { source: __style.checkmarkIcon }
onRightContentClicked: { __notificationModel.addError(text) }
}
MMPrivateComponents.MMBaseSingleLineInput {
width: parent.width
text: "Stojí, stojí mohyla, Na mohyle zlá chvíľa, Na mohyle tŕnie chrastie A v tom tŕní, chrastí rastie, Rastie, kvety rozvíja Jedna žltá ľalia. Tá ľalia smutno vzdychá: „Hlávku moju tŕnie pichá A nožičky oheň páli – Pomôžte mi v mojom žiali!“ "

rightContent: MMIcon { source: __style.checkmarkIcon }
onRightContentClicked: { __notificationModel.addInfo(text) }
}
MMPrivateComponents.MMBaseSingleLineInput {
width: parent.width
text: "Click on notification to invoke action"

onButtonClicked: { __notificationModel.addWarning(text, MM.NotificationType.ShowProjectIssuesAction) }
rightContent: MMIcon { source: __style.checkmarkIcon }
onRightContentClicked: { __notificationModel.addWarning(text, MM.NotificationType.ShowProjectIssuesAction) }
}
}
}