summaryrefslogtreecommitdiffhomepage
path: root/dev/SCI
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-08-28 19:40:36 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-08-28 19:40:36 +0200
commitf0a3c583c80dc922edf70347cb493dff0bb5709a (patch)
treeb2d522852feb30b0f6aa0296c37a3e3b57914ddc /dev/SCI
parentc2e183b46a71e001683fd3b613ce49c9534460e2 (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.hxx12
-rw-r--r--dev/SCI/scm-design.drawio2
-rw-r--r--dev/SCI/scm_core.hxx12
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&lt;div&gt;Is a web browser, it uses an HTML parser component.&lt;/div&gt;" 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="&lt;h1 style=&quot;margin-top: 0px;&quot;&gt;System Component/Call Model/Interface&lt;/h1&gt;&lt;p&gt;SCM is a standardized way of sharing code within DLLs in NewOS.&lt;/p&gt;&lt;p&gt;All classes are based upon&amp;nbsp;&lt;span style=&quot;color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px;&quot;&gt;IUnknown&lt;/span&gt;&lt;/p&gt;&lt;p&gt;It is also used to register and call code using&amp;nbsp;&lt;span style=&quot;color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px;&quot;&gt;EventListenerInterface&lt;/span&gt;&lt;/p&gt;" style="text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;" parent="1" vertex="1">
+ <mxCell id="eRehIIeIVOPW1y23kRkx-10" value="&lt;h1 style=&quot;margin-top: 0px;&quot;&gt;System Component/Call Model/Interface&lt;/h1&gt;&lt;p&gt;SCM is a standardized way of sharing code within DLLs in NewOS.&lt;/p&gt;&lt;p&gt;All classes are based upon&amp;nbsp;&lt;span style=&quot;color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px;&quot;&gt;IUnknown&lt;/span&gt;&lt;/p&gt;&lt;p&gt;It is also used to register and call code using&amp;nbsp;&lt;span style=&quot;color: rgb(78, 201, 176); background-color: rgb(31, 31, 31); font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px;&quot;&gt;IEventListener&lt;/span&gt;&lt;/p&gt;" 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;