diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-08-28 19:40:36 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-08-28 19:40:36 +0200 |
| commit | f0a3c583c80dc922edf70347cb493dff0bb5709a (patch) | |
| tree | b2d522852feb30b0f6aa0296c37a3e3b57914ddc /dev/SCI | |
| parent | c2e183b46a71e001683fd3b613ce49c9534460e2 (diff) | |
[IMP] RunSCM, RunDLL64 programs, needs SCI.dll to implement these functions though.
[WIP] WRenderer DLL, which takes care of Window rendering, add UIRenderView class.
- Note that this DLL is used internally by the shell, it shouldn't be linked with.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/SCI')
| -rw-r--r-- | dev/SCI/Sources/sci_base.cxx (renamed from dev/SCI/Sources/base.cxx) | 0 | ||||
| -rw-r--r-- | dev/SCI/sci_base.hxx | 12 | ||||
| -rw-r--r-- | dev/SCI/scm-design.drawio | 2 | ||||
| -rw-r--r-- | dev/SCI/scm_core.hxx | 12 |
4 files changed, 13 insertions, 13 deletions
diff --git a/dev/SCI/Sources/base.cxx b/dev/SCI/Sources/sci_base.cxx index 6963a624..6963a624 100644 --- a/dev/SCI/Sources/base.cxx +++ b/dev/SCI/Sources/sci_base.cxx diff --git a/dev/SCI/sci_base.hxx b/dev/SCI/sci_base.hxx index a6719500..9a3038dc 100644 --- a/dev/SCI/sci_base.hxx +++ b/dev/SCI/sci_base.hxx @@ -77,16 +77,16 @@ public: };
template <typename FnSign, typename ClsID>
-class EventListenerInterface : public ClsID
+class IEventListener : public ClsID
{
public:
- explicit EventListenerInterface() = default;
- virtual ~EventListenerInterface() = default;
+ explicit IEventListener() = default;
+ virtual ~IEventListener() = default;
- EventListenerInterface& operator=(const EventListenerInterface&) = default;
- EventListenerInterface(const EventListenerInterface&) = default;
+ IEventListener& operator=(const IEventListener&) = default;
+ IEventListener(const IEventListener&) = default;
- virtual EventListenerInterface& operator +=(FnSign arg) = 0;
+ virtual IEventListener& operator +=(FnSign arg) = 0;
};
#endif
diff --git a/dev/SCI/scm-design.drawio b/dev/SCI/scm-design.drawio index a8abf083..be77883c 100644 --- a/dev/SCI/scm-design.drawio +++ b/dev/SCI/scm-design.drawio @@ -19,7 +19,7 @@ <mxCell id="eRehIIeIVOPW1y23kRkx-8" value="Program #2<div>Is a web browser, it uses an HTML parser component.</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1"> <mxGeometry x="253" y="570" width="120" height="60" as="geometry"/> </mxCell> - <mxCell id="eRehIIeIVOPW1y23kRkx-10" value="<h1 style="margin-top: 0px;">System Component/Call Model/Interface</h1><p>SCM is a standardized way of sharing code within DLLs in NewOS.</p><p>All classes are based upon&nbsp;<span style="color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">IUnknown</span></p><p>It is also used to register and call code using&nbsp;<span style="color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">EventListenerInterface</span></p>" style="text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;" parent="1" vertex="1"> + <mxCell id="eRehIIeIVOPW1y23kRkx-10" value="<h1 style="margin-top: 0px;">System Component/Call Model/Interface</h1><p>SCM is a standardized way of sharing code within DLLs in NewOS.</p><p>All classes are based upon&nbsp;<span style="color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">IUnknown</span></p><p>It is also used to register and call code using&nbsp;<span style="color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">IEventListener</span></p>" style="text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;" parent="1" vertex="1"> <mxGeometry x="450" y="240" width="320" height="240" as="geometry"/> </mxCell> </root> diff --git a/dev/SCI/scm_core.hxx b/dev/SCI/scm_core.hxx index ef0a8b5b..db3b9c69 100644 --- a/dev/SCI/scm_core.hxx +++ b/dev/SCI/scm_core.hxx @@ -70,16 +70,16 @@ inline SInt32 ScmReleaseClass(TCLS** cls) }
template <typename FnSign, typename ClsID>
-protocol EventListenerInterface : public ClsID
+protocol IEventListener : public ClsID
{
public:
- explicit EventListenerInterface() = default;
- virtual ~EventListenerInterface() = default;
+ explicit IEventListener() = default;
+ virtual ~IEventListener() = default;
- EventListenerInterface& operator=(const EventListenerInterface&) = default;
- EventListenerInterface(const EventListenerInterface&) = default;
+ IEventListener& operator=(const IEventListener&) = default;
+ IEventListener(const IEventListener&) = default;
- virtual EventListenerInterface& operator +=(FnSign arg)
+ virtual IEventListener& operator +=(FnSign arg)
{
this->AddEventListener(arg);
return *this;
|
