Hey Hey! So, the GSoC 2013 is finished (at least for students!) and now everybody is waiting for the final results. To wrap up the project I decided to try to build some examples that could resemble more a real application, so here is a screencast showing a new MarsPackageBrowser example from where you can…
Several examples of little applications done in Mars for Pharo, showing different kind of widgets arranged in different kinds of layouts, working in both Cocoa and GTK.
This video shows the same Mars example explained here: https://marsonpharo.wordpress.com/2013/09/12/mars-layouts-and-sizing-policies-how-to-use-them/, working on both Cocoa and GTK.
Hey! If you load the current Mars project version you will be able to open several examples. They are not actually useful applications, but they show you how to use the widgets working so far and the layouts combinations. So, load the Mars project: Gofer it url: ‘http://www.smalltalkhub.com/mc/estebanlm/Mars/main’; package: ‘ConfigurationOfMars’; load. (ConfigurationOfMars project version: ‘0.3’)…
Hey again! So, I want to tell you about the challenges I found when I tried to build layout policies for Mars that could result into similar-looking applications in either Cocoa or GTK. Let me start showing you the basic implementation of MarsVerticalLayout: MarsVerticalLayout>>applyLayout: aContainer | bounds displacement width height yPosition | bounds := aContainer…
Hi everybody, It’s been a while since my last post. Besides adding some more widgets, during most of the second period of the project I’ve been fighting working with layouts. This post is not to tell you what I’ve actually done, this post is to tell you how to use the layouts that are now…
Hi everyone! So, most of the work I’ve done so far was about: Refactoring code Fixing bugs Adding a few new widgets and event handling (for example: labels, buttons and press events, text inputs and keyboard events) Now I will show you some examples and how to build a Mars application. Installing Mars Remember that…
After “warming up” with Mars-Gtk at the beginning, I started experimenting with Mars-Cocoa. The first thing that freaked me out was to ask myself: “Dude, where are the Alien calls to Objective-C? Where’s the magic?”. Let me show you. Here is some code for the CocoaLabel class (a bit modified for the example): CocoaLabel>>label: aString…
So, I actually decided to start completing the Mars Browser example on GTK. Up to now, you can look at packages, classes and methods but you can’t edit text (so, no method edition, no class edition, etc.). I’ve managed to get a basic GtkEventKey representation on Mars and my first intention is to catch the Ctrl+s…
So, Mars is a framework that will let Pharo programmers to build native UIs for Windows, Linux and MacOS. Basically, Mars will be able to do that by using the user interface frameworks that run on each of those operating systems (Windows Forms, GTK and Cocoa respectively). Esteban suggested to start with Linux. Bad for…