print the list of found lensfun cameras and lenses when in verbose mode
This commit is contained in:
@@ -526,10 +526,17 @@ LensProfilePanel::LFDbHelper::LFDbHelper()
|
|||||||
|
|
||||||
void LensProfilePanel::LFDbHelper::fillLensfunCameras()
|
void LensProfilePanel::LFDbHelper::fillLensfunCameras()
|
||||||
{
|
{
|
||||||
|
if (options.rtSettings.verbose) {
|
||||||
|
std::cout << "LENSFUN, scanning cameras:" << std::endl;
|
||||||
|
}
|
||||||
std::map<Glib::ustring, std::set<Glib::ustring>> camnames;
|
std::map<Glib::ustring, std::set<Glib::ustring>> camnames;
|
||||||
auto camlist = LFDatabase::getInstance()->getCameras();
|
auto camlist = LFDatabase::getInstance()->getCameras();
|
||||||
for (auto &c : camlist) {
|
for (auto &c : camlist) {
|
||||||
camnames[c.getMake()].insert(c.getModel());
|
camnames[c.getMake()].insert(c.getModel());
|
||||||
|
|
||||||
|
if (options.rtSettings.verbose) {
|
||||||
|
std::cout << " found: " << c.getDisplayString() << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (auto &p : camnames) {
|
for (auto &p : camnames) {
|
||||||
Gtk::TreeModel::Row row = *(lensfunCameraModel->append());
|
Gtk::TreeModel::Row row = *(lensfunCameraModel->append());
|
||||||
@@ -546,12 +553,19 @@ void LensProfilePanel::LFDbHelper::fillLensfunCameras()
|
|||||||
|
|
||||||
void LensProfilePanel::LFDbHelper::fillLensfunLenses()
|
void LensProfilePanel::LFDbHelper::fillLensfunLenses()
|
||||||
{
|
{
|
||||||
|
if (options.rtSettings.verbose) {
|
||||||
|
std::cout << "LENSFUN, scanning lenses:" << std::endl;
|
||||||
|
}
|
||||||
std::map<Glib::ustring, std::set<Glib::ustring>> lenses;
|
std::map<Glib::ustring, std::set<Glib::ustring>> lenses;
|
||||||
auto lenslist = LFDatabase::getInstance()->getLenses();
|
auto lenslist = LFDatabase::getInstance()->getLenses();
|
||||||
for (auto &l : lenslist) {
|
for (auto &l : lenslist) {
|
||||||
auto name = l.getLens();
|
auto name = l.getLens();
|
||||||
auto make = l.getMake();
|
auto make = l.getMake();
|
||||||
lenses[make].insert(name);
|
lenses[make].insert(name);
|
||||||
|
|
||||||
|
if (options.rtSettings.verbose) {
|
||||||
|
std::cout << " found: " << l.getDisplayString() << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (auto &p : lenses) {
|
for (auto &p : lenses) {
|
||||||
Gtk::TreeModel::Row row = *(lensfunLensModel->append());
|
Gtk::TreeModel::Row row = *(lensfunLensModel->append());
|
||||||
|
Reference in New Issue
Block a user