From cf4b092112791379417360fa54abcf6c8c2cac48 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:49:14 +0300 Subject: [PATCH] feat(StatusTagSelector): Adding component documentation (#623) Part of #616 --- doc/src/images/status_tag_selector.png | Bin 0 -> 25954 bytes src/StatusQ/Components/StatusTagSelector.qml | 109 ++++++++++++++++++- 2 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 doc/src/images/status_tag_selector.png diff --git a/doc/src/images/status_tag_selector.png b/doc/src/images/status_tag_selector.png new file mode 100644 index 0000000000000000000000000000000000000000..a55d93b6245f70709cb2d2304c588f9666e537e9 GIT binary patch literal 25954 zcmeFYXIN8N7bpw}(xfN?3Q`0C=}46h(v;q#R1xWrP(lkG6jYR=AWeFc7LZOL6jA9A zYG?@}0)bGZOaG4Z&WJPL{ds@hJkQD5IcJx(S6^$dJlEINprT-+ARr*1x_4LAkbvME zf`EWff$Ti+Bp2cOf`H(HtCNa~{yh~Hc70EXy_2gQ0m0qpi6GMZMqLaU=C9-8P(;~x z$&ut7$h+j(YP4~D<7D^Pvp*%%8n4(HwADo4G=2kB1BO3C7$@yh;QV)r537 zFMm;Teo09RrK>BaLhBGEmz$vU%ND2CPRn!J89V(5*y-4H7km5~Xr+ikA>Z!h`4iC6 z!+MwBK{VkZMbN06?*c$$NXuvdHu>YsQwqa>OV<+%*QifDbG59iumu8FJ%eFBZK z5F~IUXx!jiHL%TiNrfl9LfiPG;d(qRv&uE@{^v1%j*D2H>s!r`xBM(WN`CApWu$i+ZnV%-+~y0`&Q(f|yKsx-QAwbI zq4*~zTG^h;IZhMFT#6?vIA!J{Io*pb^q)M4Jp3wNv-J$bMSdfny-3_sKCM+A`Hfo0@zMzCaw%q9?~2yZ|MHyiv4=(n-&`9g{ATO<>+XA9 zHd>@cN({6$KBL}kvh#PZd?n)TBqsWrH*}%@F6)(x?JjaR2}17NAgIjtZ#$Pu6i2gT z9a-I7Lf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JvyB}4$PiB5H28y85w}K%T*0xS_<|rZn-eK>y z+)(e9MwHnM(P)*zk}jjMXt~l6Q2Kfxk!>5EY{t-08k41T6skN%6#qQ3#=+l!6c^nn z>@g%KPsBUZi2Nd?mGg+IC6dK?E;N~MYM-B(%BQ=z;ps&yCgB4^Q9#^oQ~!|$CPMcK zxP;1mnp)O1#5#4CH%K;pT?Q445_L7ajE(#>^{KaSltr0d2Rd#>U_R$0m0o~rgjXOYU;aW5 zWKsSBLS{f~!InB!XBfp7t%_-L46*IOn>j5|c@4m7)jPFoq4{_Mi5&viC+frhA=w4&J-8LfvN&fxF)QiFWkIf>2R@obzS zNKZuXxQlMW)BfhPq8qnf)!tW-!;OK2J^KjBft3=Tn}w9qKU4h^YXX`1OB?y>QO_e>nYXcmEFza*LP% literal 0 HcmV?d00001 diff --git a/src/StatusQ/Components/StatusTagSelector.qml b/src/StatusQ/Components/StatusTagSelector.qml index 4a4b42ab..f1284a92 100644 --- a/src/StatusQ/Components/StatusTagSelector.qml +++ b/src/StatusQ/Components/StatusTagSelector.qml @@ -6,29 +6,121 @@ import QtGraphicalEffects 1.0 import StatusQ.Core 0.1 import StatusQ.Core.Theme 0.1 +/*! + \qmltype StatusTagSelector + \inherits Item + \inqmlmodule StatusQ.Components + \since StatusQ.Components 0.1 + \brief Displays a tag selector component together with a list of where to select and add the tags from. + Inherits \l{https://doc.qt.io/qt-5/qml-qtquick-item.html}{Item}. + + The \c StatusTagSelector displays a list of asorted elements together with a text input where tags are added. As the user + types some text, the list elements are filtered and if the user selects any of those a new tag is created. + For example: + + \qml + StatusTagSelector { + width: 650 + height: 44 + anchors.centerIn: parent + namesModel: ListModel { + ListElement { + publicId: "0x0" + name: "Maria" + icon: "" + isIdenticon: false + onlineStatus: 3 + } + ListElement { + publicId: "0x1" + name: "James" + icon: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg" + isIdenticon: false + onlineStatus: 1 + } + ListElement { + publicId: "0x2" + name: "Paul" + icon: "" + isIdenticon: false + onlineStatus: 2 + } + } + toLabelText: qsTr("To: ") + warningText: qsTr("USER LIMIT REACHED") + } + \endqml + + \image status_tag_selector.png + + For a list of components available see StatusQ. + */ + Item { id: root implicitWidth: 448 implicitHeight: 44 + ((userListView.count > 0) ? 44 + contactsLabel.height + contactsLabel.anchors.topMargin + ((((userListView.count * 64) > root.maxHeight) ? root.maxHeight : (userListView.count * 64))) :0) - + /*! + \qmlproperty real StatusTagSelector::maxHeight + This property holds the maximum height of the component. + */ property real maxHeight + /*! + \qmlproperty alias StatusTagSelector::textEdit + This property holds a reference to the TextEdit component. + */ property alias textEdit: edit + /*! + \qmlproperty alias StatusTagSelector::text + This property holds a reference to the TextEdit's text property. + */ property alias text: edit.text + /*! + \qmlproperty string StatusTagSelector::warningText + This property sets the warning text. + */ property string warningText: "" + /*! + \qmlproperty string StatusTagSelector::toLabelText + This property sets the 'to' label text. + */ property string toLabelText: "" + /*! + \qmlproperty string StatusTagSelector::listLabel + This property sets the elements list label text. + */ property string listLabel: "" + /*! + \qmlproperty int StatusTagSelector::nameCountLimit + This property sets the tags count limit. + */ property int nameCountLimit: 5 - + /*! + \qmlproperty ListModel StatusTagSelector::sortedList + This property holds the sorted list model. + */ property ListModel sortedList: ListModel { } + /*! + \qmlproperty ListModel StatusTagSelector::namesModel + This property holds the asorted names model. + */ property ListModel namesModel: ListModel { } + /*! + \qmlmethod + This function is used to find an entry in a model. + */ function find(model, criteria) { for (var i = 0; i < model.count; ++i) if (criteria(model.get(i))) return model.get(i); return null; } + /*! + \qmlmethod + This function is used to insert a new tag. + */ function insertTag(name, id) { if (!find(namesModel, function(item) { return item.publicId === id }) && namesModel.count < root.nameCountLimit) { namesModel.insert(namesModel.count, {"name": name, "publicId": id}); @@ -37,6 +129,10 @@ Item { } } + /*! + \qmlmethod + This function is used to sort the source model. + */ function sortModel(inputModel) { sortedList.clear(); if (text !== "") { @@ -54,7 +150,16 @@ Item { } } + /*! + \qmlsignal + This signal is emitted when a new tag is created. + */ signal addMember(string memberId) + + /*! + \qmlsignal + This signal is emitted when a tag is removed. + */ signal removeMember(string memberId) Rectangle {