"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htmldoc/gui.cxx" between
htmldoc-1.9.11-source.tar.gz and htmldoc-1.9.12-source.tar.gz

About: HTMLDOC converts HTML and Markdown source files into indexed HTML, EPUB, PostScript, or PDF files (but doesn’t support CSS).

gui.cxx  (htmldoc-1.9.11-source):gui.cxx  (htmldoc-1.9.12-source)
// //
// GUI routines for HTMLDOC, an HTML document processing program. // GUI routines for HTMLDOC, an HTML document processing program.
// //
// Copyright 2011-2020 by Michael R Sweet. // Copyright © 2011-2021 by Michael R Sweet.
// Copyright 1997-2010 by Easy Software Products. All rights reserved. // Copyright © 1997-2010 by Easy Software Products. All rights reserved.
// //
// This program is free software. Distribution and use rights are outlined in // This program is free software. Distribution and use rights are outlined in
// the file "COPYING". // the file "COPYING".
// //
#include "htmldoc.h" #include "htmldoc.h"
#include "markdown.h" #include "markdown.h"
#ifdef HAVE_LIBFLTK #ifdef HAVE_LIBFLTK
skipping to change at line 310 skipping to change at line 310
moveDownFile = new Fl_Button(390, 195, 95, 25, "Move Down"); moveDownFile = new Fl_Button(390, 195, 95, 25, "Move Down");
moveDownFile->deactivate(); moveDownFile->deactivate();
moveDownFile->callback((Fl_Callback *)moveDownFilesCB, this); moveDownFile->callback((Fl_Callback *)moveDownFilesCB, this);
moveDownFile->tooltip("Move HTML files and URLs down in the list."); moveDownFile->tooltip("Move HTML files and URLs down in the list.");
lhImage = new Fl_Input(140, 230, 250, 25, "Letterhead Image: "); lhImage = new Fl_Input(140, 230, 250, 25, "Letterhead Image: ");
lhImage->when(FL_WHEN_CHANGED); lhImage->when(FL_WHEN_CHANGED);
lhImage->callback((Fl_Callback *)lhImageCB, this); lhImage->callback((Fl_Callback *)lhImageCB, this);
lhImage->tooltip("The letterhead image for the header or footer."); lhImage->tooltip("The letterhead image for the header or footer.");
logoBrowse = new Fl_Button(390, 230, 95, 25, "Browse..."); lhBrowse = new Fl_Button(390, 230, 95, 25, "Browse...");
logoBrowse->callback((Fl_Callback *)lhImageCB, this); lhBrowse->callback((Fl_Callback *)lhImageCB, this);
logoBrowse->tooltip("Choose a logo image file."); lhBrowse->tooltip("Choose a logo image file.");
logoImage = new Fl_Input(140, 260, 250, 25, "Logo Image: "); logoImage = new Fl_Input(140, 260, 250, 25, "Logo Image: ");
logoImage->when(FL_WHEN_CHANGED); logoImage->when(FL_WHEN_CHANGED);
logoImage->callback((Fl_Callback *)logoImageCB, this); logoImage->callback((Fl_Callback *)logoImageCB, this);
logoImage->tooltip("The logo image for the navigation bar and header or footer ."); logoImage->tooltip("The logo image for the navigation bar and header or footer .");
logoBrowse = new Fl_Button(390, 260, 95, 25, "Browse..."); logoBrowse = new Fl_Button(390, 260, 95, 25, "Browse...");
logoBrowse->callback((Fl_Callback *)logoImageCB, this); logoBrowse->callback((Fl_Callback *)logoImageCB, this);
logoBrowse->tooltip("Choose a logo image file."); logoBrowse->tooltip("Choose a logo image file.");
skipping to change at line 2820 skipping to change at line 2820
} }
count = atoi(line); count = atoi(line);
while (count > 0) while (count > 0)
{ {
count --; count --;
if (fgets(line, sizeof(line), fp) == NULL) if (fgets(line, sizeof(line), fp) == NULL)
{ {
fl_alert("Unable to import %s:\nMissing file.", gui->fc->value(i)); fl_alert("Unable to import %s:\nMissing file.", gui->fc->value(i));
fclose(fp); break;
chdir(directory);
continue;
} }
line[strlen(line) - 1] = '\0'; // strip newline line[strlen(line) - 1] = '\0'; // strip newline
gui->inputFiles->add(file_localize(line, directory), gui->icon); gui->inputFiles->add(file_localize(line, directory), gui->icon);
} }
fclose(fp); fclose(fp);
chdir(directory); chdir(directory);
} }
else else
 End of changes. 3 change blocks. 
8 lines changed or deleted 6 lines changed or added

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