Recipe management software?

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

TI-994A wrote:
Fangbeast wrote:...can't make it any faster unless anyone has some ideas?
Perhaps display a timer-based splash screen (about 2 to 3 seconds) to allow the main form to load?

Image

The main window will remain invisible until the splash-window timer unhides it.
I thought about it but that just means that I am being a lazy bitch and not fixing the program [properly (hehehe, SADDAP SROD!!)

When I have got the tooltip code working, can I ask you to do your magic again with vectors for printing help pages? No images, just straight text that I can grab out of the EditorGadget.

it was 39 degrees on Friday and 41 last Friday. This is crazy!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

**UPDATE*** Get it while it's mouldy!!

07/03/2016

Added: Colourful balloon tooltips with images. Can be turned on or off. RASHAD you legend!
Added: Some better comments everywhere.

04/03/2016

Fixed: Some editor fields didn't have their wordwrap flag set.
Fixed: Gadget reference instead of picture reference in main form picture viewer caused crash.
Fixed: Window title was set twice in pictureviewer but no recipe title set.
Fixed: Default picture size when record had no picture defaulted to default image size on open.

Added: Sped up the initial start-up by using "Begin Transaction" and "Commit" blocks.
Added: Load a text or RTF file from disk into the instruction editor.

ToDo 1. Keyboard shortcuts list.
2. Create and manage a shopping list of ingredients for each recipe
5. Create an advanced searching window.
6. Print help pages.
7. Need a print button for the shopping list window

I think that's it?

https://www.dropbox.com/s/s9yk29jr0fuh ... es.7z?dl=0
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4946
Joined: Sun Apr 12, 2009 6:27 am

Re: Recipe management software?

Post by RASHAD »

Hi Fang
Just downloaded the new version
You still have the same typo bug :)

Recipes.pb

Code: Select all

  If Program\BalloonFontId
    ; Setup your button tooltip messages, nicely spaced out
    BalloonTip(#Window_Recipes, #Gadget_Recipes_AddCategory,     Program\BalloonFontId, $BFBFBF, #ShortText_AddCategory,         #CRLF$ + GetShortCutText(#Keys_AddCategory)    + #CRLF$ + #CRLF$ + #LongText_AddCategory,         GetIconHandle(#Image_Recipes_AddCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_CopyCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_CopyCategory,        #CRLF$ + GetShortCutText(#Keys_CopyCategory)   + #CRLF$ + #CRLF$ + #LongText_CopyCategory,        GetIconHandle(#Image_Recipes_CopyCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_DeleteCategory,  Program\BalloonFontId, $BFBFBF, #ShortText_DeleteCategory,      #CRLF$ + GetShortCutText(#Keys_DeleteCategory) + #CRLF$ + #CRLF$ + #LongText_DeleteCategory,      GetIconHandle(#Image_Recipes_DeleteCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_EditCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_EditCategory,        #CRLF$ + GetShortCutText(#Keys_EditCategory)   + #CRLF$ + #CRLF$ + #LongText_EditCategory,        GetIconHandle(#Image_Recipes_DeleteCategory))

Change to

Code: Select all

If Program\BalloonFontId
    ; Setup your button tooltip messages, nicely spaced out
    BalloonTip(#Window_Recipes, #Gadget_Recipes_AddCategory,     Program\BalloonFontId, $BFBFBF, #ShortText_AddCategory,         #CRLF$ + GetShortCutText(#Keys_AddCategory)    + #CRLF$ + #CRLF$ + #LongText_AddCategory,         GetIconHandle(#Image_Recipes_AddCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_CopyCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_CopyCategory,        #CRLF$ + GetShortCutText(#Keys_CopyCategory)   + #CRLF$ + #CRLF$ + #LongText_CopyCategory,        GetIconHandle(#Image_Recipes_CopyCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_DeleteCategory,  Program\BalloonFontId, $BFBFBF, #ShortText_DeleteCategory,      #CRLF$ + GetShortCutText(#Keys_DeleteCategory) + #CRLF$ + #CRLF$ + #LongText_DeleteCategory,      GetIconHandle(#Image_Recipes_DeleteCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_EditCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_EditCategory,        #CRLF$ + GetShortCutText(#Keys_EditCategory)   + #CRLF$ + #CRLF$ + #LongText_EditCategory,        GetIconHandle(#Image_Recipes_EditCategory))
Egypt my love
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

RASHAD wrote:Hi Fang
Just downloaded the new version
You still have the same typo bug :)

Recipes.pb

Code: Select all

  If Program\BalloonFontId
    ; Setup your button tooltip messages, nicely spaced out
    BalloonTip(#Window_Recipes, #Gadget_Recipes_AddCategory,     Program\BalloonFontId, $BFBFBF, #ShortText_AddCategory,         #CRLF$ + GetShortCutText(#Keys_AddCategory)    + #CRLF$ + #CRLF$ + #LongText_AddCategory,         GetIconHandle(#Image_Recipes_AddCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_CopyCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_CopyCategory,        #CRLF$ + GetShortCutText(#Keys_CopyCategory)   + #CRLF$ + #CRLF$ + #LongText_CopyCategory,        GetIconHandle(#Image_Recipes_CopyCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_DeleteCategory,  Program\BalloonFontId, $BFBFBF, #ShortText_DeleteCategory,      #CRLF$ + GetShortCutText(#Keys_DeleteCategory) + #CRLF$ + #CRLF$ + #LongText_DeleteCategory,      GetIconHandle(#Image_Recipes_DeleteCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_EditCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_EditCategory,        #CRLF$ + GetShortCutText(#Keys_EditCategory)   + #CRLF$ + #CRLF$ + #LongText_EditCategory,        GetIconHandle(#Image_Recipes_DeleteCategory))

Change to

Code: Select all

If Program\BalloonFontId
    ; Setup your button tooltip messages, nicely spaced out
    BalloonTip(#Window_Recipes, #Gadget_Recipes_AddCategory,     Program\BalloonFontId, $BFBFBF, #ShortText_AddCategory,         #CRLF$ + GetShortCutText(#Keys_AddCategory)    + #CRLF$ + #CRLF$ + #LongText_AddCategory,         GetIconHandle(#Image_Recipes_AddCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_CopyCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_CopyCategory,        #CRLF$ + GetShortCutText(#Keys_CopyCategory)   + #CRLF$ + #CRLF$ + #LongText_CopyCategory,        GetIconHandle(#Image_Recipes_CopyCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_DeleteCategory,  Program\BalloonFontId, $BFBFBF, #ShortText_DeleteCategory,      #CRLF$ + GetShortCutText(#Keys_DeleteCategory) + #CRLF$ + #CRLF$ + #LongText_DeleteCategory,      GetIconHandle(#Image_Recipes_DeleteCategory))
    BalloonTip(#Window_Recipes, #Gadget_Recipes_EditCategory,    Program\BalloonFontId, $BFBFBF, #ShortText_EditCategory,        #CRLF$ + GetShortCutText(#Keys_EditCategory)   + #CRLF$ + #CRLF$ + #LongText_EditCategory,        GetIconHandle(#Image_Recipes_EditCategory))
I must be going blind but I can't see it????? Blew up the fonts in the editor, checked each line and still can't see it. I told you I had bad eyesight!!

EDIT!!! Never mind, my wife found it, here eyes are betetr than mine!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: Recipe management software?

Post by Keya »

i compared in hex editor, the only change is at the end of the very last line:
GetIconHandle(#Image_Recipes_DeleteCategory))
->
GetIconHandle(#Image_Recipes_EditCategory))
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

Does anyone have an idea what else has to be done/added (if I am able?).

Just cleaning up code at the moment.

TI-994A, would you be able to do your magic again with printing help text? I'm going to let the user be able to print text straight from the Help EditorGadget so they can have a hard copy reference.

I can just grab the text into a string and feed it to your routine if you are willing.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Recipe management software?

Post by TI-994A »

Fangbeast wrote:...I'm going to let the user be able to print text straight from the Help EditorGadget so they can have a hard copy reference.
Sure; as discussed in our PMs yesterday. :wink:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

TI-994A wrote:
Fangbeast wrote:...I'm going to let the user be able to print text straight from the Help EditorGadget so they can have a hard copy reference.
Sure; as discussed in our PMs yesterday. :wink:

Sorry, I forgot.


It reached 41 outside today and 27 inside and my brains melted into nice sludge piles. Shuddup srod if you are listening!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

I had a few little things that I wanted myself and lacking requests other than "go away you sheep rooter", I did them.

Now just the keyboard shortcuts list, advanced search window module and printing for various things remain to be done.

12/03/2016

Fixed: Proportional resize added to main form recipe picture by InfraTec. He thought the default stretching was ugly.
Fixed: Category data structure for sorts was missing an element.
Fixed: SaveShoppingItem didn't have code to save manually added ingredients to the shopping list. Grr

Added: All missing keyboard shortcuts and toolbar tooltips and balloon tooltips.
Added: Shopping list per recipe. Alt + S. I needed it!
Added: Drag and drop ingredients onto the shopping list to add them, then you can edit details.
Added: Manually add, edit, delete ingredients in the shopping list.
Added: Search for ingredients in the shopping list form to add.
Added: Restore the ingredients for the current recipe after you have finished searching the main list.
Added: New flag 'Shopping' in the Recipes table to mark the fact that a recipe has shopping atatched.
Added: New icon in the category list for recipes that have shopping attached.

Program: https://www.dropbox.com/s/s9yk29jr0fuhl ... es.7z?dl=0
Recipes: https://www.dropbox.com/s/m0j501uk3qm06 ... 0a.7z?dl=0
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Recipe management software?

Post by jack »

thank you for the update :)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

jack wrote:thank you for the update :)
Any suggestions other than "Go away, you are too hairy", fixes etc??
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Recipe management software?

Post by jack »

:) give me a little time to test, it's the weekend over here.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

jack wrote::) give me a little time to test, it's the weekend over here.
Oh okay, heavy sigh (major overacting award).

My standard living cookbook database is getting big, over 5,000 recipes now. I managed to find out what was wrong with 100 ignored ones and manually fix their xml data.

These are from the Yahoo Living Cookbook group and around 50 a week are posted so far.

I also have around 30,000 of the standard FDX (Also living cookbook) collected over the last few years but I didn't want the database to grow to over 700 meg so didn't import them.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

***UPDATE***

I heard a woman complaining years ago (Not in my program) that she could not search for a recipe with specific ingredients so with InfraTec's help, now you can!!

There is an advanced SQL search available from the data menu/shortcut/toolbar etc that allows you to search for recipe titles or recipe titles AND/OR specific ingredients in it.

You add the ingredients separated with commas, with or without spaces, select your sorting direction, field to sort on, number of items to limit the search to and then press the find button.

Just a little bit of tweaking left to do but it works, tested.

Same link as in previous posts.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Recipe management software?

Post by Fangbeast »

19/03/2016

Added: Added logos to all other windows that didn't have them. You can launch your own thing there.
Added: Hiding of the program to the notification area plus icon and message.
Added: All static controls correctly coloured to the background
Added: Able to search for recipes with specific ingredients in them (Big job!)). InfraTec
Added: All program options flushed to database at program end.
Added: Last search type, field and text are restored on program restart.
Added: All search window parameters are saved and restored between restarts.

Fixed: Search the help pages and highlight all matches.

ToDo

1. Print help pages.
3. Explore threaded model somehow.
4. List of keyboard shortcuts. (Maybe editable?)
5. Print help pages.
6. Print shopping list.
7. Print keyboard shortcuts.
9. Do something with the "Save shopping" button as it isn't really used here.

I think that's it?

Notes

Really worked over the advanced search window after I released it. It is now fully compatible in function to the standard search on the main form except for the extra ingredient searches of course. Selectable limits, sort direction and more.

Remind me to send the update up tonight if anyone wants it.

P.S. Every importable recipe that I currently own is on mega.co.nz cloud server at https://mega.nz/#F!31VwARDY

Don't try to download all of it at once as this is a free account and I don't want it suspended!

And contribute as well you varmints!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply