Completed the ScreenManagerClass

This commit is contained in:
anschrammh 2019-02-27 23:02:08 +01:00
parent 9bb7f4d4d3
commit 1e4bb87eae

View File

@ -399,7 +399,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -1056,
"top": -576,
"top": -592,
"height": 13
},
{
@ -410,7 +410,7 @@
},
"font": "Arial;13;1",
"left": 221,
"top": 751,
"top": 743,
"width": 523.16748046875,
"height": 13,
"text": "ScreenManager"
@ -424,7 +424,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -1056,
"top": -576,
"top": -592,
"width": 73.67724609375,
"height": 13,
"text": "(from Model)"
@ -438,14 +438,14 @@
"visible": false,
"font": "Arial;13;0",
"left": -1056,
"top": -576,
"top": -592,
"height": 13,
"horizontalAlignment": 1
}
],
"font": "Arial;13;0",
"left": 216,
"top": 744,
"top": 736,
"width": 533.16748046875,
"height": 25,
"stereotypeLabel": {
@ -482,7 +482,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 774,
"top": 766,
"width": 523.16748046875,
"height": 13,
"text": "-displayRef: Adafruit_SSD1306",
@ -499,7 +499,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 789,
"top": 781,
"width": 523.16748046875,
"height": 13,
"text": "-viewLinkedList: ViewLinkedList",
@ -516,7 +516,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 804,
"top": 796,
"width": 523.16748046875,
"height": 13,
"text": "-error: unsigned char",
@ -533,7 +533,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 819,
"top": 811,
"width": 523.16748046875,
"height": 13,
"text": "-displayInverted: boolean",
@ -550,18 +550,35 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 834,
"top": 826,
"width": 523.16748046875,
"height": 13,
"text": "-displayDimmed: boolean",
"horizontalAlignment": 0
},
{
"_type": "UMLAttributeView",
"_id": "AAAAAAFpMOTUIlAzZxQ=",
"_parent": {
"$ref": "AAAAAAFpHq11g76wgf4="
},
"model": {
"$ref": "AAAAAAFpMOTT9VAw12E="
},
"font": "Arial;13;0",
"left": 221,
"top": 841,
"width": 523.16748046875,
"height": 13,
"text": "-currentView: ViewLink*",
"horizontalAlignment": 0
}
],
"font": "Arial;13;0",
"left": 216,
"top": 769,
"top": 761,
"width": 533.16748046875,
"height": 83
"height": 98
},
{
"_type": "UMLOperationCompartmentView",
@ -584,7 +601,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 857,
"top": 864,
"width": 523.16748046875,
"height": 13,
"text": "#ScreenManager(&display: Adafruit_SSD1306)",
@ -601,10 +618,10 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 872,
"top": 879,
"width": 523.16748046875,
"height": 13,
"text": "+addView(*logic_function: boolean, *pData: void, UID: const unsigned char): boolean",
"text": "+addView(*logic_function: boolean, pData: void *, UID: const unsigned char): boolean",
"horizontalAlignment": 0
},
{
@ -618,7 +635,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 887,
"top": 894,
"width": 523.16748046875,
"height": 13,
"text": "+removeView(UID: const unsigned char): boolean",
@ -635,10 +652,10 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 902,
"top": 909,
"width": 523.16748046875,
"height": 13,
"text": "+displayView(UID: const char = -1): boolean",
"text": "+displayView(UID: const int = -1): boolean",
"horizontalAlignment": 0
},
{
@ -652,7 +669,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 917,
"top": 924,
"width": 523.16748046875,
"height": 13,
"text": "+invertDisplay(inverted: boolean): void",
@ -669,29 +686,12 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 932,
"top": 939,
"width": 523.16748046875,
"height": 13,
"text": "+dimDisplay(dimmed: boolean): void",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAFpIVRhdRpw9pk=",
"_parent": {
"$ref": "AAAAAAFpHq11g76xBiU="
},
"model": {
"$ref": "AAAAAAFpIVRhRxptGlk="
},
"font": "Arial;13;0",
"left": 221,
"top": 947,
"width": 523.16748046875,
"height": 13,
"text": "-createEmptyList(): void *",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAFpIXL2wB+wB2Y=",
@ -703,7 +703,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 962,
"top": 954,
"width": 523.16748046875,
"height": 13,
"text": "+const getError(): unsigned char",
@ -720,7 +720,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 977,
"top": 969,
"width": 523.16748046875,
"height": 13,
"text": "+const isDisplayInverted(): boolean",
@ -737,12 +737,29 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 992,
"top": 984,
"width": 523.16748046875,
"height": 13,
"text": "+const isDisplayDimmed(): boolean",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAFpMOabP1sFnu8=",
"_parent": {
"$ref": "AAAAAAFpHq11g76xBiU="
},
"model": {
"$ref": "AAAAAAFpMOabFFsCl+E="
},
"font": "Arial;13;0",
"left": 221,
"top": 999,
"width": 523.16748046875,
"height": 13,
"text": "+const getCurrentView(): ViewLink*",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAFpIV356hs9rsQ=",
@ -754,10 +771,27 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 1007,
"top": 1014,
"width": 523.16748046875,
"height": 13,
"text": "-addNewLinkAtTheEnd(ViewLinkedList *viewLinkedList, ViewLink viewLink): boolean",
"text": "-addNewLinkAtTheEnd(viewLinkedList: ViewLinkedList *, viewLink: ViewLink): boolean",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAFpIVRhdRpw9pk=",
"_parent": {
"$ref": "AAAAAAFpHq11g76xBiU="
},
"model": {
"$ref": "AAAAAAFpIVRhRxptGlk="
},
"font": "Arial;13;0",
"left": 221,
"top": 1029,
"width": 523.16748046875,
"height": 13,
"text": "-createEmptyList(): void *",
"horizontalAlignment": 0
},
{
@ -771,7 +805,7 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 1022,
"top": 1044,
"width": 523.16748046875,
"height": 13,
"text": "-isListEmpty(ViewLinkedList viewLinkedList): boolean",
@ -788,18 +822,35 @@
},
"font": "Arial;13;0",
"left": 221,
"top": 1037,
"top": 1059,
"width": 523.16748046875,
"height": 13,
"text": "-removeLinkByUID(ViewLinkedList *viewLinkedList, UID: const unsigned char): boolean",
"text": "-removeLinkByUID(viewLinkedList: ViewLinkedList *, UID: const unsigned char): boolean",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAFpML18AUG90pM=",
"_parent": {
"$ref": "AAAAAAFpHq11g76xBiU="
},
"model": {
"$ref": "AAAAAAFpML17zkG6Ooo="
},
"font": "Arial;13;0",
"left": 221,
"top": 1074,
"width": 523.16748046875,
"height": 13,
"text": "-getLinkByUID(viewLinkedList: ViewLinkedList, UID: const unsigned char): ViewLink *",
"horizontalAlignment": 0
}
],
"font": "Arial;13;0",
"left": 216,
"top": 852,
"top": 859,
"width": 533.16748046875,
"height": 203
"height": 233
},
{
"_type": "UMLReceptionCompartmentView",
@ -813,7 +864,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -528,
"top": -288,
"top": -296,
"width": 10,
"height": 10
},
@ -829,7 +880,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -528,
"top": -288,
"top": -296,
"width": 10,
"height": 10
}
@ -837,9 +888,9 @@
"font": "Arial;13;0",
"containerChangeable": true,
"left": 216,
"top": 744,
"top": 736,
"width": 533.16748046875,
"height": 311,
"height": 371,
"nameCompartment": {
"$ref": "AAAAAAFpHq11gr6ruDw="
},
@ -878,7 +929,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 814,
"top": 896,
"top": 907,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 15,
@ -898,8 +949,8 @@
},
"visible": null,
"font": "Arial;13;0",
"left": 814,
"top": 911,
"left": 815,
"top": 922,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 30,
@ -920,7 +971,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 813,
"top": 867,
"top": 878,
"height": 13,
"alpha": -1.5707963267948966,
"distance": 15,
@ -941,7 +992,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 853,
"top": 895,
"top": 905,
"height": 13,
"alpha": 0.5235987755982988,
"distance": 30,
@ -961,8 +1012,8 @@
},
"visible": false,
"font": "Arial;13;0",
"left": 851,
"top": 909,
"left": 852,
"top": 918,
"height": 13,
"alpha": 0.7853981633974483,
"distance": 40,
@ -983,7 +1034,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 856,
"top": 868,
"top": 877,
"height": 13,
"alpha": -0.5235987755982988,
"distance": 25,
@ -1003,7 +1054,7 @@
},
"font": "Arial;13;0",
"left": 759,
"top": 900,
"top": 911,
"width": 94.65625,
"height": 13,
"alpha": -0.3058788210270264,
@ -1025,7 +1076,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 778,
"top": 911,
"top": 923,
"height": 13,
"alpha": -0.7853981633974483,
"distance": 40,
@ -1044,8 +1095,8 @@
},
"visible": false,
"font": "Arial;13;0",
"left": 770,
"top": 870,
"left": 769,
"top": 883,
"height": 13,
"alpha": 0.5235987755982988,
"distance": 25,
@ -1090,7 +1141,7 @@
"$ref": "AAAAAAFpHqCuVb5uVUA="
},
"lineStyle": 1,
"points": "879:886;749:890",
"points": "879:895;749:903",
"showVisibility": true,
"nameLabel": {
"$ref": "AAAAAAFpHucSvL8/DjI="
@ -3514,7 +3565,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -32,
"top": 224,
"top": 352,
"height": 13
},
{
@ -3525,7 +3576,7 @@
},
"font": "Arial;13;1",
"left": 405,
"top": 1111,
"top": 1175,
"width": 153.55615234375,
"height": 13,
"text": "ViewLinkedList"
@ -3539,7 +3590,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -32,
"top": 224,
"top": 352,
"width": 73.67724609375,
"height": 13,
"text": "(from Model)"
@ -3553,14 +3604,14 @@
"visible": false,
"font": "Arial;13;0",
"left": -32,
"top": 224,
"top": 352,
"height": 13,
"horizontalAlignment": 1
}
],
"font": "Arial;13;0",
"left": 400,
"top": 1104,
"top": 1168,
"width": 163.55615234375,
"height": 25,
"stereotypeLabel": {
@ -3597,7 +3648,7 @@
},
"font": "Arial;13;0",
"left": 405,
"top": 1134,
"top": 1198,
"width": 153.55615234375,
"height": 13,
"text": "+*pData: void",
@ -3614,7 +3665,7 @@
},
"font": "Arial;13;0",
"left": 405,
"top": 1149,
"top": 1213,
"width": 153.55615234375,
"height": 13,
"text": "+*logic_function: boolean",
@ -3631,7 +3682,7 @@
},
"font": "Arial;13;0",
"left": 405,
"top": 1164,
"top": 1228,
"width": 153.55615234375,
"height": 13,
"text": "+UID: const unsigned char",
@ -3648,7 +3699,7 @@
},
"font": "Arial;13;0",
"left": 405,
"top": 1179,
"top": 1243,
"width": 153.55615234375,
"height": 13,
"text": "+next: ViewLink*",
@ -3657,7 +3708,7 @@
],
"font": "Arial;13;0",
"left": 400,
"top": 1129,
"top": 1193,
"width": 163.55615234375,
"height": 68
},
@ -3672,7 +3723,7 @@
},
"font": "Arial;13;0",
"left": 400,
"top": 1197,
"top": 1261,
"width": 163.55615234375,
"height": 10
},
@ -3688,7 +3739,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -16,
"top": 112,
"top": 176,
"width": 10,
"height": 10
},
@ -3704,7 +3755,7 @@
"visible": false,
"font": "Arial;13;0",
"left": -16,
"top": 112,
"top": 176,
"width": 10,
"height": 10
}
@ -3712,7 +3763,7 @@
"font": "Arial;13;0",
"containerChangeable": true,
"left": 400,
"top": 1104,
"top": 1168,
"width": 163.55615234375,
"height": 133,
"nameCompartment": {
@ -3753,7 +3804,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 495,
"top": 1072,
"top": 1130,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 15,
@ -3774,7 +3825,7 @@
"visible": null,
"font": "Arial;13;0",
"left": 510,
"top": 1072,
"top": 1130,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 30,
@ -3795,7 +3846,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 466,
"top": 1073,
"top": 1131,
"height": 13,
"alpha": -1.5707963267948966,
"distance": 15,
@ -3816,7 +3867,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 496,
"top": 1074,
"top": 1126,
"height": 13,
"alpha": 0.5235987755982988,
"distance": 30,
@ -3837,7 +3888,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 509,
"top": 1077,
"top": 1129,
"height": 13,
"alpha": 0.7853981633974483,
"distance": 40,
@ -3858,7 +3909,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 468,
"top": 1070,
"top": 1122,
"height": 13,
"alpha": -0.5235987755982988,
"distance": 25,
@ -3879,7 +3930,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 496,
"top": 1071,
"top": 1135,
"height": 13,
"alpha": -0.5235987755982988,
"distance": 30,
@ -3899,7 +3950,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 509,
"top": 1068,
"top": 1132,
"height": 13,
"alpha": -0.7853981633974483,
"distance": 40,
@ -3919,7 +3970,7 @@
"visible": false,
"font": "Arial;13;0",
"left": 468,
"top": 1075,
"top": 1139,
"height": 13,
"alpha": 0.5235987755982988,
"distance": 25,
@ -3964,7 +4015,7 @@
"$ref": "AAAAAAFpHq11gr6quCs="
},
"lineStyle": 1,
"points": "481:1055;481:1103",
"points": "481:1107;481:1167",
"showVisibility": true,
"nameLabel": {
"$ref": "AAAAAAFpIVDGIBS5fjw="
@ -4609,6 +4660,16 @@
"name": "displayDimmed",
"visibility": "private",
"type": "boolean"
},
{
"_type": "UMLAttribute",
"_id": "AAAAAAFpMOTT9VAw12E=",
"_parent": {
"$ref": "AAAAAAFpHq11gr6oq4M="
},
"name": "currentView",
"visibility": "private",
"type": "ViewLink*"
}
],
"operations": [
@ -4655,8 +4716,8 @@
"_parent": {
"$ref": "AAAAAAFpHrx2a773c7c="
},
"name": "*pData",
"type": "void"
"name": "pData",
"type": "void *"
},
{
"_type": "UMLParameter",
@ -4721,7 +4782,7 @@
"$ref": "AAAAAAFpHuGHYr8WkXQ="
},
"name": "UID",
"type": "const char",
"type": "const int",
"isReadOnly": true,
"defaultValue": "-1"
},
@ -4792,26 +4853,6 @@
}
]
},
{
"_type": "UMLOperation",
"_id": "AAAAAAFpIVRhRxptGlk=",
"_parent": {
"$ref": "AAAAAAFpHq11gr6oq4M="
},
"name": "createEmptyList",
"visibility": "private",
"parameters": [
{
"_type": "UMLParameter",
"_id": "AAAAAAFpIVT1KxreD08=",
"_parent": {
"$ref": "AAAAAAFpIVRhRxptGlk="
},
"type": "void *",
"direction": "return"
}
]
},
{
"_type": "UMLOperation",
"_id": "AAAAAAFpIXL2kx+t5Ww=",
@ -4869,6 +4910,25 @@
}
]
},
{
"_type": "UMLOperation",
"_id": "AAAAAAFpMOabFFsCl+E=",
"_parent": {
"$ref": "AAAAAAFpHq11gr6oq4M="
},
"name": "const getCurrentView",
"parameters": [
{
"_type": "UMLParameter",
"_id": "AAAAAAFpMOc6sVw6LUc=",
"_parent": {
"$ref": "AAAAAAFpMOabFFsCl+E="
},
"type": "ViewLink*",
"direction": "return"
}
]
},
{
"_type": "UMLOperation",
"_id": "AAAAAAFpIV35vBs6xGk=",
@ -4884,8 +4944,8 @@
"_parent": {
"$ref": "AAAAAAFpIV35vBs6xGk="
},
"name": "ViewLinkedList *viewLinkedList",
"type": ""
"name": "viewLinkedList",
"type": "ViewLinkedList *"
},
{
"_type": "UMLParameter",
@ -4893,8 +4953,8 @@
"_parent": {
"$ref": "AAAAAAFpIV35vBs6xGk="
},
"name": "ViewLink viewLink",
"type": ""
"name": "viewLink",
"type": "ViewLink"
},
{
"_type": "UMLParameter",
@ -4907,6 +4967,26 @@
}
]
},
{
"_type": "UMLOperation",
"_id": "AAAAAAFpIVRhRxptGlk=",
"_parent": {
"$ref": "AAAAAAFpHq11gr6oq4M="
},
"name": "createEmptyList",
"visibility": "private",
"parameters": [
{
"_type": "UMLParameter",
"_id": "AAAAAAFpIVT1KxreD08=",
"_parent": {
"$ref": "AAAAAAFpIVRhRxptGlk="
},
"type": "void *",
"direction": "return"
}
]
},
{
"_type": "UMLOperation",
"_id": "AAAAAAFpIWCsJhz9LOI=",
@ -4960,8 +5040,8 @@
"_parent": {
"$ref": "AAAAAAFpJr23GpTCSEg="
},
"name": "ViewLinkedList *viewLinkedList",
"type": ""
"name": "viewLinkedList",
"type": "ViewLinkedList *"
},
{
"_type": "UMLParameter",
@ -4973,6 +5053,44 @@
"type": "const unsigned char"
}
]
},
{
"_type": "UMLOperation",
"_id": "AAAAAAFpML17zkG6Ooo=",
"_parent": {
"$ref": "AAAAAAFpHq11gr6oq4M="
},
"name": "getLinkByUID",
"visibility": "private",
"parameters": [
{
"_type": "UMLParameter",
"_id": "AAAAAAFpML+IaEIreyQ=",
"_parent": {
"$ref": "AAAAAAFpML17zkG6Ooo="
},
"name": "viewLinkedList",
"type": "ViewLinkedList"
},
{
"_type": "UMLParameter",
"_id": "AAAAAAFpML+IaUIs5DQ=",
"_parent": {
"$ref": "AAAAAAFpML17zkG6Ooo="
},
"type": "ViewLink *",
"direction": "return"
},
{
"_type": "UMLParameter",
"_id": "AAAAAAFpMMk/Y09MEGo=",
"_parent": {
"$ref": "AAAAAAFpML17zkG6Ooo="
},
"name": "UID",
"type": "const unsigned char"
}
]
}
]
},