Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 15-05-2013, 09:09   #1
Registered User

Join Date: May 2013
Posts: 38
What IDE use to edit openCPN source code

Hello,

I manage to compile openCPN source code on my ubuntu machine and I can make some custom modification. But I'm looking for a compatible IDE which could allow me to modify the apparence and things like buttons...etc..

If someone can help me please^^
__________________

__________________
zodd is offline   Reply With Quote
Old 15-05-2013, 09:18   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: What IDE use to edit openCPN source code

zodd...
I use Code::Blocks, Dave uses KDevelop and cmake can also generate project files for Eclipse CDT.
I'm not exactly sure what you mean by "modifying appearance and things like buttons", but if you expect that you will see some forms you will modify using your mouse, you will probably be kind of disappointed...
For GUI, I use wxFormbuilder to prototype and create code skeletons quite a lot.

Pavel
__________________

__________________
nohal is online now   Reply With Quote
Old 15-05-2013, 09:28   #3
Registered User

Join Date: May 2013
Posts: 38
Re: What IDE use to edit openCPN source code

Thanks for your fast reply.

Well I usualy program with QT which is really practical to add button, radio box, Edit line, etc.. So you're right, I was hopping that I could modify the interface using my mouse...
What I would like to do is to make a very lite version with less button and with a fixed configuration for example.
__________________
zodd is offline   Reply With Quote
Old 15-05-2013, 09:40   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: What IDE use to edit openCPN source code

zodd...
To which buttons are you referring? If to the toolbar, you can remove buttons and you can change the style used. You can also ship with a preset configuration. No need for any programming to do that...

Pavel
__________________
nohal is online now   Reply With Quote
Old 15-05-2013, 10:06   #5
Registered User

Join Date: May 2013
Posts: 38
Re: What IDE use to edit openCPN source code

Really? Well I guess I missed something obvious..

Edit: Well, I don't find where I can find an option to remove "show currents" or "route manager" for exemple.? In fact I just want to conserve "zooms", "shift scale" buttons and display AIS and GPS.
__________________
zodd is offline   Reply With Quote
Old 15-05-2013, 10:15   #6
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: What IDE use to edit openCPN source code

Looks like you probably did
1) Right click on the toolbar
2) Look in the /usr/share/opencpn/uidata/
3) move ~/.opencpn/opencpn.conf to a new instalation

Pavel
__________________
nohal is online now   Reply With Quote
Old 15-05-2013, 10:21   #7
Registered User

Join Date: May 2013
Posts: 38
Re: What IDE use to edit openCPN source code

Thanks I'll try that ^^

Edit: You're great, quite simple when we know it^^
__________________
zodd is offline   Reply With Quote
Old 15-05-2013, 10:25   #8
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: What IDE use to edit openCPN source code

Quite simple when we RTFM
Toolbar Buttons | Official OpenCPN Homepage
User Interface Styling | Official OpenCPN Homepage

Enjoy

Pavel
__________________
nohal is online now   Reply With Quote
Old 15-05-2013, 10:30   #9
Registered User

Join Date: May 2013
Posts: 38
Re: What IDE use to edit openCPN source code

You're right^^ all my apologizes
__________________
zodd is offline   Reply With Quote
Old 16-05-2013, 12:55   #10
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: What IDE use to edit openCPN source code

I use Code::Blocks as well, with wxFormBuilder to create the GUI for the plugins.
__________________
SaltyPaws is offline   Reply With Quote
Old 17-05-2013, 01:30   #11
Registered User

Join Date: May 2013
Posts: 38
Re: What IDE use to edit openCPN source code

Thank you afor the answer. I will try Code::Blocks ^^
__________________
zodd is offline   Reply With Quote
Old 17-05-2013, 02:04   #12
Registered User

Join Date: May 2013
Posts: 38
Re: What IDE use to edit openCPN source code

Well, I installed Code::Block on my Ubuntu. And now I try to create a project with the sources files of openCPN. Have you got some clue how to do this? which type of project should I choose, etc..
__________________
zodd is offline   Reply With Quote
Old 17-05-2013, 02:27   #13
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: What IDE use to edit openCPN source code

I am running in Ubuntu as well.

I just start with a console project (OpenCPN dir), and then add the source files with recursively add. I use a command line script from the build folder to compile/build/run OpenCPN. e.g.

Code:
#bin/bash
#Place in OpenCPN/build
cmake ../
make
sudo make install
opencpn
__________________
SaltyPaws is offline   Reply With Quote
Old 17-05-2013, 02:56   #14
Registered User

Join Date: May 2013
Posts: 38
Re: What IDE use to edit openCPN source code

Thanks, that's what I was doing with QT IDE. I thought I could use only CODE::Block without using command line. Do you manage to debug the project in Code::Block doing this way?
__________________
zodd is offline   Reply With Quote
Old 17-05-2013, 06:34   #15
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: What IDE use to edit openCPN source code

zodd...
Code:
cmake -G "CodeBlocks - Unix Makefiles" ..
is all the command line you will ever need... Then open the generated OpenCPN.cbp in the IDE.

Pavel
__________________

__________________
nohal is online now   Reply With Quote
Reply

Tags
opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 12:59.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.