"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Preferences.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).

Preferences.cpp  (xfe-1.42):Preferences.cpp  (xfe-1.43)
skipping to change at line 106 skipping to change at line 106
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_THEME, PreferencesBox::onCmdTheme) , FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_THEME, PreferencesBox::onCmdTheme) ,
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_BROWSE_ICON_PATH, PreferencesBox:: onCmdBrowsePath), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_BROWSE_ICON_PATH, PreferencesBox:: onCmdBrowsePath),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_START_HOMEDIR, PreferencesBox::onC mdStartDir), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_START_HOMEDIR, PreferencesBox::onC mdStartDir),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_START_CURRENTDIR, PreferencesBox:: onCmdStartDir), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_START_CURRENTDIR, PreferencesBox:: onCmdStartDir),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_START_LASTDIR, PreferencesBox::onC mdStartDir), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_START_LASTDIR, PreferencesBox::onC mdStartDir),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_SU_CMD, PreferencesBox::onCmdSuMod e), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_SU_CMD, PreferencesBox::onCmdSuMod e),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_SUDO_CMD, PreferencesBox::onCmdSuM ode), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_SUDO_CMD, PreferencesBox::onCmdSuM ode),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_STANDARD_CONTROLS, PreferencesBox: :onCmdControls), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_STANDARD_CONTROLS, PreferencesBox: :onCmdControls),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_CLEARLOOKS_CONTROLS, PreferencesBo x::onCmdControls), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_CLEARLOOKS_CONTROLS, PreferencesBo x::onCmdControls),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_WHEELADJUST, PreferencesBox::onCmd WheelAdjust), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_WHEELADJUST, PreferencesBox::onCmd WheelAdjust),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_SCROLLBARSIZE, PreferencesBox::onC mdScrollBarSize),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_CHANGE_KEYBINDINGS, PreferencesBox ::onCmdChangeKeyBindings), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_CHANGE_KEYBINDINGS, PreferencesBox ::onCmdChangeKeyBindings),
FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_RESTORE_KEYBINDINGS, PreferencesBo x::onCmdRestoreKeyBindings), FXMAPFUNC(SEL_COMMAND, PreferencesBox::ID_RESTORE_KEYBINDINGS, PreferencesBo x::onCmdRestoreKeyBindings),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_STANDARD_CONTROLS, PreferencesBox:: onUpdControls), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_STANDARD_CONTROLS, PreferencesBox:: onUpdControls),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_CLEARLOOKS_CONTROLS, PreferencesBox ::onUpdControls), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_CLEARLOOKS_CONTROLS, PreferencesBox ::onUpdControls),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_COLOR, PreferencesBox::onUpdColor), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_COLOR, PreferencesBox::onUpdColor),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_WHEELADJUST, PreferencesBox::onUpdW heelAdjust), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_WHEELADJUST, PreferencesBox::onUpdW heelAdjust),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_SCROLLBARSIZE, PreferencesBox::onUp dScrollBarSize),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_SINGLE_CLICK_FILEOPEN, PreferencesB ox::onUpdSingleClickFileopen), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_SINGLE_CLICK_FILEOPEN, PreferencesB ox::onUpdSingleClickFileopen),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_CONFIRM_TRASH, PreferencesBox::onUp dTrash), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_CONFIRM_TRASH, PreferencesBox::onUp dTrash),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_TRASH_BYPASS, PreferencesBox::onUpd Trash), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_TRASH_BYPASS, PreferencesBox::onUpd Trash),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_CONFIRM_DEL_EMPTYDIR, PreferencesBo x::onUpdConfirmDelEmptyDir), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_CONFIRM_DEL_EMPTYDIR, PreferencesBo x::onUpdConfirmDelEmptyDir),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_SU_CMD, PreferencesBox::onUpdSuMode ), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_SU_CMD, PreferencesBox::onUpdSuMode ),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_SUDO_CMD, PreferencesBox::onUpdSuMo de), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_SUDO_CMD, PreferencesBox::onUpdSuMo de),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_START_HOMEDIR, PreferencesBox::onUp dStartDir), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_START_HOMEDIR, PreferencesBox::onUp dStartDir),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_START_CURRENTDIR, PreferencesBox::o nUpdStartDir), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_START_CURRENTDIR, PreferencesBox::o nUpdStartDir),
FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_START_LASTDIR, PreferencesBox::onUp dStartDir), FXMAPFUNC(SEL_UPDATE, PreferencesBox::ID_START_LASTDIR, PreferencesBox::onUp dStartDir),
}; };
skipping to change at line 208 skipping to change at line 210
startdirmode = getApp()->reg().readUnsignedEntry("OPTIONS", "startdir_mode", START_HOMEDIR) + ID_START_HOMEDIR; startdirmode = getApp()->reg().readUnsignedEntry("OPTIONS", "startdir_mode", START_HOMEDIR) + ID_START_HOMEDIR;
oldstartdirmode = startdirmode; oldstartdirmode = startdirmode;
startdirtarget.connect(startdirmode); startdirtarget.connect(startdirmode);
group = new FXGroupBox(modes, _("Starting mode"), GROUPBOX_TITLE_LEFT|FRAME_ GROOVE|LAYOUT_FILL_X|LAYOUT_FILL_Y); group = new FXGroupBox(modes, _("Starting mode"), GROUPBOX_TITLE_LEFT|FRAME_ GROOVE|LAYOUT_FILL_X|LAYOUT_FILL_Y);
new FXRadioButton(group, _("Start in home folder"), this, PreferencesBox::ID _START_HOMEDIR); new FXRadioButton(group, _("Start in home folder"), this, PreferencesBox::ID _START_HOMEDIR);
new FXRadioButton(group, _("Start in current folder"), this, PreferencesBox: :ID_START_CURRENTDIR); new FXRadioButton(group, _("Start in current folder"), this, PreferencesBox: :ID_START_CURRENTDIR);
new FXRadioButton(group, _("Start in last visited folder"), this, Preference sBox::ID_START_LASTDIR); new FXRadioButton(group, _("Start in last visited folder"), this, Preference sBox::ID_START_LASTDIR);
group = new FXGroupBox(modes, _("Scrolling mode"), GROUPBOX_TITLE_LEFT|FRAME _GROOVE|LAYOUT_FILL_X|LAYOUT_FILL_Y); group = new FXGroupBox(modes, _("Scrolling mode"), GROUPBOX_TITLE_LEFT|FRAME _GROOVE|LAYOUT_FILL_X|LAYOUT_FILL_Y);
scroll = new FXCheckButton(group, _("Smooth scrolling in file lists and text
windows")); matrix = new FXMatrix(group, 2, MATRIX_BY_COLUMNS|LAYOUT_SIDE_TOP);
matrix = new FXMatrix(group, 2, MATRIX_BY_COLUMNS|LAYOUT_SIDE_TOP|LAYOUT_FIL scroll = new FXCheckButton(matrix, _("Smooth scrolling in file lists and tex
L_Y); t windows"));
FXbool smoothscroll = getApp()->reg().readUnsignedEntry("SETTINGS", "smooth_
scroll", true);
scroll->setCheck(smoothscroll);
new FXLabel(matrix, "", NULL, JUSTIFY_LEFT|LAYOUT_FILL_COLUMN|LAYOUT_FILL_RO
W);
new FXLabel(matrix, _("Mouse scrolling speed:"), NULL, JUSTIFY_LEFT|LAYOUT_F ILL_COLUMN|LAYOUT_FILL_ROW); new FXLabel(matrix, _("Mouse scrolling speed:"), NULL, JUSTIFY_LEFT|LAYOUT_F ILL_COLUMN|LAYOUT_FILL_ROW);
FXSpinner* spinner = new FXSpinner(matrix, 3, this, PreferencesBox::ID_WHEEL ADJUST, JUSTIFY_RIGHT|LAYOUT_FILL_X|LAYOUT_FILL_ROW, 0, 0, 0, 0, 2, 2, 1, 1); FXSpinner* spinner = new FXSpinner(matrix, 3, this, PreferencesBox::ID_WHEEL ADJUST, JUSTIFY_RIGHT|LAYOUT_FILL_X|LAYOUT_FILL_ROW, 0, 0, 0, 0, 2, 2, 1, 1);
spinner->setRange(1, 100); spinner->setRange(1, 100);
FXbool smoothscroll = getApp()->reg().readUnsignedEntry("SETTINGS", "smooth_ new FXLabel(matrix, _("Scrollbar width:"), NULL, JUSTIFY_LEFT|LAYOUT_FILL_CO
scroll", true); LUMN|LAYOUT_FILL_ROW);
scroll->setCheck(smoothscroll); spinner = new FXSpinner(matrix, 3, this, PreferencesBox::ID_SCROLLBARSIZE, J
USTIFY_RIGHT|LAYOUT_FILL_X|LAYOUT_FILL_ROW, 0, 0, 0, 0, 2, 2, 1, 1);
spinner->setRange(1, 100);
group = new FXGroupBox(modes, _("Root mode"), GROUPBOX_TITLE_LEFT|FRAME_GROO VE|LAYOUT_FILL_X|LAYOUT_FILL_Y); group = new FXGroupBox(modes, _("Root mode"), GROUPBOX_TITLE_LEFT|FRAME_GROO VE|LAYOUT_FILL_X|LAYOUT_FILL_Y);
rootmode = new FXCheckButton(group, _("Allow root mode")); rootmode = new FXCheckButton(group, _("Allow root mode"));
FXRadioButton* subutton = new FXRadioButton(group, _("Authentication using s u (uses root password)"), this, ID_SU_CMD); FXRadioButton* subutton = new FXRadioButton(group, _("Authentication using s u (uses root password)"), this, ID_SU_CMD);
FXRadioButton* sudobutton = new FXRadioButton(group, _("Authentication using sudo (uses user password)"), this, ID_SUDO_CMD); FXRadioButton* sudobutton = new FXRadioButton(group, _("Authentication using sudo (uses user password)"), this, ID_SUDO_CMD);
FXbool root_mode = getApp()->reg().readUnsignedEntry("OPTIONS", "root_mode", true); FXbool root_mode = getApp()->reg().readUnsignedEntry("OPTIONS", "root_mode", true);
rootmode->setCheck(root_mode); rootmode->setCheck(root_mode);
if (getuid() == 0) // Super user if (getuid() == 0) // Super user
skipping to change at line 543 skipping to change at line 550
controls = NULL; controls = NULL;
trashbypass_prev = false; trashbypass_prev = false;
autosave_prev = false; autosave_prev = false;
savewinpos_prev = false; savewinpos_prev = false;
diropen_prev = false; diropen_prev = false;
fileopen_prev = false; fileopen_prev = false;
filetooltips_prev = false; filetooltips_prev = false;
relativeresize_prev = false; relativeresize_prev = false;
show_pathlink_prev = false; show_pathlink_prev = false;
value_prev = false; wheellines_prev = 0;
scrollbarsize_prev = 0;
ask_prev = false; ask_prev = false;
dnd_prev = false; dnd_prev = false;
trashmv_prev = false; trashmv_prev = false;
del_prev = false; del_prev = false;
properties_prev = false; properties_prev = false;
del_emptydir_prev = false; del_emptydir_prev = false;
overwrite_prev = false; overwrite_prev = false;
exec_prev = false; exec_prev = false;
use_clearlooks_prev = false; use_clearlooks_prev = false;
rootmode_prev = false; rootmode_prev = false;
skipping to change at line 573 skipping to change at line 581
preserve_date_warning_prev = false; preserve_date_warning_prev = false;
themelist_prev = false; themelist_prev = false;
smoothscroll_prev = false; smoothscroll_prev = false;
use_sudo_prev = false; use_sudo_prev = false;
trashcan_prev = false; trashcan_prev = false;
} }
long PreferencesBox::onUpdColor(FXObject* o, FXSelector s, void* p) long PreferencesBox::onUpdColor(FXObject* o, FXSelector s, void* p)
{ {
FXColorWell* cwell = (FXColorWell*)o; FXColorWell* cwell = (FXColorWell*)o;
int i = colorsBox->getCurrentItem(); int i = colorsBox->getCurrentItem();
cwell->setRGBA(currTheme.color[i]); cwell->setRGBA(currTheme.color[i]);
return(1); return(1);
} }
long PreferencesBox::onCmdColor(FXObject* o, FXSelector s, void* p) long PreferencesBox::onCmdColor(FXObject* o, FXSelector s, void* p)
{ {
FXColorWell* cwell = (FXColorWell*)o; FXColorWell* cwell = (FXColorWell*)o;
int i = colorsBox->getCurrentItem(); int i = colorsBox->getCurrentItem();
currTheme.color[i] = cwell->getRGBA(); currTheme.color[i] = cwell->getRGBA();
return(1); return(1);
} }
long PreferencesBox::onCmdTheme(FXObject* o, FXSelector s, void* p) long PreferencesBox::onCmdTheme(FXObject* o, FXSelector s, void* p)
{ {
currTheme = Themes[themesList->getCurrentItem()]; currTheme = Themes[themesList->getCurrentItem()];
return(1); return(1);
skipping to change at line 1182 skipping to change at line 1190
{ {
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTART), NULL); mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTART), NULL);
} }
return(1); return(1);
} }
long PreferencesBox::onCmdAccept(FXObject* o, FXSelector s, void* p) long PreferencesBox::onCmdAccept(FXObject* o, FXSelector s, void* p)
{ {
FXbool restart_theme = false; FXbool restart_theme = false;
FXbool restart_scroll = false; FXbool restart_smoothscroll = false;
FXbool restart_scrollbarsize = false;
FXbool restart_pathlink = false; FXbool restart_pathlink = false;
FXbool restart_controls = false; FXbool restart_controls = false;
FXbool restart_normalfont = false; FXbool restart_normalfont = false;
FXbool restart_textfont = false; FXbool restart_textfont = false;
if (iconpath->getText() == "") if (iconpath->getText() == "")
{ {
iconpath->setText(oldiconpath); iconpath->setText(oldiconpath);
} }
skipping to change at line 1683 skipping to change at line 1692
#if defined(linux) #if defined(linux)
getApp()->reg().writeUnsignedEntry("OPTIONS", "mount_warn", mount->getCheck( )); getApp()->reg().writeUnsignedEntry("OPTIONS", "mount_warn", mount->getCheck( ));
getApp()->reg().writeUnsignedEntry("OPTIONS", "mount_messages", show_mount-> getCheck()); getApp()->reg().writeUnsignedEntry("OPTIONS", "mount_messages", show_mount-> getCheck());
#endif #endif
// Smooth scrolling // Smooth scrolling
getApp()->reg().writeUnsignedEntry("SETTINGS", "smooth_scroll", scroll->getC heck()); getApp()->reg().writeUnsignedEntry("SETTINGS", "smooth_scroll", scroll->getC heck());
if (scroll->getCheck() != smoothscroll_prev) if (scroll->getCheck() != smoothscroll_prev)
{ {
getApp()->reg().write(); getApp()->reg().write();
restart_scroll = true; restart_smoothscroll = true;
}
// Scrollbar size
if (getApp()->getScrollBarSize() != scrollbarsize_prev)
{
getApp()->reg().write();
restart_scrollbarsize = true;
} }
// Control themes // Control themes
getApp()->reg().writeUnsignedEntry("SETTINGS", "use_clearlooks", use_clearlo oks); getApp()->reg().writeUnsignedEntry("SETTINGS", "use_clearlooks", use_clearlo oks);
if (use_clearlooks != use_clearlooks_prev) if (use_clearlooks != use_clearlooks_prev)
{ {
FXColor hilitecolor, shadowcolor; FXColor hilitecolor, shadowcolor;
// Change control hilite and shadow colors when the control theme has ch anged // Change control hilite and shadow colors when the control theme has ch anged
skipping to change at line 1803 skipping to change at line 1819
shadowcolor = makeShadowColor(currTheme.color[0]); shadowcolor = makeShadowColor(currTheme.color[0]);
} }
getApp()->reg().writeColorEntry("SETTINGS", "hilitecolor", hilitecolor); getApp()->reg().writeColorEntry("SETTINGS", "hilitecolor", hilitecolor);
getApp()->reg().writeColorEntry("SETTINGS", "shadowcolor", shadowcolor); getApp()->reg().writeColorEntry("SETTINGS", "shadowcolor", shadowcolor);
getApp()->reg().write(); getApp()->reg().write();
restart_theme = true; restart_theme = true;
} }
// Restart application if necessary // Restart application if necessary
if (restart_scroll) if (restart_smoothscroll | restart_scrollbarsize|restart_theme|restart_pathl
{ ink|restart_controls|restart_normalfont|restart_textfont)
if (BOX_CLICKED_CANCEL != MessageBox::question(this, BOX_OK_CANCEL, _("R
estart"), _("Scrolling mode will be changed after restart.\nRestart X File Explo
rer now?")))
{
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTAR
T), NULL);
}
}
if (restart_theme)
{
if (BOX_CLICKED_CANCEL != MessageBox::question(this, BOX_OK_CANCEL, _("R
estart"), _("Theme will be changed after restart.\nRestart X File Explorer now?"
)))
{
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTAR
T), NULL);
}
}
if (restart_pathlink)
{
if (BOX_CLICKED_CANCEL != MessageBox::question(this, BOX_OK_CANCEL, _("R
estart"), _("Path linker will be changed after restart.\nRestart X File Explorer
now?")))
{
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTAR
T), NULL);
}
}
if (restart_controls)
{ {
if (BOX_CLICKED_CANCEL != MessageBox::question(this, BOX_OK_CANCEL, _("R if (BOX_CLICKED_CANCEL != MessageBox::question(this, BOX_OK_CANCEL, _("R
estart"), _("Button style will be changed after restart.\nRestart X File Explore estart"), _("Preferences will be changed after restart.\nRestart X File Explorer
r now?"))) now?")))
{
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTAR
T), NULL);
}
}
if (restart_normalfont)
{
if (BOX_CLICKED_CANCEL != MessageBox::question(this, BOX_OK_CANCEL, _("R
estart"), _("Normal font will be changed after restart.\nRestart X File Explorer
now?")))
{
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTAR
T), NULL);
}
}
if (restart_textfont)
{
if (BOX_CLICKED_CANCEL != MessageBox::question(this, BOX_OK_CANCEL, _("R
estart"), _("Text font will be changed after restart.\nRestart X File Explorer n
ow?")))
{ {
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTAR T), NULL); mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_RESTAR T), NULL);
} }
} }
// Finally, update the registry // Finally, update the registry
getApp()->reg().write(); getApp()->reg().write();
// Refresh panels // Refresh panels
mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_REFRESH), NULL ); mainWindow->handle(this, FXSEL(SEL_COMMAND, XFileExplorer::ID_REFRESH), NULL );
skipping to change at line 1874 skipping to change at line 1851
// First tab - Options // First tab - Options
trashcan->setCheck(trashcan_prev); trashcan->setCheck(trashcan_prev);
trashbypass->setCheck(trashbypass_prev); trashbypass->setCheck(trashbypass_prev);
autosave->setCheck(autosave_prev); autosave->setCheck(autosave_prev);
savewinpos->setCheck(savewinpos_prev); savewinpos->setCheck(savewinpos_prev);
diropen->setCheck(diropen_prev); diropen->setCheck(diropen_prev);
fileopen->setCheck(fileopen_prev); fileopen->setCheck(fileopen_prev);
filetooltips->setCheck(filetooltips_prev); filetooltips->setCheck(filetooltips_prev);
relativeresize->setCheck(relativeresize_prev); relativeresize->setCheck(relativeresize_prev);
showpathlink->setCheck(show_pathlink_prev); showpathlink->setCheck(show_pathlink_prev);
getApp()->setWheelLines(value_prev); getApp()->setWheelLines(wheellines_prev);
getApp()->setScrollBarSize(scrollbarsize_prev);
use_sudo = use_sudo_prev; use_sudo = use_sudo_prev;
getApp()->reg().writeUnsignedEntry("OPTIONS", "use_sudo", use_sudo); getApp()->reg().writeUnsignedEntry("OPTIONS", "use_sudo", use_sudo);
scroll->setCheck(smoothscroll_prev); scroll->setCheck(smoothscroll_prev);
rootmode->setCheck(rootmode_prev); rootmode->setCheck(rootmode_prev);
timeformat->setText(oldtimeformat); timeformat->setText(oldtimeformat);
startdirmode = oldstartdirmode; startdirmode = oldstartdirmode;
#ifdef STARTUP_NOTIFICATION #ifdef STARTUP_NOTIFICATION
usesn->setCheck(usesn_prev); usesn->setCheck(usesn_prev);
#endif #endif
skipping to change at line 1950 skipping to change at line 1928
// First tab - Options // First tab - Options
trashcan_prev = trashcan->getCheck(); trashcan_prev = trashcan->getCheck();
trashbypass_prev = trashbypass->getCheck(); trashbypass_prev = trashbypass->getCheck();
autosave_prev = autosave->getCheck(); autosave_prev = autosave->getCheck();
savewinpos_prev = savewinpos->getCheck(); savewinpos_prev = savewinpos->getCheck();
diropen_prev = diropen->getCheck(); diropen_prev = diropen->getCheck();
fileopen_prev = fileopen->getCheck(); fileopen_prev = fileopen->getCheck();
filetooltips_prev = filetooltips->getCheck(); filetooltips_prev = filetooltips->getCheck();
relativeresize_prev = relativeresize->getCheck(); relativeresize_prev = relativeresize->getCheck();
show_pathlink_prev = showpathlink->getCheck(); show_pathlink_prev = showpathlink->getCheck();
value_prev = getApp()->getWheelLines(); wheellines_prev = getApp()->getWheelLines();
scrollbarsize_prev = getApp()->getScrollBarSize();
use_sudo_prev = use_sudo; use_sudo_prev = use_sudo;
smoothscroll_prev = scroll->getCheck(); smoothscroll_prev = scroll->getCheck();
rootmode_prev = rootmode->getCheck(); rootmode_prev = rootmode->getCheck();
#ifdef STARTUP_NOTIFICATION #ifdef STARTUP_NOTIFICATION
usesn_prev = usesn->getCheck(); usesn_prev = usesn->getCheck();
#endif #endif
// Second tab - Dialogs // Second tab - Dialogs
ask_prev = ask->getCheck(); ask_prev = ask->getCheck();
dnd_prev = dnd->getCheck(); dnd_prev = dnd->getCheck();
skipping to change at line 2165 skipping to change at line 2144
// Update the wheel lines button // Update the wheel lines button
long PreferencesBox::onUpdWheelAdjust(FXObject* sender, FXSelector, void*) long PreferencesBox::onUpdWheelAdjust(FXObject* sender, FXSelector, void*)
{ {
FXuint value = getApp()->getWheelLines(); FXuint value = getApp()->getWheelLines();
sender->handle(this, FXSEL(SEL_COMMAND, ID_SETINTVALUE), (void*)&value); sender->handle(this, FXSEL(SEL_COMMAND, ID_SETINTVALUE), (void*)&value);
return(1); return(1);
} }
// Set scrollbar size
long PreferencesBox::onCmdScrollBarSize(FXObject* sender, FXSelector, void*)
{
FXuint value;
sender->handle(this, FXSEL(SEL_COMMAND, ID_GETINTVALUE), (void*)&value);
getApp()->setScrollBarSize(value);
getApp()->reg().write();
return(1);
}
// Update the scrollbar size button
long PreferencesBox::onUpdScrollBarSize(FXObject* sender, FXSelector, void*)
{
FXuint value = getApp()->getScrollBarSize();
sender->handle(this, FXSEL(SEL_COMMAND, ID_SETINTVALUE), (void*)&value);
return(1);
}
// Update single click file open button // Update single click file open button
long PreferencesBox::onUpdSingleClickFileopen(FXObject* o, FXSelector, void*) long PreferencesBox::onUpdSingleClickFileopen(FXObject* o, FXSelector, void*)
{ {
if (diropen->getCheck()) if (diropen->getCheck())
{ {
o->handle(this, FXSEL(SEL_COMMAND, FXWindow::ID_ENABLE), NULL); o->handle(this, FXSEL(SEL_COMMAND, FXWindow::ID_ENABLE), NULL);
} }
else else
{ {
fileopen->setCheck(false); fileopen->setCheck(false);
 End of changes. 14 change blocks. 
72 lines changed or deleted 59 lines changed or added

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