"Fossies" - the Fresh Open Source Software Archive  

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

WriteWindow.cpp  (xfe-1.42):WriteWindow.cpp  (xfe-1.43)
skipping to change at line 1549 skipping to change at line 1549
window->loadFile(file); window->loadFile(file);
} }
window->raise(); window->raise();
window->setFocus(); window->setFocus();
return(1); return(1);
} }
// See if we can get it as a filename // See if we can get it as a filename
long WriteWindow::onEditDNDDrop(FXObject*, FXSelector, void*) long WriteWindow::onEditDNDDrop(FXObject*, FXSelector, void*)
{ {
char* data; FXuchar* data;
FXuint len; FXuint len;
if (getDNDData(FROM_DRAGNDROP, urilistType, (FXuchar*&)data, len)) if (getDNDData(FROM_DRAGNDROP, urilistType, data, len))
{ {
FXString urilist(data, len); FXString urilist((FXchar*)data, len);
FXString file = FXURL::fileFromURL(urilist.before('\r')); FXString file = FXURL::fileFromURL(urilist.before('\r'));
FXFREE(&data); FXFREE(&data);
if (file.empty()) if (file.empty())
{ {
return(1); return(1);
} }
if (!saveChanges()) if (!saveChanges())
{ {
return(1); return(1);
} }
skipping to change at line 1647 skipping to change at line 1647
return(1); return(1);
} }
// Disable menus and buttons when read only // Disable menus and buttons when read only
long WriteWindow::onUpdReadOnly(FXObject* sender, FXSelector, void*) long WriteWindow::onUpdReadOnly(FXObject* sender, FXSelector, void*)
{ {
sender->handle(this, readonly ? FXSEL(SEL_COMMAND, ID_DISABLE) : FXSEL(SEL_C OMMAND, ID_ENABLE), NULL); sender->handle(this, readonly ? FXSEL(SEL_COMMAND, ID_DISABLE) : FXSEL(SEL_C OMMAND, ID_ENABLE), NULL);
// Disable cut and paste commands // Disable cut and paste commands
// (note: it seems that the context menu commands can't be disabled) // (note: it seems that the context menu commands can't be disabled)
paste->disable(); //paste->disable();
pastemc->disable(); //pastemc->disable();
cut->disable(); //cut->disable();
cutmc->disable(); //cutmc->disable();
return(1); return(1);
} }
// Save As // Save As
long WriteWindow::onCmdSaveAs(FXObject*, FXSelector, void*) long WriteWindow::onCmdSaveAs(FXObject*, FXSelector, void*)
{ {
FileDialog savedialog(this, _("Save Document")); FileDialog savedialog(this, _("Save Document"));
FXString file = filename; FXString file = filename;
 End of changes. 4 change blocks. 
7 lines changed or deleted 7 lines changed or added

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