Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-10-2015, 14:39   #451
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Found dbcopy.bat. Sorry.
rgleason is offline   Reply With Quote
Old 31-12-2015, 18:42   #452
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
"Cherry Picking" for Pull Requests

Adding Hakan and Pavel's contributions re
http://www.cruisersforum.com/forums/...ml#post1948490
Quote:
I have a branch, "myocpn", in my Github. In that branch is one commit I would like to share as a pull request to OpenCPN master. I don't want to push the whole branch since there are other stuff only valid for my boat's navigational system.
Here Pavel describes how to "Cherry Pick"
http://www.cruisersforum.com/forums/...ml#post1948524

He also modestly suggests "How to Squash Commits" here
(You may read my masterpiece about this at Squashing commits in a git feature branch into a single commit in master - deepHill Communications)

Using these techniques Hakan was able to Cherry Pick for a Pull Request associated with his changes for AIS "Follower". Nice job.
rgleason is offline   Reply With Quote
Old 15-01-2016, 17:16   #453
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Crowdin Language Process (pot)

Hakan wrote:
Quote:
This is my picture of the process.
In VS2013 you can build the "ocpn_draw-pot-update" project only to create a fresh pot file. (How this is done in Linux I don't know but something similar I suppose). Then give Pavel a hint that there's a pot file to copy into Crowdin. It can be done now though all texts may not be in its final version. The translators can then work on what's there. Short before a final version the last pot update, if any _("text") has been changed or added, can be copied to Crowdin and there will not be much to do for the translators.
A fully translated language use to render a pull request including .mo files from Pavel to your Github.
Pavel use to watch so any corrections needed may follow this post.
Håkan
rgleason is offline   Reply With Quote
Old 15-01-2016, 17:27   #454
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Compile Plugins with SVG

This ODraw-readme.txt.doc will help others understand what is required to compile plugins with SVG
Attached Files
File Type: doc Odraw-readme.txt.doc (2.2 KB, 48 views)
rgleason is offline   Reply With Quote
Old 15-01-2016, 17:53   #455
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Process for supporting crowdin and Language Files

For Plugins Language files, bdbcat explains.

http://www.cruisersforum.com/forums/...ml#post2017322
rgleason is offline   Reply With Quote
Old 03-02-2016, 03:36   #456
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Form Builder to change some menus in Windows

The menus in Weather_routing_pi are cramped and illegible. I would like to use Form Builder to change them and make a new form file, but I've forgotten how to do that.

Can anyone help get me started?
rgleason is offline   Reply With Quote
Old 03-02-2016, 16:43   #457
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: Development Debugging Environment - Setup Help

Rick,
If you have formbuilder installed all you need to do is go to the root directory for your weather_routing_pi, then look for 'WeatherRouting.fbp' and double click it. This will open formbuilder with the forms loaded. Make the changes you want then you have to click on the save icon, little diskette icon, and the generate icon, little blue gear cog. Now you have updated the fbp file and updated the cpp and h files for the code. These will have been updated in the src directory. Now just build the project and it should all be there.

Jon
jongough is offline   Reply With Quote
Old 04-02-2016, 09:50   #458
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Thank you Jon,

1. Downloaded wxformbuilder as Hakan suggested wxFormBuilder download | SourceForge.net

2. Went to root directory for your weather_routing_pi, and found 'WeatherRouting.fbp' and double click it.

3. This will open formbuilder with the forms loaded.

4. Make the changes you want.

5. Then click on the save icon, little diskette icon, and the generate icon, little blue gear cog.

6. Now you have updated the fbp file and updated the cpp and h files for the code. These will have been updated in the src directory.

7. Now just build the project and it should all be there.

-----

Jon I got as far as #4 and am having trouble making changes in the width allotted for values. I tried clicking on the Expand button and the Stretch button, but nothing seems to happen. I think it is due to a value of -1 which as I recall means something like automatically adjust the width, but it is not happening that way. I was going to hard code a width. However I have found no good instructions about this except yours!
rgleason is offline   Reply With Quote
Old 04-02-2016, 12:09   #459
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Once the weather_routing.fbp file is open,

I am able to stretch the main frame fgSizer95:wxflexGridSizer by grabbing the corner with a left button mouse and pulling it wider.

Then I want to make the left side wider, so that hopefully everything shows properly. That would be fgSizer83:wxFlexGridSizer.
When I highlight fgSizer83:wxFlexGridSizer, there is a partial red outline showing on the bottom left. I assume I have the left panel selected. I try to grab it with the left mouse button and cannot do anything. It does not work.
I want to make the left panel wider so that under Courses the "To" shows the entire "180" degrees.

Is there another way that I can make this change?
Attached Thumbnails
Click image for larger version

Name:	wxformbuilder.png
Views:	120
Size:	202.5 KB
ID:	118301  
rgleason is offline   Reply With Quote
Old 04-02-2016, 12:15   #460
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

I then try to highlight on the right column, the "fgSizer112:wxFlexGridSizer"
I want to widen this right panel so that "Wind strength is "10"" shows properly as Wind Strength is "100" as it should be.

I cannot drag that column wider. There is also no readily apparent control that I have tried (and I have tried many) that will expose the parameters so that I can change them, nor is there any instruction whatsoever that is comprehensible on the internet.

If someone has a half a clue as to what to do to make this change I would appreciate a post.
Thank you.,
rgleason is offline   Reply With Quote
Old 04-02-2016, 19:28   #461
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: Development Debugging Environment - Setup Help

Rick,
For what you want to do I don't think it will work using formbuilder, you will need to do it in the C++ code itself. When the fields are filled in but before they are displayed I think you are going to have to cause the dialog to be resized. The following should do it, but......
Code:
    this->GetSizer()->Fit( this );
    this->Layout();
It takes quite a bit of trial and error to get it right for all platforms, normally windows being the most difficult to get working. I am currently working on OD, so don't really have time to play with that at the moment, sorry.

Jon

Quote:
Originally Posted by rgleason View Post
Once the weather_routing.fbp file is open,

I am able to stretch the main frame fgSizer95:wxflexGridSizer by grabbing the corner with a left button mouse and pulling it wider.

Then I want to make the left side wider, so that hopefully everything shows properly. That would be fgSizer83:wxFlexGridSizer.
When I highlight fgSizer83:wxFlexGridSizer, there is a partial red outline showing on the bottom left. I assume I have the left panel selected. I try to grab it with the left mouse button and cannot do anything. It does not work.
I want to make the left panel wider so that under Courses the "To" shows the entire "180" degrees.

Is there another way that I can make this change?
jongough is offline   Reply With Quote
Old 05-02-2016, 04:43   #462
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Weather_routing thread with some frustration/notes about using wxformbuilder
http://www.cruisersforum.com/forums/...ml#post2035259
Several messages following this one.

Jon, thank you for the helpful hints. I will continue to try to get the fields showing.
rgleason is offline   Reply With Quote
Old 05-02-2016, 06:34   #463
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Development Debugging Environment - Setup Help

Now I understand that wxFormBuilder is just a graphical front end to wxWidgets and is intended to allow easier graphical control or organization of menus etc.

For example the underlying objects like wxsizer are direct from wxWidgets
wxWidgets: Sizers Overview

Quote:
What makes sizers so well fitted for use in wxWidgets is the fact that every control reports its own minimal size and the algorithm can handle differences in font sizes or different window (dialog item) sizes on different platforms without problems. For example, if the standard font as well as the overall design of Linux/GTK widgets requires more space than on Windows, the initial dialog size will automatically be bigger on Linux/GTK than on Windows.
This is apparently not working to well for Weather_routing plugin
rgleason is offline   Reply With Quote
Old 08-02-2016, 11:46   #464
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Plugin Internationalization - Weather_routing_pi example

We would like to know how to update the weather_routing_pi.POT file with current labels and phrases.

Also we would like to know what the internationalization (Language) process is for plugins.

Please see this post about Weather_routing_pi Languange.
http://www.cruisersforum.com/forums/...ml#post2039986
rgleason is offline   Reply With Quote
Old 08-02-2016, 12:32   #465
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,112
Re: Development Debugging Environment - Setup Help

Rick...
See my post here: http://www.cruisersforum.com/forums/...ml#post2040040
Håkan
Hakan is offline   Reply With Quote
Reply

Tags
environment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Advertise Here


All times are GMT -7. The time now is 00:01.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.