473,322 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

GUI kit with ref-counting

Hi,
I have spent the last several days googling for info on GUI kits. So
far FLTK seems good. However I have learned the value of reference
counted pointers (and weak references) and cannot in good concience
write a very large intricate gui with new and delete operations
scattered all over the place. I thought that since boost::shared_ptr
has been out for so long, that there would be some gui exploiting it,
or other reference counted pointers. Seems I am mistaken. Well, I hope
that someone here can correct an oversight, and not confirm the bad
news. So basically, is there a GUI kit which does NOT use bald
pointers, is somewhat portable or, if it is platform specific, simple
enough to port in a few (long) days. I do not need fancy pants widgets
or a RAD gui designer, just something which can draw lines, rects,
text, and images, and dispatches events. If there is something
incomplete or abandoned, but provides the above essentials, I would be
glad to do a clean-up job and stabilize it myself.

- Jeremy J

Feb 9 '06 #1
5 1241
On 9 Feb 2006 10:11:27 -0800, "Jeremy Jurksztowicz"
<ju**********@gmail.com> wrote:
I have spent the last several days googling for info on GUI kits. So
far FLTK seems good. However I have learned the value of reference
counted pointers (and weak references) and cannot in good concience
write a very large intricate gui with new and delete operations
scattered all over the place.
Only bad C++ programmers scatter new and delete statements all over
the place. Maybe you should first become acquainted with fundamental
C++ resource management idioms like RAII?
I thought that since boost::shared_ptr
has been out for so long, that there would be some gui exploiting it,
or other reference counted pointers. Seems I am mistaken.
Maybe shared_ptr is not as smart as some people think? Maybe merely
using 'smart' pointers doesn't make your code smart?
Well, I hope
that someone here can correct an oversight, and not confirm the bad
news. So basically, is there a GUI kit which does NOT use bald
pointers, is somewhat portable or, if it is platform specific, simple
enough to port in a few (long) days.
Perhaps http://smartwin.sourceforge.net/
I do not need fancy pants widgets
or a RAD gui designer, just something which can draw lines, rects,
text, and images, and dispatches events.
For a serious GUI you need a GUI designer.
If there is something
incomplete or abandoned, but provides the above essentials, I would be
glad to do a clean-up job and stabilize it myself.


You can find dozens of incomplete and abandoned GUI libraries on the
internet.

Regards,
Roland Pibinger
Feb 9 '06 #2
Jeremy Jurksztowicz wrote:

[...]
news. So basically, is there a GUI kit which does NOT use bald
pointers, is somewhat portable or, if it is platform specific, simple
enough to port in a few (long) days. I do not need fancy pants widgets
or a RAD gui designer, just something which can draw lines, rects,
text, and images, and dispatches events. If there is something
incomplete or abandoned, but provides the above essentials, I would be
glad to do a clean-up job and stabilize it myself.


(IMO) C++ could really do with a standard GUI. Various reasons it
hasnt, mainly no-one has time to do it.

see http://tinyurl.com/75cb4 for recent discussion on this subject.

But there are several cross-platform GUI libraries about. Some listed
here:

http://www.crystalclearsoftware.com/...ki.pl?BoostGUI

regards
Andy Little

Feb 9 '06 #3
news. So basically, is there a GUI kit which does NOT use bald
pointers, is somewhat portable or, if it is platform specific, simple
Ultimate++.

http://upp.sf.net

However, it does not use "reference counted pointers";) I just does not
use pointers at interface level at all.
enough to port in a few (long) days. I do not need fancy pants widgets
or a RAD gui designer,
It has them.
just something which can draw lines, rects,
text, and images, and dispatches events.
Sure.
If there is something
incomplete or abandoned, but provides the above essentials, I would be
glad to do a clean-up job and stabilize it myself.


Sorry, Ultimate++ is neither incomplete or abandoned :)

Mirek
Feb 9 '06 #4
Wow, that was an extremely hostile response, thanks for insulting my
intelligence. You managed to insinuate I was a:

A) Bad programmer,
B) Ignorant of C++ programming fundamentals
C) Stupid
D) Incapable of searching the internet

And you arrogantly try to tell me my software requirements by stating I
must use a GUI designer. Troll.

Thanks to all who posted civilized responses.

-Jeremy Jurksztowicz

Feb 10 '06 #5
On 9 Feb 2006 20:11:21 -0800, "Jeremy Jurksztowicz"
<ju**********@gmail.com> wrote:
Wow, that was an extremely hostile response, thanks for insulting my
intelligence. You managed to insinuate I was a:

A) Bad programmer,
B) Ignorant of C++ programming fundamentals
C) Stupid
D) Incapable of searching the internet


None of those things have I said in my posting! You read something
into my answer that has neither been intended nor written! Moreover,
I'm the only one so far who has provided a link to a GUI kit that
meets your requirements. Anyway, I promise not to bother you with an
answer any more.

Good luck
Feb 10 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Andrew | last post by:
It seems that in C#, given an instance "a" of some value type "A", one can pass a by reference to functions with signatures of either "void f(object obj)" or "void g(ref A obj)". But passing a into...
12
by: Ori | last post by:
Hi, I have a simple question. Let say that i have 3 functions as following private main() { Object oTop = new Object(); }
5
by: Tee | last post by:
Hi guys, I am confused about the usage of "ref". Please see this code: private void button3_Click(object sender, System.EventArgs e) {
6
by: Lenn | last post by:
Hi, Could someone clarify my confusion regarding passing reference types to a method with ref keyword and explain when it's practical to use it. It's my understanding that in .NET reference...
7
by: George | last post by:
Hi, Does anyone know how Control.Invoke can invoke a method which has ref parameters? For example, class A { public delegate MyFuncHandler(ref int i, ref int j);
5
by: ano | last post by:
I received this error when I used "ref" in foreach statement. Dictionary<string, object> oInterfaces; foreach (clsInterface vinterface in oInterfaces.Values) { func1( ref vinterface ); } ...
6
by: semkaa | last post by:
Can you explain why using ref keyword for passing parameters works slower that passing parameters by values itself. I wrote 2 examples to test it: //using ref static void Main(string args) {...
6
by: DaTurk | last post by:
Hi, I'm coding a layer into my application using CLI, between a unmanaged and a c# layer. So, I have to marshal some unmanaged c++ structures to structures usable in c#. My solution was to...
65
by: Arjen | last post by:
Hi, Form a performance perspective, is it wise to use the ref statement as much as possible? Thanks! Arjen
5
by: .rhavin grobert | last post by:
are there any pro's and con's in using references to shared_ptr<>'s ? example: __________________________________________________ void obj::foo(shared_ptr<>); vs. void...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.