Page 1 of 2

Menuesystem/Editor for JWM and others (08)

Posted: Tue 30 Aug 2005, 02:23
by MU
This Menuesystem is based on wxBasic/Gtk, so it works independant of the WindowManager.

Since version 08, it has the option to export its Menues as a "Personal Menue" to the JWM-Desktopmenue.
See an image of this feature here:
http://noforum.de/dotpups/wxb-menue08.jpg

Use it, if you use a WindowManager not officially supported by Puppy, for example Enlightenment, or if you want to add your own entries without using a text-editor.
This Menue also displays DotPups installed with my installerscript described there: http://www.murga-linux.com/puppy/viewto ... 2081#12749

Image
Larger-Image: http://noforum.de/dotpups/menue02.jpg

You must install wxBasic first, or it will not work; ( http://www.murga-linux.com/puppy/viewtopic.php?t=1984 )

This menue reads in /root/.jwmrc to get the "System-Menue", so JWM should be installed if you want to access this menue if you use it for Desktops not officially supported by Puppy.


Mark

Posted: Tue 30 Aug 2005, 23:59
by MU
Version 0.2
New: Pictures for program-entries, but not for sub-menues.
New: Separator-lines

Posted: Wed 31 Aug 2005, 14:21
by MU
Version 0.3
You now can add your "personal" menue.
The Help will describe how to do it.
The "import KDE-Menue" does not work yet, it is intended for other Distributions.

Posted: Thu 01 Sep 2005, 04:43
by MU
Version 0.4
Now it includes a first version of a grafical menue-editor.

Posted: Sun 04 Sep 2005, 05:28
by MU
Version 0.5

Image

Larger image: http://noforum.de/dotpups/menue05.jpg

New:
- in the Menue-Editor, you now can move entries up/down.
- you can add programs via file-selector
- you can add other icon-directories
- It now installs to /usr/local
- Fixed a bug in the installer

Mark

Posted: Mon 05 Sep 2005, 10:30
by Mathiasdm
I get the following error (using Puppy 1.0.5 alpha2):
Can't convert nothing to number
new() in file "main.wxb", line 317:
> myitem = new wxmenuitem( mHelp[counter] , ProgID , mText , mText , wxITEM_NORMAL)

Posted: Mon 05 Sep 2005, 10:45
by MU
Hi,

you need a newer version of wxBasic (j3):

http://www.murga.org/%7Epuppy/viewtopic ... 1734#11734

I just deleted the link to the older version to avoid confusion.

Mark

Posted: Mon 05 Sep 2005, 11:50
by Mathiasdm
Okay, works :-)

Posted: Mon 05 Sep 2005, 11:54
by MU
fine :)

I just uploaded the menue again.
It now will install to /usr/local, which is a new directive for Puppy 1.0.5

Mark

Posted: Mon 05 Sep 2005, 13:43
by flamesage
I installed it, but nothing appears in /usr/local.

Posted: Mon 05 Sep 2005, 17:40
by MU
Arg.. my new installerscript has a bug..

I'll fix it and upload all packages again in 1 or 2 hours.

Sorry, Mark

Posted: Mon 05 Sep 2005, 18:58
by MU
Ok, fixed it and tested it on Puppy and Mandrake :)

Thanks a lot for the hint.

Mark

Posted: Wed 07 Sep 2005, 00:42
by MU
I uploaded version 06

It contains a small bugfix in the grafical menue-editor, where some icons were not displayed.

Mark

Posted: Fri 23 Sep 2005, 19:42
by MU
Version 07

Fixes a bug with displaying the JWM-Menue in Puppy 1.0.5

Now it registers to Pupget, so your menue also will be used if you remaster a new CD.

This is quite helpfull, as the Menues of the Windowmanagers are built from new in that process.
So your personal added entries in them will get lost.

Mark

JWM Menu

Posted: Sat 24 Sep 2005, 01:23
by GuestToday
Been trying out different DotPups and thought that JWM Menu sounded useful. It wasn't as intuitive as I hoped it would be (couldn't figure it out in two seconds..my fault I'm sure). I'll try it again later when I have more time...but when I uninstalled it through PupGet Packager it didn't get rid of the menu entry (start menu). Is that normal? Should I just delete it in the .jwmrc file? Thanks!

Posted: Sat 24 Sep 2005, 01:57
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

Menuesystem

Posted: Sat 24 Sep 2005, 04:25
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...

Posted: Sat 24 Sep 2005, 10:23
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.

Posted: Sat 24 Sep 2005, 13:15
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

Posted: Sun 25 Sep 2005, 01:49
by BarryK
I've never liked C or C++.
Don't really know why, there just seems something odd about them.