Search found 80 matches

by falkenberg_cph
Wed Aug 20, 2008 12:55 pm
Forum: C++ Development
Topic: use wxlist for graph
Replies: 3
Views: 827

I thought boost was a commercial product. Great I'll have a look at it.

I have seen others advocating std containers over wxList. Does wxList have nothing to offer compared to std?

Still, if anybody have a solution to the problem, I would like to here about it - even if i convert to Boost
by falkenberg_cph
Wed Aug 20, 2008 12:28 pm
Forum: C++ Development
Topic: use wxlist for graph
Replies: 3
Views: 827

use wxlist for graph

Hi I have a problem with a wxList. I want to create a list of Nodes that has a list of Edges. The edges should just be pointer to the other Nodes that the current Node is connected to. The problem is that i can't implement a wxList in my class when its elements are of the same class. Like this: node...
by falkenberg_cph
Mon Aug 18, 2008 7:19 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

:oops: The files were residing in the right folder, however they had not been registered by NetBeans in the project. I will choose to believe it is a problem with Netbeans, though i now - deep in my heart - it's not :D I really appreciate your help, and I'm sorry I had to bother you for something so...
by falkenberg_cph
Mon Aug 18, 2008 6:47 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

Oh there is also a wx/control.h, didn`t think of that. Anyway renamed the class to Ctrl and the files to ctrl.h and .cpp. The problem persists. The project is managed could it perhaps be an issue with that?
by falkenberg_cph
Mon Aug 18, 2008 6:33 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

Argh. This makes no sense I totally edited to wxTreeCtrl part out of my Control class. So that it now looks like this: control.h #ifndef _CONTROL_H #define _CONTROL_H class Control { public: // Ctor & Dtor Control(); ~Control(); .... }; #endif control.cpp #include "control.h" Control::Control() { } ...
by falkenberg_cph
Mon Aug 18, 2008 5:52 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

I unfortunately marked this thread as accepted. It's not I'm still having mysterious problems. Any help highly appreciated.
by falkenberg_cph
Mon Aug 18, 2008 1:56 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

Ok. Changed the Control ctor to remove all doubt. Got to go i have an appointment. Any ideas much appreciated :) Control::Control(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator, const wxString& name) :wxTreeCtrl(parent, id, pos, size...
by falkenberg_cph
Mon Aug 18, 2008 1:48 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

Changed to constructor once again: Control::Control(wxWindow *parent, wxWindowID id, const wxString& title) :wxTreeCtrl(parent,id, wxDefaultPosition, wxDefaultSize, wxTR_HAS_BUTTONS, wxDefaultValidator, title) Now I'm back to this error message: /home/carsten/NetBeansProjects/graph_gui/mainpanel.cpp...
by falkenberg_cph
Mon Aug 18, 2008 1:43 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

That was interesting. I changed my TreeCtrl class to Control. Now I'm getting something that maybe makes more sense: g++ `wx-config --cxxflags --debug=yes --static=no` -c -g -o build/Debug/GNU-Linux-x86/mainpanel.o mainpanel.cpp /usr/include/wx-2.8/wx/generic/treectlg.h: In copy constructor ‘wxTreeC...
by falkenberg_cph
Mon Aug 18, 2008 1:28 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

I tried changing the ctor implementation to this (didn't work):

Code: Select all

TreeCtrl::TreeCtrl(wxWindow *parent)
:wxTreeCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_HAS_BUTTONS, wxDefaultValidator, wxT("treeCtrl"))
by falkenberg_cph
Mon Aug 18, 2008 1:21 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

Whoops. The error message is: /home/carsten/NetBeansProjects/graph_gui/mainpanel.cpp:22: undefined reference to `TreeCtrl::TreeCtrl(wxWindow*)' [EDIT:] This is the line thats creating an error: tree = new TreeCtrl(this); I don't think it is because of the constructor. If a derived class does not use...
by falkenberg_cph
Mon Aug 18, 2008 1:01 pm
Forum: C++ Development
Topic: undefined reference should be ok
Replies: 14
Views: 1892

undefined reference should be ok

Hey I have this strange problem - Maybe I'm missing something completely obvious - I have an undefined reference to a wxTreeCtrl derived class. It just doesn't make any sense to me that it shouldn't work. I can make a wxTreeCtrl, but apparently not a derived object. I use NetBeans in Ubuntu Hope you...
by falkenberg_cph
Sun Aug 17, 2008 11:50 am
Forum: C++ Development
Topic: wxConfig read if frame is maximized
Replies: 2
Views: 618

mick009 wrote: I don't read that :oops:
What ... Is it that bad :shock: :wink:
It just made sense to me to wrap it all up on exit. But i guess now that you gave me the old oops, i can see that the class that "owns" the values should read and write them to the config.

Thanks
Carsten
by falkenberg_cph
Sun Aug 17, 2008 11:11 am
Forum: C++ Development
Topic: wxConfig read if frame is maximized
Replies: 2
Views: 618

wxConfig read if frame is maximized

Hi I got a small problem. I want to read some values with wxConfig at application exit. So i call my function setConfig() from wxApp::OnExit(). Unfortunately the mainframe has been destroyed before that, so I am not able to read if it is maximized or not. I realize i could do this from within the ma...
by falkenberg_cph
Sun Aug 17, 2008 10:10 am
Forum: C++ Development
Topic: Valgrind giving leaks in wxWidgets HelloWorld program
Replies: 6
Views: 1482

mc2r wrote: This is covered in the faq, item 4.2.4.
Yeah, i was afraid I had to fiddle with suppression files :?
Anyway thanks for your answers. I had not seen that FAQ before.

Carsten