15

Gambas mosc 2011 slide

Embed Size (px)

DESCRIPTION

Gambas is the name of an object-oriented dialect of the BASIC programming language as well as the integrated development environment that accompanies it. It is designed to run on Linux and other Unix-like computer operating systems.[2] Its name is a recursive acronym for Gambas Almost Means Basic. Gambas is also the word for prawns in the Spanish language, from which the project's logos are derived.

Citation preview

Page 1: Gambas mosc 2011 slide
Page 2: Gambas mosc 2011 slide

http://gambas.sourceforge.net

GAMBASALMOSTMEANSBASIC

Page 3: Gambas mosc 2011 slide

A Development EnvironmentInspired By JAVA™ And Visual Basic™

GAMBASALMOSTMEANSBASIC

Simplification

LINUX

JAVA

QT

GTK+

Visual Basic™

OpenGL

SDL

Abstraction Consistency

Page 4: Gambas mosc 2011 slide

Gambas History Developed by the French programmer Benoît Minisini First release coming in 1999 Gambas 1.x versions featured an interface made up

➢ Fimilar fashion to the interface of the GIMP➢ only develop applications using Qt➢ oriented towards the development of applications for

KDE➢ The last release is Gambas 1.0.19

Gambas 2.x was released on 02 January 2008➢ It featured a major redesign of the interface➢ Gambas 2.x versions can load up and run Gambas 1.x

projects➢ use GTK+ for drawing or utilize OpenGL acceleration➢ The Stable Version & Using Now 2.23.1 (27 May 2011) Gambas 3 RC was released on 27 May 2011

Page 5: Gambas mosc 2011 slide

WHAT IS IN?

A Modern And Easy Development Environment

Syntax Highlighting Automatic Completion GUI Form Editor Code Source Translator Integrated Debugger Help Explorer

A Full BASIC Language

Datatypes Control Structures Error Management Inputs – Outputs String Management Arithmetical & Logical Functions File Management Date & Time Management Charset Conversion Functions Process Management

An Object-Oriented Language Public or Private Symbols Dynamic or Static Symbols Simple Inheritance Polymorphism Properties Events Constructor / Destructor Special Methods No Garbage Collector Event Observers Native Classes Exportable Classes

Page 6: Gambas mosc 2011 slide

COMPONENTSExtensible Language

gb.compress ► Compress / Uncompress gb.corba ► COBRA Client gb.crypt ► DES / MD5 Crypting gb.db ► Database Acces gb.gtk ► GTK + Graphical Toolkit gb.ldap ► LDAP Client gb.net ► Networking gb.opengl ► OpenGL Library gb.pcre ► Regular Expressions gb.pdf ► PDF Rendering gb.qt ► QT Graphical Toolkit gb.qt.kde ► KDE Integration gb.qt.kde.html ► Internet Browser gb.sdl ► SDL Library (image, sound & etc) gb.v4l ► Video For Linux Library gb.xml ► XML / XSLT API

Page 7: Gambas mosc 2011 slide

VISUAL BASIC™ PROJECT

ProjectSource Code

VISUAL-BASICBytecode

ACTIVE-XCOMPONENTS

ACTIVE-XCONTROLS

WINDOWSSHARED

LIBRARIES

BUGSBUGS

INTERPRETER

BUGSN/D

N/D

Text Files

Form Binary Data ◄Can Be Guessed (Sometimes)

Active-X Automation

N/D = Not DocumentedWindows Applications

COMPILER

Page 8: Gambas mosc 2011 slide

GAMBAS PROJECT

ProjectSource Code

GAMBASBytecode

COMPONENTSWRITTEN IN

GAMBAS

COMPONENTSWRITTEN IN

C/C++

GNU COMMANDLINE & UTILITIES

INTERPRETER

BUGS

Text Files

Data Files

DCOP

N/D = Not Documented Gnome/KDE Applications

DBUS

COMPILER

Page 9: Gambas mosc 2011 slide

APPLICATION INTERFACEVISUAL BASIC VS GAMBAS

Non-Language-Specific Differences

Type of file Visual Basic Gambas

Project definition file .vbp .project

Module .bas .module

Class file .cls .class

Form definition file .frm .form

Binary resource files .frx Any other files Stored

Page 10: Gambas mosc 2011 slide
Page 11: Gambas mosc 2011 slide
Page 12: Gambas mosc 2011 slide

PROGRAMMING LANGUAGEGAMBAS VS VISUAL BASIC

VISUAL BASIC 6

VERSION 5.00Begin VB.Form Form1 BorderStyle = 1 'Fixed Single Caption = "Simple Calc"End Begin VB.CommandButton CmdDarab Caption = "X" Height = 375 Left = 120 TabIndex = 3 Top = 1200 Width = 375 EndAttribute VB_Name = "Form1"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalsePrivate Sub CmdDarab_Click() On Error GoTo ErrorHandler LblOPS.Caption = "Darab" InNo3.Text = InNo1 * InNo2 Exit SubErrorHandler: LblOPS.Caption = "Kesilapan Pengguna" TxtJaw.Text = "Kesilapan Pengguna" Resume NextEnd Sub

GAMBAS 2

' Gambas class file' This is for Note. Please Use (') To Start Your Note

PUBLIC SUB _new()Form.AutoResize = FALSE

END

PUBLIC SUB Form_Open()ME.CenterForm.Maximized = FALSEEND

PUBLIC SUB Darab_Click()

LblOPS.Caption = "Darab"

InNo3.Text = InNo1.Text * InNo2.Text

CATCH Error.ClearLblOPS.Caption = "Kesilapan Pengguna"InNo3.Text = "Kesilapan Pengguna"

END

Page 13: Gambas mosc 2011 slide

WHY NOT USING GAMBAS?

Writing It's Own Language Is Funny & Exciting Easy To Learn With Something Visual, Easy & Basic Development Environment Is Easy To Use Fast To Development Something Simple Application/Software An Object-oriented Language Components Are Designed To Be As Simple & Coherent As

Possible You Can Write Software That Is Independent From The Graphical

Toolkit & The Underlaying Database Management System Good To Teach At University As Basic Programming Language To Make The Power Of GNU/Linux Libraries Easily Accessible Last, But Not Least : GNU/Linux Is Free, Powerful, Secure & Cool

Page 14: Gambas mosc 2011 slide

THE GAMBAS FUTURE

✔ New Development Environment✔ QT & QTK+ Components Completed✔ Controls Bound To Data Sources✔ Report Designer✔ DBUS Protocol✔ Making Web Applications✔ Help Porting Visual Basic™ Applications✔ Object Persistence System✔ And Many Moore..

Thank For Your Time To

Viewing Facility in Gambas

Page 15: Gambas mosc 2011 slide

Thank To...

Benoît Minisini , Mark Alexander Bain, Adolf J Winterer,Google, Wikipedia And All...