Page 1 of 3

PCP - Puppy Control Panel(s)

Posted: Sat 07 Mar 2009, 03:22
by technosaurus
Update: used gtkdialog3 and xdialog to produce the attached script and screenshot

dvw86

Posted: Sat 07 Mar 2009, 03:34
by raffy
Just FYI, dvw86 has done some work on it,but the last language he used was murgaLua:
http://murga-linux.com/puppy/viewtopic.php?t=15931
http://www.murga-linux.com/puppy/viewtopic.php?t=26600

Posted: Sat 07 Mar 2009, 03:55
by technosaurus
looks promising Raffy, I was thinking more of a simpler, easily editable version that would be ~10kb of text (Xdialog script) and require no additional libraries/programs (beside the fact that I can actually use it). Murga Lua is not default in many versions of Puppy and if I recall it was around 500kb.

Posted: Sat 07 Mar 2009, 04:34
by Lobster
also consider using gtkdialog3 :)

Posted: Sat 07 Mar 2009, 14:25
by technosaurus
Lobster - any gtkdialog3 examples?

Posted: Sat 07 Mar 2009, 19:41
by aragon
if you got devx loaded, they are at /usr/share/doc/gtkdialog3

but xdialog might be an interesting way because i've seen an example where xdialog and dialog are combined in one script. if x is running it will run as xdialog if not as dialog. so a wizard would be accessible in x and in cli...

but i had to google for it, i haven't make a bookmark :cry:

aragon

Posted: Sat 07 Mar 2009, 20:03
by Lobster
technosaurus wrote:Lobster - any gtkdialog3 examples?
MU may have more appropriate examples
but this is the code part of YAP which uses pull down menus . . .

Code: Select all

#! /bin/bash
# YinYana Alter Program GPL v3 License
# YAP v 1.8 March 21 008
# created by Lobster for Tmxxine Vision and Sentient Beings Everywhere 
# With thanks to Barry Kauler, Team Puppy, Mark Ulrich, mcewanw, Warren
#########
cd /mnt/home/pets/

export Vision='
<window title="YAP" window-position="1">
<vbox>
  <menubar>
    <menu>
       <menuitem>
             <label>Cyberspace Blessing 1</label>
               <action>wavplay sound/cyberspace_1.wav &</action>
         </menuitem>
          <menuitem>
             <label>Cyberspace Blessing 2</label>
               <action>wavplay sound/cyberspace_2.wav &</action>
         </menuitem>
         <menuitem>
             <label>Bell</label>
               <action>wavplay sound/tinsha.wav &</action>
         </menuitem>
         <menuitem>
              <label>Gong Burmese</label>
                 <action>wavplay sound/gong-burmese.wav &</action>
         </menuitem>
         <menuitem>
               <label>Gong Chinese</label>
                   <action>wavplay sound/gong-chinese.wav &</action>
         </menuitem>    
          <menuitem stock="gtk-quit">
                <action>echo You selected the quit menu item</action>
                <action type="exit">exit by menu</action>
          </menuitem>
              <label>Sounds</label>
          </menu>       
      <menu>
         <menuitem>
            <action>`Xdialog --wrap --screencenter --left --title "5 Element Meditation" --msgbox "This will start a simple twenty five minute elemental meditation suitable for universal usage. It is a simple technique. Only regular use will develop mind skills. Used for centuries as an esoteric warrior meditation, it is particulary suited to balance energies and focus and harmonise ones internal component elements. Keep your back straight and your mind attentive. \n\n OM YA HA HUM" 600x0`</action>
            <action>defaultbrowser file://`pwd`/videos/elements.swf &</action>
            <label>Elemental meditation</label>
            <action>exit</action>
         </menuitem>
           <menuitem>
            <action>defaultbrowser file://`pwd`/videos/mudra.swf &</action>
            <label>Mudra meditation</label>
            <action>exit</action>
         </menuitem>
         <menuitem>
               <label>Vajrasattva</label>
                <action>`Xdialog --wrap --screencenter --left --title "Vajra" --msgbox "Vajrasattva. vajrasattva samayam anup

Posted: Sun 08 Mar 2009, 04:45
by technosaurus
This is what I came up with so far
Any suggestions to remove/add/change?

Edit - I forgot to put the following in firewall <action> section
rxvt -e ....

Posted: Sun 08 Mar 2009, 07:38
by aragon
hi technosaurus,

GO ON! in my opinion, this would be a great improvement.

aragon

Posted: Sun 08 Mar 2009, 08:20
by Lobster
Agree with Aragon,

Excellent start :)
What does LANG=C do (near top of script)?

other possibilities:
  • Jwm configuration
    Set date and time
    Add software
    screensaver /usr/local/apps/Xlock
    Psip configuration

Posted: Sun 08 Mar 2009, 23:51
by technosaurus
@Lobster - LANG=C supposedly helps scripts to run faster - Barry discovered this while testing woof.

Anyhow I finished it and got all except PSIP
I may replace the Browser "seamonkey about:config" with PSIP though since so many puplets cut seamonkey ... I tried to do "defaultbrowser about:config" but the mozstart automatically prepends "file://" so that was a no go

...need to test at lower resolution, try on different puppies...

Edit - removed Pwidgets since it is easily accessible from the Pwidgets dock on the desktop... replaced with PSIP

Posted: Mon 09 Mar 2009, 04:43
by WhoDo
technosaurus wrote:Anyhow I finished it and got all except PSIP...[snip]...
Edit - removed Pwidgets since it is easily accessible from the Pwidgets dock on the desktop... replaced with PSIP
It may be a stupid question but what are the "?" marks for ... help? May I suggest you do away with all the separate help buttons and have a single help button that points at a linked help page or index. It would simplify the whole look of the panel, IMHO. Just a thought.

Posted: Mon 09 Mar 2009, 05:22
by technosaurus
They are just help dialogs that give a brief description of the program...

A separate help window would probably be good. I set it up for the impatient, yet slow reader types like myself.

Posted: Mon 09 Mar 2009, 08:11
by Lobster
technosaurus wrote:They are just help dialogs that give a brief description of the program...

A separate help window would probably be good. I set it up for the impatient, yet slow reader types like myself.
Most of the linked to programs/wizards have help / explanations
You could use a menu bar to create help and other options (if they arise)
something like:

Code: Select all

  <menubar>
    <menu>
       <menuitem>
             <label>PSIP</label>
               <action>leafpad setupPSIP.txt &</action>
         </menuitem>
          <menuitem> 
loading a text editor is not the best way - but the easiest to set up :)

Posted: Mon 09 Mar 2009, 08:51
by esmourguit
Bonjour,
I like this panel.
About "?"
The reading of the panel would be clearer if the display of information by "?" were given by moving the mouse cursor over an icon, as once in the install package PET wizard (old petget),
If it is possible to do.
Cordialement ;)

Edit PCP in french

Posted: Mon 09 Mar 2009, 15:20
by technosaurus
I initially wanted to put the help as a mouse-over, but couldn't find anything in puppy that could do it... thus the "?" help... if someone knows how to get mouse-over to work I would do it that way... anyone???

Posted: Tue 10 Mar 2009, 07:16
by esmourguit
Bonjour,
Sorry, I do not know how. In any case thank you for this program.
Cordialement ;)

Posted: Thu 12 Mar 2009, 23:53
by WhoDo
technosaurus wrote:I initially wanted to put the help as a mouse-over, but couldn't find anything in puppy that could do it... thus the "?" help... if someone knows how to get mouse-over to work I would do it that way... anyone???
David McClamrock (pa_mcclamrock) has almost finished Remaster Express (RemaX) and I've suggested to him that you might appreciate some assistance with this part of your project.

I also have some suggestions about content, if you have no objections. My suggestions are:
  • Add Firewall Configuration
  • Drop the Browser about:plugins page
  • Add Chooselocale
  • Add Set Timezone
  • Add set clock
  • Remove Gwhere (too obscure for newbies)
  • Remove Gparted (not a newbie option)
  • Change SAMBA to Windows LAN or similar
  • Change Netsetup to NetConnect
  • Plugging seems "obscure"
These are just suggestions, not requests, so please feel free to ignore them if they don't suit what you're trying to achieve.

Cheers

Posted: Fri 13 Mar 2009, 18:27
by technosaurus
WhoDo wrote: My suggestions are:
  • Add Firewall Configuration - part of net setup
  • Drop the Browser about:plugins page - planned to already
  • Add Chooselocale - part of Country
  • Add Set Timezone - part of Country
  • Add set clock - part of Country
  • Remove Gwhere (too obscure for newbies) - planned to already
  • Remove Gparted (not a newbie option) - still think it should be there
  • Change SAMBA to Windows LAN or similar - changing to WinLAN
  • Change Netsetup to NetConnect - Changing to Net (has more than just connection or setup options)
  • Plugging seems "obscure" - thought it was more intuitive than eventmanager - other suggestions???
I'll take a look at David's code to see what I can see for mouse over

Posted: Fri 13 Mar 2009, 22:04
by WhoDo
technosaurus wrote:
WhoDo wrote:
  • Plugging seems "obscure" - thought it was more intuitive than eventmanager - other suggestions???
I'll take a look at David's code to see what I can see for mouse over
How about "Hotplug"? I dunno, even that seems pretty obscure to me, but it seems a tad less so than "plugging". :roll:

Whether or not you guys manage to resolve the mouseover help, I'd like to see the main screen simplified somewhat. Perhaps a single help page behind its own icon with descriptions of each PCP icon or something? IMHO something like this should be more welcoming to those who need it.

Keep up the good work, technosaurus! I know you'll worry it until it's done, just like a dog with a bone! :P