Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-08-2012, 11:43   #16
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Calculator_pi New finished plugin for OpenCPN

@ Zoef: I like your challenge. The calculator stays on top, and as some navigational formulas in the help. It takes less space on the screen than the version with buttons, and it offers expression parsing. On minimal install platforms, no separate calculator is required.

I would like to tailor the calculator more towards the sailor. e.g. options could be:
* preload conversion factors
* more calculations in the help via tabs
* add custom navigation functions

I very much welcome ideas and suggestions on this thread. I will implement the scroll bar suggestion, and the behaviour on two button clicks in the next revision. I welcome other ideas and suggestions.
__________________

__________________
SaltyPaws is offline   Reply With Quote
Old 23-08-2012, 04:27   #17
Registered User

Join Date: Feb 2008
Posts: 34
Re: Calculator_pi New finished plugin for OpenCPN

I'd find very useful a conversion feature back and fro

Deg° Min' Sec.###" to Deg° Min'.### and eventually also to Deg°.##### notation
__________________

__________________
scud is offline   Reply With Quote
Old 23-08-2012, 06:28   #18
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
Images: 57
Send a message via Skype™ to sinbad7
Re: Calculator_pi New finished plugin for OpenCPN

scud..

Try this on-line converter:
UTM & Lat/Lon Conversions

If you have an Android smartphone I recommend ´GPS Coordinates converter´

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 29-03-2013, 11:00   #19
Registered User
 
Stingo's Avatar

Join Date: Aug 2005
Location: Cruising the seven seas
Boat: Maxim 380
Posts: 133
Send a message via Skype™ to Stingo
Re: Calculator_pi New Finished Plugin for OpenCPN

SaltyPaws. On Windoze XP SP3, I cannot see what I've input in the box - see image.
Which font is being used and under which group in the drop-down menu?
Attached Thumbnails
Click image for larger version

Name:	calc.jpg
Views:	86
Size:	31.1 KB
ID:	58191  
__________________
Stingo is offline   Reply With Quote
Old 29-03-2013, 14:34   #20
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Calculator_pi New Finished Plugin for OpenCPN

Hi Stingo,

I don't think the text size can be changed with the pulldown menu you showed. I will make it a plugin option in the next update.
__________________
SaltyPaws is offline   Reply With Quote
Old 29-03-2013, 16:47   #21
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Calculator_pi New Finished Plugin for OpenCPN

I have updated the default values for fontsize in the box (from fixed to default). As I am running linux, I cant compile for windows right now. Would you be so kind as to build and test? (https://github.com/SaltyPaws/calculator_pi)
__________________
SaltyPaws is offline   Reply With Quote
Old 29-03-2013, 17:11   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,331
Re: Calculator_pi New Finished Plugin for OpenCPN

Code:
../opencpn-git/build/plugins/calculator_pi/Debug/calculator_pi.lib" /MACHINE:X86 /DLL calculator_pi.dir\Debug\calculator_pi.dll.embed.manifest.res
         calculator_pi.dir\Debug\calculator_pi.obj
         calculator_pi.dir\Debug\icons.obj
         calculator_pi.dir\Debug\calculatorgui.obj
         calculator_pi.dir\Debug\calculatorgui_impl.obj
         calculator_pi.dir\Debug\error.obj
         calculator_pi.dir\Debug\functions.obj
         calculator_pi.dir\Debug\parser.obj
         calculator_pi.dir\Debug\variablelist.obj  /machine:X86 /debug 
     1>LINK : fatal error LNK1104: cannot open file 'C:\OSGeo4W\lib\iconv.lib'
     1>Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\calculator_pi\calculator_pi.vcxproj" (build target(s)) -- FAILED.
Git and tried, any ideas? 'C:\OSGeo4W\lib\iconv.lib' isn't this file somewhere under opencpn-git /build?

Found this in the opencpn-git/build/plugins/calculator_pi/debug directory fiel was calc_pi.log

In the readme found this...
" ..place the folder "bitmaps" into your build directory to see
the images. I have yet to embed thes"Could not find bitmaps. Readme may be dated refers to route_...
__________________
rgleason is online now   Reply With Quote
Old 29-03-2013, 17:48   #23
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Calculator_pi New Finished Plugin for OpenCPN

Just updated the readme - good catch, the graphics are only used by SAR_pi

I have just compiled on ubuntu 32 bits and 64 bits with no build errors. I know Nohal has build the plugin under windows as well. He has suggested some changes to make the windows build work, that have been incorporated in the git.

'C:\OSGeo4W\lib\iconv.lib' is not part of the sourcecode. If you google the exact string surprisingly, there are many hits. The package can be downloaded on LibIconv for Windows.

The only changes I made to the source are default values for font settings, I would not expect this to impact the windows build.
__________________
SaltyPaws is offline   Reply With Quote
Old 29-03-2013, 18:35   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,331
Re: Calculator_pi New Finished Plugin for OpenCPN

SaltyPaws, I must be something I am doing or not doing, but don't know what. Unfortunately it is not building a dll in the build\plugins\calculator_pi\debug directory.
I've deleted calculator_pi in plugins and git twice. I think I'll let it sit and maybe I'll realize what it is.

Now I don't think it is something I have done. Please see attached. Deleted Calc and re Git Clone..... Then ran twice. No dll. Fail.
Attached Files
File Type: doc calculator_pi.log.doc (14.5 KB, 50 views)
__________________
rgleason is online now   Reply With Quote
Old 29-03-2013, 19:09   #25
Registered User
 
Stingo's Avatar

Join Date: Aug 2005
Location: Cruising the seven seas
Boat: Maxim 380
Posts: 133
Send a message via Skype™ to Stingo
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by SaltyPaws View Post
I have updated the default values for fontsize in the box (from fixed to default). As I am running linux, I cant compile for windows right now. Would you be so kind as to build and test? (https://github.com/SaltyPaws/calculator_pi)
SaltyPaws, could you hear the whooosh as the stuff in your link went over my head?

Of course, I will report back on how it works now, but from your link, I couldn't find the *.dll that needs replacing? Could you email it to me? support at my signature dot com?
__________________
Stingo is offline   Reply With Quote
Old 29-03-2013, 19:15   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,331
Re: Calculator_pi New Finished Plugin for OpenCPN

I'm having trouble compiling a windows dll, that I had hoped to attach here as a *.doc. I believe the source files I downloaded from the git site are causing the problem. Hope that is clear enough.
__________________
rgleason is online now   Reply With Quote
Old 30-03-2013, 03:08   #27
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Calculator_pi New Finished Plugin for OpenCPN

Hi Rglreason,

It was late yesterday localtime... Thank you for sending the build log. I have removed the offending library from the build file as we don’t seem to need it. Now all becomes clear. I think Nohal did not have problems compiling, as he has the offending library likely installed on his machine. If the build fails again, please send me the build log and we will figure this one out.
__________________
SaltyPaws is offline   Reply With Quote
Old 30-03-2013, 05:26   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,331
Re: Calculator_pi New Finished Plugin for OpenCPN

Salty Paws, hope to program in C sometime, does not look at all like Pascal. This time it compiled.
1. Deleted old plugins/calculator_pi
2. cd opencpn-git/plugins
3. git clone https://github.com/SaltyPaws/calculator_pi
4. cd..
5. cd build
6. cmake ..
7. cmake --build .
8. MSVC with Debug, Win32 and Build
9. Found new calculator_pi.dll with todays data, in opencpn-git/build/calculator_pi/Debug
10. Copy calculator_pi.dll to opencpn-git/build
11. Run MSVC in debug mode.
12. Then compiled release version, which is below. Take of the "doc" please.

I tested a little. Seems to work.
I wonder if the horizontal scroll could appear only when needed to save space?
Also It would be nice for flexibility, to be able to pull the entry window into more line or to have an entry box for number of lines to present.

Thank you!
Attached Files
File Type: doc calculator_pi.dll.doc (106.0 KB, 22 views)
__________________
rgleason is online now   Reply With Quote
Old 30-03-2013, 11:18   #29
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Calculator_pi New Finished Plugin for OpenCPN

Hi rgleason, thank you for compiling the windows dll. I have uploaded your dll here (: https://sourceforge.net/projects/opencpnplugins/files/calculator_pi/
(the linux libraries are in the same location)

I have attached a screenshot of how the plugin looks in Linux. The font issue shows that wxwidgets does have slightly different responses in Linux and Windows. For example I don’t see the scrollbar that you are referring to. Optimising the windows interface using linux is much like feeling your way in the dark . One day I may install windows as dual boot or VM, but I would do it just to test the OpenCPN plugins.

If you feel the interface in windows can be improved, the easiest is to use wxformbuilder and to edit the file Calc_pi.fbp. When you press F8, wxformbuilder automatically updates the c++ files that contain the window. No C++ skill required to use wxformbuilder, just make sure you don’t change the names of any item.
Attached Thumbnails
Click image for larger version

Name:	calculator_linux.jpg
Views:	108
Size:	171.9 KB
ID:	58227  
__________________
SaltyPaws is offline   Reply With Quote
Old 30-03-2013, 11:21   #30
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,331
Re: Calculator_pi New Finished Plugin for OpenCPN

Thanks, did not know what wxformbuilder is . Willl try
__________________

__________________
rgleason 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 11:12.


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.