Cruisers Forum
 


Join CruisersForum Today

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

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
Re: Development Debugging Environment - Setup Help

Found dbcopy.bat. Sorry.
__________________

__________________
rgleason is online now   Reply With Quote
Old 31-12-2015, 19:42   #452
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
"Cherry Picking" for Pull Requests

Adding Hakan and Pavel's contributions re
Beta Test / Technical
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"
Beta Test / Technical

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 online now   Reply With Quote
Old 15-01-2016, 18:16   #453
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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 online now   Reply With Quote
Old 15-01-2016, 18:27   #454
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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, 9 views)
__________________
rgleason is online now   Reply With Quote
Old 15-01-2016, 18:53   #455
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
Process for supporting crowdin and Language Files

For Plugins Language files, bdbcat explains.

Ocpn-Draw and Boundary
__________________
rgleason is online now   Reply With Quote
Old 03-02-2016, 04:36   #456
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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 online now   Reply With Quote
Old 03-02-2016, 17:43   #457
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 842
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, 10:50   #458
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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 online now   Reply With Quote
Old 04-02-2016, 13:09   #459
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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:	41
Size:	202.5 KB
ID:	118301  
__________________
rgleason is online now   Reply With Quote
Old 04-02-2016, 13:15   #460
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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 online now   Reply With Quote
Old 04-02-2016, 20:28   #461
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 842
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, 05:43   #462
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
Re: Development Debugging Environment - Setup Help

Weather_routing thread with some frustration/notes about using wxformbuilder
Weather Routing
Several messages following this one.

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

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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 online now   Reply With Quote
Old 08-02-2016, 12:46   #464
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,811
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.
Weather Routing
__________________
rgleason is online now   Reply With Quote
Old 08-02-2016, 13:32   #465
Registered User

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

Rick...
See my post here: Weather Routing
Håkan
__________________

__________________
Hakan is offline   Reply With Quote
Reply

Tags
environment

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



Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:16.


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.