just a bit more

This commit is contained in:
David Rose 2002-04-07 18:58:22 +00:00
parent 10ca7149ac
commit c813279928
4 changed files with 15 additions and 4 deletions

View File

@ -466,9 +466,11 @@ generate_reduced_html(ostream &html, Photo *photo, int photo_index, int pi,
<< " height=" << photo->_reduced_y_size << " alt=\"" << photo->get_name()
<< "\"></a></p>\n";
html
<< "<p><a href=\"" << full << "\">View full size image ("
<< photo->_full_x_size << " x " << photo->_full_y_size << ")</a></p>";
if (!omit_full_links) {
html
<< "<p><a href=\"" << full << "\">View full size image ("
<< photo->_full_x_size << " x " << photo->_full_y_size << ")</a></p>";
}
generate_nav_buttons(html, prev_photo_filename, next_photo_filename,
up_href);

View File

@ -47,6 +47,7 @@ bool format_rose = false;
bool dummy_mode = false;
bool draw_frames = false;
bool omit_roll_headers = false;
bool omit_full_links = false;
bool caption_frame_numbers = false;

View File

@ -93,6 +93,9 @@ extern bool draw_frames;
// it exists.
extern bool omit_roll_headers;
// True to omit links to the full-size source images.
extern bool omit_full_links;
// True to caption photos with just a frame number instead of the
// whole image basename. This only works if the photo image filenames
// consist of the roll directory name concatenated with a frame number.

View File

@ -131,11 +131,16 @@ Indexify() {
&Indexify::dispatch_none, &_generate_icons);
add_option
("omitrh", "", 0,
("omit-rh", "", 0,
"Omits roll headers introducing each roll directory, including any "
"headers defined in roll.cm files.",
&Indexify::dispatch_none, &omit_roll_headers);
add_option
("omit-full", "", 0,
"Omits links to the full-size images.",
&Indexify::dispatch_none, &omit_full_links);
add_option
("caption", "size[,spacing]", 0,
"Specifies the font size in pixels of the thumbnail captions. If the "