Page 1 of 2

32 Bit FreeBasic OS

Posted: Fri Dec 09, 2016 4:51 am
by trolly
Hi,

There is a little presentation of my OS, it need a name, if you have any idea, you can reply to this post

* It's written entirely in FreeBasic (an a little bit Assembly, using FASM), using Grub as boot loader
* It's a single tasked operating system, the application run in privileged mode (there is no paging, segmentation or security level, the application has full access to the system, like in DOS, but in 32 bit, in graphic mode)
* The applications are fully event driven, they do nothing unless the kernel call the "update" method, or if a callback (on button by example) is triggered
* There is no "Syscall", the kernel exposes public methods to the app trought a pointer array, at the initialization
* The system is multi user, each user has his own configuration and data file
* The apps are stored like in Mac, in an .App folder wich contains the app executable, the icon, the data files, etc...
* Altought it's single tasked, the user can launch multiple task, and manually switch between them
* The design is inspired by the CDE gui

* The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback)

there's somme screen shots

the Login screen
Login screen
Login screen
the apps list:
Applications list
Applications list
Address
address book
address book

Re: 32 Bit FreeBasic OS

Posted: Fri Dec 09, 2016 7:20 am
by matt11235
trolly wrote:* The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback)
Is this similar to FXML/JavaFX?

Re: 32 Bit FreeBasic OS

Posted: Fri Dec 09, 2016 7:35 am
by BrightLight
Neat.
Is there some code to see or a disk image to download?

Re: 32 Bit FreeBasic OS

Posted: Fri Dec 09, 2016 5:47 pm
by trolly
Hi,

i'm uploading the code and the binary dist there:

the source (include the kernel & apps sources + asm headers + linker scripts + batch files for the build process:
http://www.codinfinity.net/NewOS_src.zip 145k

the hard drive image (for qemu)
http://www.codinfinity.net/NewOS_hd.zip 4M

the full archive, including source, hard drive image and toolchain (freebasic compiler + linker + gcc, etc...) runs on windows without extra configuration
http://www.codinfinity.net/NewOS.zip 94M

Re: 32 Bit FreeBasic OS

Posted: Fri Dec 09, 2016 5:55 pm
by trolly
zenzizenzicube wrote:
trolly wrote:* The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback)
Is this similar to FXML/JavaFX?
i'm not sure, because i dont know FXML or JavaFX,
to be short, the gui is programmed in Object Oriented, all widget are described in a class, in the xml the node name are the class names (Window , Button, etc...) the attributes are the properties (Top Left, Width , Text, OnClick, etc...) and the childnode are the children contained in the parent object (example, buttons inside a window)

there is by example the xml code for the calc app:

Code: Select all

<Application>
<WindowView Title="Simple calculator" Width="550" Height="400">
        <GridLayout Columns="4" Rows="5" Margin="10">
		<TextBox ID="txtValue" Margin="5" ColumnSpan="4" Enabled="false" FontSize="2" TextAlign="Right" />
		<Button ID="btn7" Text="7" Margin="5" Click="btn7Click" />
		<Button ID="btn8" Text="8" Margin="5" Click="btn8Click" />
		<Button ID="btn9" Text="9" Margin="5" Click="btn9Click" />
		<Button ID="btnPlus" Text="+" Margin="5" Click="btnPlusClick" />
		<Button ID="btn4" Text="4" Margin="5" Click="btn4Click" />
		<Button ID="btn5" Text="5" Margin="5" Click="btn5Click" />
		<Button ID="btn6" Text="6" Margin="5" Click="btn6Click" />
		<Button ID="btnMinus" Text="-" Margin="5" Click="btnMinusClick" />
		<Button ID="btn1" Text="1" Margin="5" Click="btn1Click" />
		<Button ID="btn2" Text="2" Margin="5" Click="btn2Click" />
		<Button ID="btn3" Text="3" Margin="5" Click="btn3Click" />
		<Button ID="btnMultiply" Text="*" Margin="5" Click="btnMultiplyClick" />
		<Button ID="btnC" Text="C" Margin="5" Click="btnCClick" />
		<Button ID="btn0" Text="0" Margin="5"  Click="btn0Click" />
		<Button ID="btnEqual" Text="=" Margin="5"  Click="btnEqualClick" />
		<Button ID="btnDivide" Text="/" Margin="5"  Click="btnDivideClick" />
        </GridLayout>
</WindowView>
</Application>

Re: 32 Bit FreeBasic OS

Posted: Fri Dec 09, 2016 6:05 pm
by matt11235
trolly wrote:
zenzizenzicube wrote:Is this similar to FXML/JavaFX?
i'm not sur, because i dont know FXML or JavaFX,
to be short, the gui is programmed in Object Oriented, all widget are described in a class, in the xml the node name are the class names (Window , Button, etc...) the attributes are the properties (Top Left, Width , Text, OnClick, etc...) and the childnode are the children contained in the parent object (example, buttons inside a window)
That's quite cool, do you also have a way to add a style to the widgets?

Re: 32 Bit FreeBasic OS

Posted: Fri Dec 09, 2016 6:19 pm
by trolly
for now, no , style is not supported (only the known properties can be set)
if you want to add custom widget you have to implement the class that's herit from the widget (a button by example) and write the draw method for it,

latter i'll add skin support

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 3:42 am
by Kevin
trolly wrote:the hard drive image (for qemu)
http://www.codinfinity.net/NewOS_hd.zip 4M
I wanted to try this out, but what would be a valid username/password for login? :)

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 4:21 am
by BrightLight
Kevin wrote:I wanted to try this out, but what would be a valid username/password for login? :)
Same here. :)

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 4:42 am
by trolly
sorry,


username : guest
password : BONJOUR

(case sensitive)

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 6:54 am
by Kevin
Thanks, that works.

Good job, I like your OS. :)

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 10:31 am
by trolly
Kevin wrote:Thanks, that works.

Good job, I like your OS. :)
Thanks,
there is still a lot to do
* audio driver,
* nethword card driver
* tcp/ip & udp stack
* settings programs
* website
* find a cool name for it

if you have any suggestion, or if you want to help me (writing drivers, desining website or make mokup for the apps, etc...) don't hesitate to reply

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 10:44 am
by Kevin
If you want to use some drivers from me (and others), you can just implement the header files of the CDI interface. Interfacing between C and FreeBasic shouldn't be too hard, but it will add a C compiler to your toolchain.

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 11:05 am
by trolly
Kevin wrote:If you want to use some drivers from me (and others), you can just implement the header files of the CDI interface. Interfacing between C and FreeBasic shouldn't be too hard, but it will add a C compiler to your toolchain.
ho thanks, btw, i think it should be easy to port it in freebasic :D

btw, i dont have git, how do i dowload the sources tree?

Re: 32 Bit FreeBasic OS

Posted: Sat Dec 10, 2016 11:30 am
by matt11235
trolly wrote:btw, i dont have git, how do i dowload the sources tree?
Go to the commit log and click on the snapshot link.

http://git.tyndur.org/?p=cdi.git;a=snap ... bad;sf=tgz