Linux version of my program, please test...
- DoubleDutch
- Addict 
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Linux version of my program, please test...
I've made a linux version of my CutTheCosta program.
http://www.cutthecosta.com/en/fly/download
Its my first Linux program so it may or may not work properly, but it seems okay in Kubuntu (PB4 B2 is great!).
If anyone has any problems or any new ideas for it, then please get back to me...
-Anthony
			
			
									
									http://www.cutthecosta.com/en/fly/download
Its my first Linux program so it may or may not work properly, but it seems okay in Kubuntu (PB4 B2 is great!).
If anyone has any problems or any new ideas for it, then please get back to me...
-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
						https://reportcomplete.com <- School end of term reports system
- 
				WishMaster
- Enthusiast 
- Posts: 277
- Joined: Fri Jun 17, 2005 7:13 pm
- Location: Franconia
- Contact:
- DoubleDutch
- Addict 
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Thanks for the feedback, it looked nicer on mine using default sizes.  
I'll take a look at fixing the font size tonight. I'll also enter Lufthansa, they have about 900 routes. It may take a while!
-Anthony
			
			
									
									
I'll take a look at fixing the font size tonight. I'll also enter Lufthansa, they have about 900 routes. It may take a while!

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
						https://reportcomplete.com <- School end of term reports system
- 
				WishMaster
- Enthusiast 
- Posts: 277
- Joined: Fri Jun 17, 2005 7:13 pm
- Location: Franconia
- Contact:
If you use zero as gadget height or width, GTK2 automatically uses a reasonable width/height.
			
			
									
									
						Code: Select all
OpenWindow(1, 0, 0, 300, 300, "Goedenavond")
CreateGadgetList(WindowID(1))
ButtonGadget(1, 20, 20, 200, 0, "Test")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindowRuns well on Debian Etch under QEMU. Buttons are fine links are working with the Epiphany Browser set as Standard.
			
			
									
									Visit www.sceneproject.org
						- DoubleDutch
- Addict 
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
WishMaster: I didn't know that, its a pity windows doesn't have such nice features.
The problem is that I want the source to be as similar as possible (one source with a few 'CompilerIf's)...
I've done the font changes now, just entering the route information for Lufthansa.
Nik: I've tried to set the fixed fonts to as close to the standard ones on both Windows and Linux. Can you try it again when I post the update later tonight, should be within the hour?
			
			
									
									The problem is that I want the source to be as similar as possible (one source with a few 'CompilerIf's)...
I've done the font changes now, just entering the route information for Lufthansa.
Nik: I've tried to set the fixed fonts to as close to the standard ones on both Windows and Linux. Can you try it again when I post the update later tonight, should be within the hour?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
						https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict 
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
I've updated the Linux version with the font changes and the Lufthansa routes (about 1,000 of them!). 
Here's a screenshot:

Please check it out...
			
			
									
									Here's a screenshot:

Please check it out...

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
						https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict 
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
WishMaster: Just noticed in your screenshot that you were looking for a flight from FRA to LON with Lufthansa.  Lufthansa actually fly to London Heathrow (LHR) not LON (a different airport) - if you type 'London' it will give you all the airports in London, then click LHR.  
			
			
									
									
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
						https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict 
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Pinhead:  Thanks for checking it out. 
Good idea about allowing you to set the default browser. I would put some options in, but I have no clue as to where to save the settings (or auto load settings from) in Linux. In Windows there is the registry or in Program Files or MyDocuments, is there somewhere like this in Linux? If so, how do I find the path?
Until then, you can set the default browser by setting the 'BROWSER' environment variable - it takes priority (unless you have 'xdg-open' installed).
			
			
									
									
Good idea about allowing you to set the default browser. I would put some options in, but I have no clue as to where to save the settings (or auto load settings from) in Linux. In Windows there is the registry or in Program Files or MyDocuments, is there somewhere like this in Linux? If so, how do I find the path?
Until then, you can set the default browser by setting the 'BROWSER' environment variable - it takes priority (unless you have 'xdg-open' installed).
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
						https://reportcomplete.com <- School end of term reports system
- 
				WishMaster
- Enthusiast 
- Posts: 277
- Joined: Fri Jun 17, 2005 7:13 pm
- Location: Franconia
- Contact:
@Pinhead:
You should install the xdg-utils.
@DoubleDutch:
Now the GUI looks fine.
Is it normal that - if I click on a button on the bottom - only the airline's homepage (e.g. http://www.lufthansa.com/online/portal/LH_COM) and not a page with further informations to the selected flight is opened?
> In Windows there is the registry or in Program Files or MyDocuments, is there somewhere like this in Linux?
In Linux, you store _every_ prefernece in the user's home directory. You can get it via.
There you may create a file ".cutthecosta" (don't forget the dot! It makes the file invisible so it doesn't show up and disturb the user; usually you don't use capital letters on linux as files are threaten case-sensitive) where you can store your preferences.
			
			
									
									
						You should install the xdg-utils.
@DoubleDutch:
Now the GUI looks fine.
Is it normal that - if I click on a button on the bottom - only the airline's homepage (e.g. http://www.lufthansa.com/online/portal/LH_COM) and not a page with further informations to the selected flight is opened?
> In Windows there is the registry or in Program Files or MyDocuments, is there somewhere like this in Linux?
In Linux, you store _every_ prefernece in the user's home directory. You can get it via
Code: Select all
GetEnvironmenVariable("HOME")There you may create a file ".cutthecosta" (don't forget the dot! It makes the file invisible so it doesn't show up and disturb the user; usually you don't use capital letters on linux as files are threaten case-sensitive) where you can store your preferences.
- DoubleDutch
- Addict 
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
At present, yes. We have contacted the various airlines about information regarding direct links - none have replied so far.Is it normal that - if I click on a button on the bottom - only the airline's homepage

Maybe they will when we get more hits. In the meantime I plan to go through the various sites manually figuring out "how they work", the problem would have been that if they change how they work then the program would have to be updated.
The solution I came up with was for them to be selected via our website, when you click on a button it actually goes to cutthecosta.com with the airline, from and to info. CutTheCosta.com then point the browser in the right direction to the website. This way if there are any changes to the airline websites all I have to change is the way the CutTheCosta website works and the PC/Linux program will automatically work to the new location. Believe it or not this happened this week with one of the Airlines and the PC program did not have to be updated.

Also, thanks V. much for the save settings info. I'm pretty much a Linux beginner! Maybe Fred could build something into PureBasic that allows saving/loading settings to a known "safe" place on each OS?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
						https://reportcomplete.com <- School end of term reports system
- 
				WishMaster
- Enthusiast 
- Posts: 277
- Joined: Fri Jun 17, 2005 7:13 pm
- Location: Franconia
- Contact:
- 
				remi_meier
- Enthusiast 
- Posts: 468
- Joined: Sat Dec 20, 2003 6:19 pm
- Location: Switzerland
On Windows and Linux, I think you can use the directory
to store your configs. For MacOS, I think it's the same 
			
			
									
									Code: Select all
Debug GetHomeDirectory()
Athlon64 3700+, 1024MB Ram, Radeon X1600
						




