LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-01-2006, 11:43 AM   #16
cxl
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0

Quote:
Originally Posted by alred
do you guys know how ultimate++ parse their layout files ?? i have download their source , but kind of stuck at their "InitLayout()" and some other parsing functions ... donno how to follow their files and dirstories ... or do they really parse their layout files at all ??


btw ... also downloaded the binaries , but some of their dialogs are bad for my 14" monitor ... arrrrrggg ... always the same problems ...



.
No, .lay files are directly compiled as C++ templates. There is no "parse phase" and files are compiled to binary (not to be shipped with app).

(Of course, layout designer has to parse and save them, but that is another issue I guess).

Mirek
 
Old 08-01-2006, 12:38 PM   #17
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by cxl
LAYOUT, ITEM and END_LAYOUT are macros (temporary defined several ways during several include passes of .lay file).
So that means that there is some background code, in this case macros, which alter the source code during the preprocessor stage.

I'm not trying to knock Ultimate++, what I was saying is that it is not a fair comparison. Because it would be possible to achieve the same in Java, and I'm sure that libraries exist that achieve the same elegance in creating the front end.
 
Old 08-01-2006, 01:02 PM   #18
cxl
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by graemef
So that means that there is some background code, in this case macros, which alter the source code during the preprocessor stage.
Then it just depends on whether you believe that macros are part of C++ or not

And those macros are not generated...

Anyway, this detail is not very important. What IS important that widgets are directly represented by class members - that saves a lot of troubles.

Quote:
I'm not trying to knock Ultimate++, what I was saying is that it is not a fair comparison.
In Qt comparison, layout setup code for Qt example is separated exactly because of this (and there is still huge difference in the rest

Anyway, comparisons can never be done in a way which everybody would consider fair. They can give just some clue...

Mirek

Last edited by cxl; 08-01-2006 at 01:09 PM.
 
Old 08-15-2006, 05:51 AM   #19
cxl
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by alred
do you guys know how ultimate++ parse their layout files ??
.
Good explanation is now here in section 16:

http://upp.sourceforge.net/srcdoc$CtrlLib$Tutorial$en-us.html

Mirek
 
Old 08-15-2006, 10:42 AM   #20
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by graemef
I have a friend who would say that this is just like comparing apples and oranges.
i dont know why people have a problem comparing apples and oranges. they are both round, both a fruit, and both grow on trees. they are obviously derived from the same class..
there should be a comparison operators defined for them.
 
Old 08-15-2006, 11:17 AM   #21
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
Quote:
Originally Posted by cxl
Good explanation is now here in section 16:

http://upp.sourceforge.net/srcdoc$CtrlLib$Tutorial$en-us.html

Mirek

thanks , seems that its a very good(kind of complete) short "have a first look at" tutorial ...


//appreciated ...


.
 
Old 08-15-2006, 11:51 AM   #22
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,397

Rep: Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114
As a PowerBuilder programmer, ciaonnau, you're very much accustomed to working with a high-level toolset which is optimized for building the type of applications that are your bread and butter. The C++ programming language is very bare-bones by comparison.

Within the Linux environment, there are other application development frameworks, certainly on par with what you can get in the world that you are used to.

And to be fair, the C++ texts have to start somewhere, as all programming texts do. A very general-purpose language such as C++ is considerably more difficult to describe. The power of PB comes from zeroing in on a fairly restricted, although extremely useful, problem-domain.
 
Old 08-16-2006, 03:35 AM   #23
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by xhi
i dont know why people have a problem comparing apples and oranges
Try making cider from oranges...
 
Old 08-16-2006, 07:40 AM   #24
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by graemef
Try making cider from oranges...
touché....
 
Old 08-17-2006, 07:42 AM   #25
ppanyam
Member
 
Registered: Oct 2004
Location: India
Distribution: Redhat
Posts: 88

Rep: Reputation: 15
I have come across a small program which can create simple GUIs for java using NULL layout.ie) when you resize a window, the widgets dont change size. If your worry is a simple way to get GUI done you can use it. But it does not have too many options.. not even JTree is there! I put a JPanel in it and later make adjustments in the code generated by the program.

Whats more.. I think it is developed in VB!!

ppanyam
 
Old 08-17-2006, 08:18 AM   #26
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 547

Rep: Reputation: 38
Glade migth be something. Go for version 2. http://www.gtk.org/tutorial/

I read the GTK Tutorial and i thing its ok even if the generated c code is shit. http://glade.gnome.org/
 
Old 08-17-2006, 09:03 AM   #27
simon ingle finch
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
can anyone show me a solution to this question.

Write a C function, int init_vector (v), which assigns all the elements of a vector v[] to 0, and returns the number of elements assigned. Assume the vector is ended with '/0' (first element found after the last element of v[]).
 
Old 08-17-2006, 09:06 AM   #28
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by simon ingle finch
can anyone show me a solution to this question.

Write a C function, int init_vector (v), which assigns all the elements of a vector v[] to 0, and returns the number of elements assigned. Assume the vector is ended with '/0' (first element found after the last element of v[]).
no, but someone can assist you with what you have already written, go over here for help with this

(start a new thread for a new topic)
 
Old 08-18-2006, 01:49 AM   #29
ppanyam
Member
 
Registered: Oct 2004
Location: India
Distribution: Redhat
Posts: 88

Rep: Reputation: 15
Quote:
i dont know why people have a problem comparing apples and oranges. they are both round, both a fruit, and both grow on trees. they are obviously derived from the same class..
In pure OO terms, we will have
Code:
Orange inherits Citrus inherits Fruit
SweetLime inherits Citrus inherits Fruit
Apple inherits Fruit

From the above Class diagram

Code:
(Orange)o.isA(Fruit); returns True
(SweetLime)o.isA(Fruit); returns True
(Orange)o.isA(SweetLime); returns False
(Apple)o.isA(Fruit); returns True
(Orange)o.isA(Apple); returns False

Now you know what graemf meant. You also said, they are fruits. Both are fruits doesnt mean Apple and Orange are same.Same for languages. Sure they( java & C++ & VB ) have some things in common. They are programming languages, they have synatax etc. Thats where the similarities end.

ppanyam
 
  


Reply

Tags
application, book, c++, linux, programming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I install sybase client & powerbuilder in linux suse 9.3 Celedonio Buffalo 2 03-23-2007 08:54 PM
powerbuilder on wine eantoranz Linux - Software 2 06-14-2005 01:54 PM
Delphi? LinuxSeeker Programming 3 03-18-2004 07:22 AM
Delphi - Linux - How?? stefanvg Programming 2 06-13-2001 11:17 AM
powerbuilder vickykumar Linux - Networking 0 05-15-2001 12:25 AM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration