"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/XFileExplorer.cpp" between
xfe-1.42.tar.gz and xfe-1.43.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

XFileExplorer.cpp  (xfe-1.42):XFileExplorer.cpp  (xfe-1.43)
skipping to change at line 2063 skipping to change at line 2063
{ {
handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_TOGGLE_STATUS), NULL); handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_TOGGLE_STATUS), NULL);
} }
file_tooltips = getApp()->reg().readUnsignedEntry("SETTINGS", "file_tooltips ", 1); file_tooltips = getApp()->reg().readUnsignedEntry("SETTINGS", "file_tooltips ", 1);
relative_resize = getApp()->reg().readUnsignedEntry("SETTINGS", "relative_re size", 1); relative_resize = getApp()->reg().readUnsignedEntry("SETTINGS", "relative_re size", 1);
// Wheel scrolling // Wheel scrolling
int wheellines = getApp()->reg().readUnsignedEntry("SETTINGS", "wheellines", 5); int wheellines = getApp()->reg().readUnsignedEntry("SETTINGS", "wheellines", 5);
getApp()->setWheelLines(wheellines); getApp()->setWheelLines(wheellines);
// Scrollbar size
int barsize = getApp()->reg().readUnsignedEntry("SETTINGS", "scrollbarsize",
15);
getApp()->setScrollBarSize(barsize);
// If there are only files to open, tell Xfe not to show its window // If there are only files to open, tell Xfe not to show its window
winshow = true; winshow = true;
if ((startdir1 == "") && (startdir2 == "") && (nbstartfiles > 0)) if ((startdir1 == "") && (startdir2 == "") && (nbstartfiles > 0))
{ {
winshow = false; winshow = false;
} }
// Read start directory mode // Read start directory mode
int startdirmode = getApp()->reg().readUnsignedEntry("OPTIONS", "startdir_mo de", START_HOMEDIR); int startdirmode = getApp()->reg().readUnsignedEntry("OPTIONS", "startdir_mo de", START_HOMEDIR);
skipping to change at line 3186 skipping to change at line 3190
Phantom X, Tomas Acauan Schertel\n\ Phantom X, Tomas Acauan Schertel\n\
Bosnian: Samir Ribi, Bajrami Emran, Balagija Jasmina,\n\ Bosnian: Samir Ribi, Bajrami Emran, Balagija Jasmina,\n\
Bilalovi, Omar Cogo Emir\n\ Bilalovi, Omar Cogo Emir\n\
Catalan: muzzol\n\ Catalan: muzzol\n\
Chinese: Xin Li\n\ Chinese: Xin Li\n\
Chinese (Taïwan): Wei-Lun Chao\n\ Chinese (Taïwan): Wei-Lun Chao\n\
Colombian Spanish: Vladimir Támara (Pasos de Jesús)\n\ Colombian Spanish: Vladimir Támara (Pasos de Jesús)\n\
Czech: David Vachulka\n\ Czech: David Vachulka\n\
Danish: Jonas Bardino, Vidar Jon Bauge\n\ Danish: Jonas Bardino, Vidar Jon Bauge\n\
Dutch: Hans Strijards\n\ Dutch: Hans Strijards\n\
Finnish: Kimmo Siira\n\
French: Claude Leo Mercier, Roland Baudin\n\ French: Claude Leo Mercier, Roland Baudin\n\
German: Bastian Kleineidam, Joachim Wiedorn, Tim Benke, Jens Körner\n\ German: Bastian Kleineidam, Joachim Wiedorn, Tim Benke, Jens Körner\n\
Greek: Nikos Papadopoulos\n\ Greek: Nikos Papadopoulos\n\
Hungarian: Attila Szervac, Sandor Sipos\n\ Hungarian: Attila Szervac, Sandor Sipos\n\
Italian: Claudio Fontana, Giorgio Moscardi\n\ Italian: Claudio Fontana, Giorgio Moscardi\n\
Japanese: Karl Skewes\n\ Japanese: Karl Skewes\n\
Norwegian: Vidar Jon Bauge\n\ Norwegian: Vidar Jon Bauge\n\
Polish: Jacek Dziura, Franciszek Janowski\n\ Polish: Jacek Dziura, Franciszek Janowski\n\
Portuguese: Miguel Santinho\n\ Portuguese: Miguel Santinho\n\
Russian: Dimitri Sertolov, Vad Vad\n\ Russian: Dimitri Sertolov, Vad Vad\n\
skipping to change at line 3461 skipping to change at line 3466
case ID_SHOW_ONE_PANEL: case ID_SHOW_ONE_PANEL:
if (!dirpanel->shown() && !rpanel->shown()) if (!dirpanel->shown() && !rpanel->shown())
{ {
msg = FXWindow::ID_CHECK; msg = FXWindow::ID_CHECK;
if (rpanelmenutitle->shown()) if (rpanelmenutitle->shown())
{ {
rpanelmenutitle->hide(); rpanelmenutitle->hide();
rpanelmenutitle->disable(); rpanelmenutitle->disable();
lpanelmenutitle->setText(_("&Panel")); lpanelmenutitle->setText(_("&Panel"));
lpanel->show(); lpanel->show();
lpanel->repaint(); //lpanel->repaint();
lpanel->setActive(); lpanel->setActive();
} }
} }
break; break;
case ID_SHOW_TWO_PANELS: case ID_SHOW_TWO_PANELS:
if (!dirpanel->shown() && rpanel->shown()) if (!dirpanel->shown() && rpanel->shown())
{ {
// Update the left panel relative size (only if the window size is s ufficient) // Update the left panel relative size (only if the window size is s ufficient)
if (vertpanels) if (vertpanels)
skipping to change at line 3489 skipping to change at line 3494
twopanels_lpanel_pct=(double)(lpanel->getHeight())/(double)( getHeight()); twopanels_lpanel_pct=(double)(lpanel->getHeight())/(double)( getHeight());
} }
msg=FXWindow::ID_CHECK; msg=FXWindow::ID_CHECK;
if (!rpanelmenutitle->shown()) if (!rpanelmenutitle->shown())
{ {
rpanelmenutitle->enable(); rpanelmenutitle->enable();
rpanelmenutitle->show(); rpanelmenutitle->show();
rpanelmenutitle->setText(_("&Right panel")); rpanelmenutitle->setText(_("&Right panel"));
lpanelmenutitle->setText(_("&Left panel")); lpanelmenutitle->setText(_("&Left panel"));
lpanel->repaint(); //lpanel->repaint();
lpanel->setActive(); lpanel->setActive();
} }
} }
break; break;
case ID_SHOW_TREE_PANEL: case ID_SHOW_TREE_PANEL:
if (dirpanel->shown() && !rpanel->shown()) if (dirpanel->shown() && !rpanel->shown())
{ {
// Update the tree panel relative size (only if the window size is s ufficient) // Update the tree panel relative size (only if the window size is s ufficient)
if (getWidth()>10) if (getWidth()>10)
treepanel_tree_pct=(double)(dirpanel->getWidth())/(double)(getWi dth()); treepanel_tree_pct=(double)(dirpanel->getWidth())/(double)(getWi dth());
msg=FXWindow::ID_CHECK; msg=FXWindow::ID_CHECK;
if (rpanelmenutitle->shown()) if (rpanelmenutitle->shown())
{ {
rpanelmenutitle->hide(); rpanelmenutitle->hide();
rpanelmenutitle->disable(); rpanelmenutitle->disable();
lpanelmenutitle->setText(_("&Panel")); lpanelmenutitle->setText(_("&Panel"));
lpanel->repaint(); //lpanel->repaint();
lpanel->setActive(); lpanel->setActive();
} }
} }
break; break;
case ID_SHOW_TREE_TWO_PANELS: case ID_SHOW_TREE_TWO_PANELS:
if (dirpanel->shown() && rpanel->shown()) if (dirpanel->shown() && rpanel->shown())
{ {
// Update the tree panel relative size (only if the window size is s ufficient) // Update the tree panel relative size (only if the window size is s ufficient)
if (getWidth()>10) if (getWidth()>10)
skipping to change at line 3540 skipping to change at line 3545
treetwopanels_lpanel_pct=(double)(lpanel->getHeight())/(doub le)(getHeight()); treetwopanels_lpanel_pct=(double)(lpanel->getHeight())/(doub le)(getHeight());
} }
msg = FXWindow::ID_CHECK; msg = FXWindow::ID_CHECK;
if (!rpanelmenutitle->shown()) if (!rpanelmenutitle->shown())
{ {
rpanelmenutitle->enable(); rpanelmenutitle->enable();
rpanelmenutitle->show(); rpanelmenutitle->show();
rpanelmenutitle->setText(_("&Right panel")); rpanelmenutitle->setText(_("&Right panel"));
lpanelmenutitle->setText(_("&Left panel")); lpanelmenutitle->setText(_("&Left panel"));
lpanel->repaint(); //lpanel->repaint();
lpanel->setActive(); lpanel->setActive();
} }
} }
break; break;
} }
sender->handle(this,FXSEL(SEL_COMMAND,msg),ptr); sender->handle(this,FXSEL(SEL_COMMAND,msg),ptr);
return 1; return 1;
} }
skipping to change at line 3718 skipping to change at line 3723
{ {
newstr=false; newstr=false;
break; break;
} }
} }
// No new string or history limit reached // No new string or history limit reached
if (!newstr || RunHistSize>RUN_HIST_SIZE) if (!newstr || RunHistSize>RUN_HIST_SIZE)
RunHistSize--; RunHistSize--;
// Restore original history order
rundialog->clearItems();
for (int i = 0; i < RunHistSize; i++)
{
rundialog->appendItem(RunHistory[i]);
}
// New string // New string
if (newstr) if (newstr)
{ {
// FIFO // FIFO
strlcpy(RunHistory[0],command.text(),command.length()+1); strlcpy(RunHistory[0],command.text(),command.length()+1);
for (int i=1; i<RunHistSize; i++) for (int i=1; i<RunHistSize; i++)
strlcpy(RunHistory[i],rundialog->getHistoryItem(i-1).text(),rund ialog->getHistoryItem(i-1).length()+1); strlcpy(RunHistory[i],rundialog->getHistoryItem(i-1).text(),rund ialog->getHistoryItem(i-1).length()+1);
} }
} }
ret=chdir(startlocation.text()); ret=chdir(startlocation.text());
skipping to change at line 3780 skipping to change at line 3792
title = _("Enter the user password:"); title = _("Enter the user password:");
sucmd = SUDOCMD; sucmd = SUDOCMD;
} }
else else
{ {
title = _("Enter the root password:"); title = _("Enter the root password:");
sucmd = SUCMD; sucmd = SUCMD;
} }
// Get text font // Get text font
FXString fontspec = getApp()->reg().readStringEntry("SETTINGS", "textfont", "Courier,100,normal,regular"); FXString fontspec = getApp()->reg().readStringEntry("SETTINGS", "textfont", DEFAULT_TEXT_FONT);
if (fontspec.empty()) if (fontspec.empty())
{ {
command = "st -t " + ::quote(title) + sucmd; command = "st -t " + ::quote(title) + sucmd;
} }
else else
{ {
FXchar fontsize[32]; FXchar fontsize[32];
FXFont* font = new FXFont(getApp(), fontspec); FXFont* font = new FXFont(getApp(), fontspec);
font->create(); font->create();
snprintf(fontsize, sizeof(fontsize), "%d",(int)(font->getSize()/1 0)); // Size is in deci-points, thus divide by 10 snprintf(fontsize, sizeof(fontsize), "%d",(int)(font->getSize()/1 0)); // Size is in deci-points, thus divide by 10
 End of changes. 8 change blocks. 
5 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)