This commit is contained in:
itdominator 2023-10-28 14:43:50 -05:00
parent f897cf5e45
commit fe28aaafb5
8 changed files with 292 additions and 10 deletions

View File

@ -0,0 +1,3 @@
"""
Containers Module
"""

View File

@ -6,10 +6,10 @@ gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
# Application imports
from .widgets.separator_widget import Separator
from .widgets.save_file_dialog import SaveFileDialog
from .widgets.base.general_info_widget import GeneralInfoWidget
from .widgets.base.banner_controls import BannerControls
from ..widgets.separator_widget import Separator
from ..widgets.save_file_dialog import SaveFileDialog
from ..widgets.base.general_info_widget import GeneralInfoWidget
from ..widgets.base.banner_controls import BannerControls
from .editors_container import EditorsContainer
@ -55,4 +55,4 @@ class CoreWidget(Gtk.Box):
self.ctx.add_class(f"mw_transparency_{settings.theming.transparency}")
def _remove_transparency(self):
self.ctx.remove_class(f"mw_transparency_{settings.theming.transparency}")
self.ctx.remove_class(f"mw_transparency_{settings.theming.transparency}")

View File

@ -6,8 +6,8 @@ gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
# Application imports
from .widgets.miniview_widget import MiniViewWidget
from .widgets.base.notebook.editor_notebook import EditorNotebook
from ..widgets.miniview_widget import MiniViewWidget
from ..widgets.base.notebook.editor_notebook import EditorNotebook
@ -62,4 +62,4 @@ class EditorsContainer(Gtk.Box):
def _load_widgets(self):
self.add(EditorsPaned())
self.add(MiniViewWidget())
self.add(MiniViewWidget())

View File

@ -11,7 +11,7 @@ from gi.repository import GLib
# Application imports
from .controller_data import ControllerData
from .core_widget import CoreWidget
from .containers.core_widget import CoreWidget
from .mixins.signals_mixins import SignalsMixins

View File

View File

@ -0,0 +1,277 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2018 Jack R Linhart <iatenine@gmail.com>
Copyright (C) 2014 Matthias F. Brandstetter <pub@mabra.me>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<language id="gdscript" name="GDScript" version="2.0" _section="Script">
<metadata>
<property name="mimetypes">text/x-gdscript</property>
<property name="globs">*.gd</property>
<property name="line-comment-start">#</property>
</metadata>
<styles>
<style id="module-handler" name="Module Handler" map-to="def:preprocessor"/>
<style id="keyword" name="Keyword" map-to="def:keyword"/>
<style id="multiline-string" name="Multiline string" map-to="def:string"/>
<style id="string" name="String" map-to="def:string"/>
<style id="escaped-char" name="Escaped Character" map-to="def:special-char"/>
<style id="format" name="Format" map-to="def:character"/>
<style id="string-conversion" name="string-conversion"/>
<style id="special-variable" name="Special Variable" map-to="def:identifier"/>
<style id="boolean" name="Boolean" map-to="def:boolean"/>
<style id="floating-point" name="Floating point number" map-to="def:floating-point"/>
<style id="decimal" name="Decimal number" map-to="def:decimal"/>
<style id="base-n-integer" name="Base-N number" map-to="def:base-n-integer"/>
<style id="complex" name="Complex number" map-to="def:complex"/>
<style id="builtin-constant" name="Builtin Constant" map-to="def:special-constant"/>
<style id="builtin-object" name="Builtin Object" map-to="def:type"/>
<style id="builtin-function" name="Builtin Function" map-to="def:builtin"/>
<style id="method-calls" name="Method Calls" map-to="def:method-calls"/>
</styles>
<definitions>
<context id="method-calls" style-ref="method-calls">
<match extended="true">
(\.[\s\n\r]*[\w]+)[\s\n\r]*(?=\(.*\))
</match>
</context>
<define-regex id="identifier">[_a-zA-Z][_a-zA-Z0-9]*</define-regex>
<define-regex id="number">[1-9][0-9]*</define-regex>
<context id="format" style-ref="format" extend-parent="false">
<match extended="true">
% # leading % sign
\(\%{identifier}\)? # mapping key
[#0\-\ \+]* # conversion flags
(\-?\%{number}|\*)? # minimum field width
(\.(\-?\%{number}|\*))? # precision
(hlL)? # length modifier
[diouxXeEfFgGcrs%] # conversion type
</match>
</context>
<!-- http://docs.python.org/ref/strings.html -->
<context id="escaped-char" style-ref="escaped-char" extend-parent="true">
<match extended="true">
\\( # leading backslash
[\\\"\'nrbtfav\?] | # escaped character
[0-7]{1,3} | # one, two, or three octal digits
x[0-9A-Fa-f]+ # 'x' followed by hex digits
)
</match>
</context>
<context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
<context ref="format"/>
<context ref="escaped-char"/>
<context ref="def:line-continue"/>
</include>
</context>
<context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>'</start>
<end>'</end>
<include>
<context ref="format"/>
<context ref="escaped-char"/>
<context ref="def:line-continue"/>
</include>
</context>
<context id="gdscript" class="no-spell-check">
<include>
<context ref="method-calls"/>
<context ref="def:shebang"/>
<context ref="def:shell-like-comment"/>
<context ref="double-quoted-string"/>
<context ref="single-quoted-string"/>
<context id="special-variables" style-ref="special-variable">
<prefix>(?&lt;![\w\.])</prefix>
<keyword>_init</keyword>
<keyword>_ready</keyword>
</context>
<context id="boolean" style-ref="boolean">
<prefix>(?&lt;![\w\.])</prefix>
<keyword>false</keyword>
<keyword>true</keyword>
</context>
<define-regex id="float" extended="true">
( (\d+)?\.\d+ | \d+\. ) |
( (\d+|(\d+)?\.\d+|\d+\.)[eE][+-]?\d+ )
</define-regex>
<context id="complex" style-ref="complex">
<match>(?&lt;![\w\.])(\%{float}|\d+)[jJ]\b</match>
</context>
<context id="float" style-ref="floating-point">
<match>(?&lt;![\w\.])\%{float}(?![\w\.])</match>
</context>
<context id="decimal" style-ref="decimal">
<match>(?&lt;![\w\.])([1-9][0-9]*|0)[lL]?(?![\w\.])</match>
</context>
<context id="octal" style-ref="base-n-integer">
<match>(?&lt;![\w\.])0[0-7]+[lL]?(?![\w\.])</match>
</context>
<context id="hex" style-ref="base-n-integer">
<match>(?&lt;![\w\.])0[xX][0-9A-Fa-f]+[lL]?(?![\w\.])</match>
</context>
<context id="module-handler" style-ref="module-handler">
<keyword>extends</keyword>
<keyword>preload</keyword>
</context>
<context id="builtin-constants" style-ref="builtin-constant">
<prefix>(?&lt;![\w\.])</prefix>
<keyword>null</keyword>
</context>
<context id="keyword" style-ref="keyword">
<keyword>and</keyword>
<keyword>assert</keyword>
<keyword>break</keyword>
<keyword>breakpoint</keyword>
<keyword>class</keyword>
<keyword>const</keyword>
<keyword>continue</keyword>
<keyword>elif</keyword>
<keyword>else</keyword>
<keyword>enum</keyword>
<keyword>export</keyword>
<keyword>extends</keyword>
<keyword>false</keyword>
<keyword>float</keyword>
<keyword>for</keyword>
<keyword>func</keyword>
<keyword>if</keyword>
<keyword>in</keyword>
<keyword>int</keyword>
<keyword>not</keyword>
<keyword>null</keyword>
<keyword>onready</keyword>
<keyword>or</keyword>
<keyword>pass</keyword>
<keyword>return</keyword>
<keyword>self</keyword>
<keyword>setget</keyword>
<keyword>signal</keyword>
<keyword>static</keyword>
<keyword>tool</keyword>
<keyword>true</keyword>
<keyword>var</keyword>
<keyword>while</keyword>
<keyword>yield</keyword>
</context>
<context id="builtin-objects" style-ref="builtin-object">
<prefix>(?&lt;![\w\.])</prefix>
<keyword>Vector2</keyword>
<keyword>Size2</keyword>
<keyword>Rect2</keyword>
<keyword>Vector3</keyword>
<keyword>Matrix32</keyword>
<keyword>Plane</keyword>
<keyword>Quat</keyword>
<keyword>AABB</keyword>
<keyword>Box3</keyword>
<keyword>Matrix3</keyword>
<keyword>Transform</keyword>
<keyword>Color</keyword>
<keyword>Image</keyword>
<keyword>NodePath</keyword>
<keyword>RID</keyword>
<keyword>Object</keyword>
<keyword>InputEvent</keyword>
</context>
<context id="builtin-function" style-ref="builtin-function">
<prefix>(?&lt;![\w\.])</prefix>
<keyword>print</keyword>
<keyword>sin</keyword>
<keyword>cos</keyword>
<keyword>tan</keyword>
<keyword>sinh</keyword>
<keyword>cosh</keyword>
<keyword>tanh</keyword>
<keyword>asin</keyword>
<keyword>acos</keyword>
<keyword>atan</keyword>
<keyword>atan2</keyword>
<keyword>sqrt</keyword>
<keyword>fmod</keyword>
<keyword>fposmod</keyword>
<keyword>floor</keyword>
<keyword>ceil</keyword>
<keyword>round</keyword>
<keyword>abs</keyword>
<keyword>sign</keyword>
<keyword>pow</keyword>
<keyword>log</keyword>
<keyword>exp</keyword>
<keyword>isnan</keyword>
<keyword>isinf</keyword>
<keyword>ease</keyword>
<keyword>decimals</keyword>
<keyword>stepify</keyword>
<keyword>lerp</keyword>
<keyword>dectime</keyword>
<keyword>randomize</keyword>
<keyword>rand</keyword>
<keyword>randi</keyword>
<keyword>randf</keyword>
<keyword>rand_range</keyword>
<keyword>rand_seed</keyword>
<keyword>deg2rad</keyword>
<keyword>rad2deg</keyword>
<keyword>linear2db</keyword>
<keyword>db2linear</keyword>
<keyword>max</keyword>
<keyword>min</keyword>
<keyword>clamp</keyword>
<keyword>nearest_po2</keyword>
<keyword>weakref</keyword>
<keyword>convert</keyword>
<keyword>str</keyword>
<keyword>print</keyword>
<keyword>printt</keyword>
<keyword>printerr</keyword>
<keyword>printraw</keyword>
<keyword>range</keyword>
<keyword>load</keyword>
<keyword>inst2dict</keyword>
<keyword>dict2inst</keyword>
</context>
</include>
</context>
</definitions>
</language>

View File

@ -119,4 +119,5 @@
<style name="method-calls" foreground="#e6db74" />
<style name="xml:processing-instruction" />
<style name="xml:cdata-delim" foreground="#8998b9" />
<style name="gdscript:method-calls" foreground="#e6db74" />
</style-scheme>

View File

@ -1,5 +1,5 @@
<style-scheme name="Penguins In Space" id="penguins-in-space" version="1.0">
<author> ITDominator</author>
<author> ITDominator</author>
<description>An homage to Dayle Rees' Peacocks In Space theme.</description>
<style name="current-line" background="#2b303b" />
@ -115,4 +115,5 @@
<style name="python:multiline-string" foreground="#454a54" />
<style name="python3:method-calls" foreground="#e6db74" />
<style name="xml:cdata-delim" foreground="#8998b9" />
<style name="gdscript:method-calls" foreground="#e6db74" />
</style-scheme>