Modifying and Improving the ROX-filer

What features/apps/bugfixes needed in a future Puppy
Message
Author
User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#46 Post by rjbrewer »

smokey01 wrote:
rjbrewer wrote:Yes; I just copy the old .mozilla folder to the new one (merge).
Beats the heck out of setting up mail each time.
rjbrewer I like to keep the mail files outside of the pupsave file along with documents and photographs. I normally only use the pupsave file to store settings and some additional software as some of the additional software is also outside of the pupsave file.

Do you know of a simple way to link the old mail files, address and bookmarks to a fresh installation without actually copy the old files to the new distribution?

Normally I have to manually create my three email accounts in the new email client then point each account to the old location. This method works fine but is a pain when I keep changing puplets. This method also allows many different puppy distros to use the same mail files at different times. Then of course I need to manually import bookmarks and addresses.

Regards

Smokey
Sorry Smokey;

I only use full installs.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#47 Post by smokey01 »

Thanks abushcrafter.

jrbrewer I often use full installs too but this time I thought I would try something different.

Thanks guys

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#48 Post by greengeek »

I would like to see rox filer modified to include an icon (on the top line) for the "create new directory" function.

Just that one function would be a great addition (especially if using a Puppy on a tablet where rightclick is not available).

Does anyone have the skills to remake rox and add this one function? It would be a great starting point.

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#49 Post by amigo »

That would be a nice little project for someone learning -pretty easy to add an item to the toolbar and especially because the internal routine for create new directory is already in the code elsewhere. My fork of the old gtk-1.2 ROX-filer includes patches which do similar things -like add an 'up' button or modify an existing button.

Here's the patches which are really pretty short:

Code: Select all

Index:pixmaps/select.xpm
*** pixmaps/select.xpm	Thu Jan  1 01:00:00 1970
--- pixmaps/select.xpm	Wed Jan  2 14:23:30 2002
***************
*** 0 ****
--- 1,24 ----
+ /* XPM */
+ static char * select_xpm[] = {
+ "17 16 5 1",
+ " 	c None",
+ ".	c #000000",
+ "+	c #C5CEC5",
+ "@	c #FFFFFF",
+ "#	c #7F7F7F",
+ ".................",
+ ".+++++++++++++++.",
+ ".+@@@@@@@@@@@#.+.",
+ ".+@@@@@@@@@@#..+.",
+ ".+@@@@@@@@@#...+.",
+ ".+@@@@@@@@#....+.",
+ ".+@@@@@@@#.....+.",
+ ".+@@@@@@#......+.",
+ ".+@@@@@#.......+.",
+ ".+@@@@#........+.",
+ ".+@@@#.........+.",
+ ".+@@#..........+.",
+ ".+@#...........+.",
+ ".+#............+.",
+ ".+++++++++++++++.",
+ "................."};
Index:src/toolbar.c
*** src/toolbar.c	Wed Jan  2 13:53:48 2002
--- src/toolbar.c	Wed Jan  2 14:23:30 2002
***************
*** 81,86 ****
--- 81,88 ----
  				    FilerWindow *filer_window);
  static void toolbar_hidden_clicked(GtkWidget *widget,
  				   FilerWindow *filer_window);
+ static void toolbar_select_clicked(GtkWidget *widget,
+ 				   FilerWindow *filer_window);
  static GtkWidget *add_button(GtkWidget *box, Tool *tool,
  				FilerWindow *filer_window);
  static GtkWidget *create_toolbar(FilerWindow *filer_window);
***************
*** 133,138 ****
--- 135,144 ----
  	 toolbar_hidden_clicked, DROP_NONE, TRUE,
  	 NULL, NULL},
  	
+ 	{N_("Select"), "select", N_("Select all/invert selection"),
+ 	 toolbar_select_clicked, DROP_NONE, TRUE,
+ 	 NULL, NULL},
+ 	
  	{N_("Help"), "help", N_("Show ROX-Filer help"),
  	 toolbar_help_clicked, DROP_NONE, TRUE,
  	 NULL, NULL},
***************
*** 336,341 ****
--- 342,365 ----
  				   FilerWindow *filer_window)
  {
  	display_set_hidden(filer_window, !filer_window->show_hidden);
+ }
+ 
+ static void toolbar_select_clicked(GtkWidget *widget, FilerWindow *filer_window)
+ {
+ 	GdkEvent	*event;
+ 
+ 	event = gtk_get_current_event();
+ 	if (event->type == GDK_BUTTON_RELEASE &&
+ 	    ((GdkEventButton *) event)->button==2)
+ 	{
+ 		collection_invert_selection(filer_window->collection);
+ 	}
+ 	else if (event->type == GDK_BUTTON_RELEASE &&
+ 	    ((GdkEventButton *) event)->button==1)
+ 	{
+ 		collection_select_all(filer_window->collection);
+ 	}
+ 	filer_window->temp_item_selected = FALSE;
  }
  
  static GtkWidget *create_toolbar(FilerWindow *filer_window)

Code: Select all

--- ./toolbar.c.00	2005-08-26 23:41:51.000000000 +0200
+++ ./toolbar.c	2007-05-17 10:23:31.000000000 +0200
@@ -72,6 +72,7 @@
 /* Static prototypes */
 static void toolbar_close_clicked(GtkWidget *widget, FilerWindow *filer_window);
 static void toolbar_up_clicked(GtkWidget *widget, FilerWindow *filer_window);
+static void toolbar_open_previous_same(GtkWidget *widget, FilerWindow *filer_window);
 static void toolbar_home_clicked(GtkWidget *widget, FilerWindow *filer_window);
 static void toolbar_refresh_clicked(GtkWidget *widget,
 				    FilerWindow *filer_window);
@@ -115,6 +116,10 @@
 	 toolbar_up_clicked, DROP_TO_PARENT, TRUE,
 	 NULL, NULL},
 	 
+	{N_("Back"), "back", N_("Change to previous directory"),
+	 toolbar_open_previous_same, DROP_NONE, TRUE,
+	 NULL, NULL},
+	
 	{N_("Home"), "home", N_("Change to home directory"),
 	 toolbar_home_clicked, DROP_TO_HOME, TRUE,
 	 NULL, NULL},
@@ -326,6 +331,30 @@
 	}
 }
 
+static void toolbar_open_previous_same(GtkWidget *widget, FilerWindow *filer_window)
+{
+	GdkEvent	*event;
+	GdkEventButton  *button=NULL;
+
+	event = gtk_get_current_event();
+	if(event->type == GDK_BUTTON_RELEASE ||
+	          event->type == GDK_BUTTON_PRESS)
+ 	        button=(GdkEventButton *) event;
+
+	if (event->type == GDK_BUTTON_RELEASE && NEW_WIN_BUTTON(event))
+	{
+		if(button->state & GDK_CONTROL_MASK)
+		  filer_open_parent(filer_window);
+		else
+		  filer_open_back(filer_window);
+	} else {
+		if(button->state & GDK_CONTROL_MASK)
+		  change_to_parent(filer_window);
+		else
+		  filer_go_back(filer_window);
+	}
+}
+
 static void toolbar_size_clicked(GtkWidget *widget, FilerWindow *filer_window)
 {
 	GdkEventButton	*bev;
I've thought about adding a TrashCan button but never took the time -you know, so you could drag an object onto the button to throw it away.

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#50 Post by mistfire »

If you want to modify rox-filer, the GUI design and behavior must be the same as thunar or pcmanfm specially on handling mounted drives.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#51 Post by disciple »

Eh? Then it wouldn't be rox, it would be thunar or pcmanfm.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#52 Post by LazY Puppy »

I would like to have a Pizza Salami, please.

But instead of the Salami I want to have Tuna Fish and instead of the Cheese I want to have Sauce Hollandaise.

Thanks.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#53 Post by drunkjedi »

The only thing I need in rox is use of desktop folder.

My wife copy pastes files and folders on desktop.
And then deletes them from original location.

Only to wonder why files on desktop don't work anymore.

I suppose, a simple script that copies files to a location on hard drive and create link on desktop when things are dragged on to desktop should do it.

It may not be that simple though.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#54 Post by disciple »

You can disable the rox pinboard.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#55 Post by drunkjedi »

disciple wrote:You can disable the rox pinboard.
And use what as desktop?
My desktop shows wallpapers, icon, conky.

I don't want to add xfce or any other stuff.
What inbuilt things can be useful for me?
Could you elaborate on your suggestion, I will give it a shot.

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#56 Post by Sailor Enceladus »

LazY Puppy wrote:I would like to have a Pizza Salami, please.

But instead of the Salami I want to have Tuna Fish and instead of the Cheese I want to have Sauce Hollandaise.

Thanks.
gross, a tuna pizza with hollandaise sauce? I'd rather have a tuna pizza with mustard :lol:

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#57 Post by disciple »

drunkjedi wrote:
disciple wrote:You can disable the rox pinboard.
And use what as desktop?
My desktop shows wallpapers, icon, conky.

I don't want to add xfce or any other stuff.
What inbuilt things can be useful for me?
Could you elaborate on your suggestion, I will give it a shot.
If you must have desktop icons, there are a variety of programs like idesk which you could use.
But JWM and I guess other common window managers can draw desktop wallpaper, and conky draws itself - it has nothing to do with Rox.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#58 Post by greengeek »

drunkjedi wrote:My wife copy pastes files and folders on desktop.
And then deletes them from original location.

Only to wonder why files on desktop don't work anymore.
Must be used to a Windows environment eh? I keep trying to explain to my wife that the windows "desktop" has an amount of storage limited by the "profile" allocated by her IT department and she should not treat it as a real location, as it is just a virtual location.

She just gives me a blank look.

Like - "you just said something that means nothing". Duh! How did they get to be 50% of the human race with reasoning like that!??

The hardest thing with Linux is teaching dumb users to store their files in a REAL location. Don't stick on the desktop, don't stick it in the save folder, don't stick it in the Home directory - STICK IT WHERE YOU KNOW YOU CAN FIND IT NEXT TIME !!!*%^#$%^!!!!!!

And then back it up.
:roll:

cthisbear
Posts: 4422
Joined: Sun 29 Jan 2006, 22:07
Location: Sydney Australia

#59 Post by cthisbear »

" The hardest thing with Linux is teaching dumb users to store their files in
a REAL location. "

"""""""""""''

Now he tells me.

Luckily I have tasted NZ yoghurt and icecream so I won't take offence now, but I'll be waiting for the next provocation.

Munching a piece of Whittaker's chocolate now to calm me down.

Chris.

User avatar
Galbi
Posts: 1098
Joined: Wed 21 Sep 2011, 22:32
Location: Bs.As. - Argentina.

#60 Post by Galbi »

A button with the "Open Terminal Here" would be very useful, too.

=====

And also the pizza, icecream, chocolate... :)
Remember: [b][i]"pecunia pecuniam parere non potest"[/i][/b]

ASD

#61 Post by ASD »

Hi Galbi,

I'm not sure I understand your comment "A button with the "Open Terminal Here" would be very useful, too", but if you display any directory and then press and release the keyboard backtick which is immediately below the Esc key on my UK keyboard the terminal should open there.

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#62 Post by drunkjedi »

Thanks disciple I can try that.

Greengeek, yes that's exactly the situation for me. But after 3 times, I think she would have learned lesson now.
But what do I know.... I am always wrong. (She says so).

About saving at 'Real Locations', I thought symlinking folders was a linux thing.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#63 Post by greengeek »

cthisbear wrote:but I'll be waiting for the next provocation..
Provocation?? Chris mate, what did I say? I'm not advocating eating koala meat :-)

You don't agree about the limitations of the virtual profile desktop in windows?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#64 Post by disciple »

Also see http://www.murga-linux.com/puppy/viewtopic.php?t=65952.
This might help with your request too, greengeek. How do you live without right-click though?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Galbi
Posts: 1098
Joined: Wed 21 Sep 2011, 22:32
Location: Bs.As. - Argentina.

#65 Post by Galbi »

ASD wrote:Hi Galbi,

I'm not sure I understand your comment "A button with the "Open Terminal Here" would be very useful, too", but if you display any directory and then press and release the keyboard backtick which is immediately below the Esc key on my UK keyboard the terminal should open there.
Yes, as you say, in the UK/US keyboard, but the spanish keyboard layout does not have that key.
(BTW, which is the use of that key?)

Saludos.
Remember: [b][i]"pecunia pecuniam parere non potest"[/i][/b]

Post Reply