Commit 738b4d36 authored by Davis King's avatar Davis King

Made imglab show the name of the current image in the title bar.

parent 6e0f13ba
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <dlib/dir_nav.h> #include <dlib/dir_nav.h>
const char* VERSION = "1.2"; const char* VERSION = "1.3";
......
...@@ -87,7 +87,6 @@ metadata_editor( ...@@ -87,7 +87,6 @@ metadata_editor(
get_display_size(screen_width, screen_height); get_display_size(screen_width, screen_height);
set_pos((screen_width-width)/2, (screen_height-height)/2); set_pos((screen_width-width)/2, (screen_height-height)/2);
set_title("Image Labeler - " + metadata.name);
show(); show();
} }
...@@ -430,7 +429,7 @@ load_image( ...@@ -430,7 +429,7 @@ load_image(
try try
{ {
dlib::load_image(img, metadata.images[idx].filename); dlib::load_image(img, metadata.images[idx].filename);
set_title(metadata.name + ": " +metadata.images[idx].filename);
} }
catch (exception& e) catch (exception& e)
{ {
...@@ -458,7 +457,7 @@ load_image_and_set_size( ...@@ -458,7 +457,7 @@ load_image_and_set_size(
try try
{ {
dlib::load_image(img, metadata.images[idx].filename); dlib::load_image(img, metadata.images[idx].filename);
set_title(metadata.name + ": " +metadata.images[idx].filename);
} }
catch (exception& e) catch (exception& e)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment