Menuesystem/Editor for JWM and others (08)

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

Yes, it is normal that the entry in the startmenue stays.

Barry is working on a mechanism to deactivate entries.

I also plan better integration of my menue(-editor) and the menues of the windowmanagers.
I think somewhen in october I may present a solution for that.

I think I will use a central menuefile for "Personal Menue" and "DotPups".

You can export these two submenues to each windowmanager then.
An optional Tool will allow to import or delete existing entries.

Meanwhile you can delete them in .jwmrc with an editor.


Greets, Mark

GuestToday

Menuesystem

#17 Post by GuestToday »

Why was wxBasic used versus tcl/tk (or other script language) or C++, etc. Is it just easier/more familiar or does it have more functionality? Sorry if this is a really dumb question, my ignorance abounds...

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#18 Post by BarryK »

Mark,
It is probably asking too much...
I am wondering if it could be coded with wxbasicscript and gtkdialog2?

...um, probably not possible.
I was thinking though, gtkdialog2 does have a menu creation system.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#19 Post by MU »

Hi, it was one of my first programs for puppy, when wxBasicScript did not exist yet.

You could realize a menue in wxBasicscript, but I think the menueeditor will be more difficult.

The menueeditor allows to move entries up and down.
It is realized via invisible lists, that store several arrays.

Try to set the variable "debug" in the Menueeditor to "1", and you will see what I mean, a "full" view of all elements.

With Gtkdialog2 I would have to store more values in files, I fear this would become rather complex.

Might give it a try, but tend to stay with wxBasic for the editor.

Tcl/Tk: I built a menue with it 7 years ago, but think it is more difficult than Basic.
http://geocities.com/gpllinux/projekte/ ... -setup.zip
Extract, run ./Setup_linux in a rxvt. Has no Editor, does not support submenues.

C++ is nothing for me, don't get a "feeling" for that language. I was able to learn some C this year after years of not getting "warm" with it, but C++ is somehow not "my thing".

Mark

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#20 Post by BarryK »

I've never liked C or C++.
Don't really know why, there just seems something odd about them.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#21 Post by MU »

The main problem I had with the pointers and the memory-handling.

I made a ... how do you call it... such a time of 2 years, where you learn a new job. I worked for 10 years with handicaped people, then I changed the profession to IT specialist (german: Fachinformatiker). Though without a real job atm.

We had some weeks in C during these 2 years, but I did not understand it.

This year, I wanted to enhance wxBasic with wrappers for xlib.
So I had to learn it.
Very helpfull was a tutorial about imlib2, and a book.with 800 pages.
Now I am able to modify and enhance smaller routines, but developing complete applications would certainly last 5 times longer than in wBasic or Perl.

So I will stay with this if possible ;)

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#22 Post by MU »

Uploaded version 08 (see first message).

It now can export to JWM to a submenue "Personal Menue (wxb)".

This JWM-Submenue will not be saved to a remastered CD, but the wxB-Menue itself will be.
So after you created a new CD, run the menueeditor, and simply export the existing menue again to JWM.


Now you also can use the "Icon"-Button to open the application-folder.
This allows easy addition of Icons delivered with the application.
Note that JWM supports .xpm only, whereas wxB-menue supports several formats.

Also note, that you should leave the "DotPups"-Menue at first position, or your menue gets a bit puzzled by the installation of some Dotpups (what you could correct by moving entries up/down).

It is not perfect, but might be more comfortable than editing .jwmrc with beaver ;)

Greets, Mark

Post Reply