mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
just a bit more
This commit is contained in:
parent
10ca7149ac
commit
c813279928
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user