Commit bc98ab50 authored by Murray Cumming's avatar Murray Cumming
Browse files
parent 3a105426
......@@ -45,7 +45,7 @@ Glib::RefPtr<Application> Application::create()
void Application::create_window(const Glib::RefPtr<Gio::File>& file)
{
//std::cout << G_STRFUNC << ": debug" << std::endl;
//std::cout << G_STRFUNC << ": debug\n";
AppWindow* window = nullptr;
Glom::Utils::get_glade_widget_derived_with_warning(window);
......@@ -81,7 +81,7 @@ void Application::on_window_hide(Gtk::Window* window)
void Application::on_activate()
{
//std::cout << G_STRFUNC << ": debug" << std::endl;
//std::cout << G_STRFUNC << ": debug\n";
// The application has been started, so let's show a window:
create_window();
......@@ -112,7 +112,7 @@ void Application::on_startup()
void Application::on_open(const Gio::Application::type_vec_files& files,
const Glib::ustring& hint)
{
//std::cout << G_STRFUNC << ": debug" << std::endl;
//std::cout << G_STRFUNC << ": debug\n";
// The application has been asked to open some files,
// so let's open a new window for each one.
......@@ -121,7 +121,7 @@ void Application::on_open(const Gio::Application::type_vec_files& files,
{
if(!file)
{
std::cerr << G_STRFUNC << ": file is null." << std::endl;
std::cerr << G_STRFUNC << ": file is null.\n";
}
else
create_window(file);
......@@ -133,7 +133,7 @@ void Application::on_open(const Gio::Application::type_vec_files& files,
int Application::on_command_line(const Glib::RefPtr<Gio::ApplicationCommandLine>& command_line)
{
//std::cout << G_STRFUNC << ": debug" << std::endl;
//std::cout << G_STRFUNC << ": debug\n";
//Parse command-line arguments that were passed either to the main (first) instance
//or to subsequent instances.
......
......@@ -603,7 +603,7 @@ void AppWindow::open_browsed_document(const EpcServiceInfo* server, const Glib::
Utils::get_glade_widget_derived_with_warning(dialog_connection);
if(!dialog_connection)
{
std::cerr << G_STRFUNC << ": dialog_connection is null." << std::endl;
std::cerr << G_STRFUNC << ": dialog_connection is null.\n";
return;
}
......@@ -628,14 +628,14 @@ void AppWindow::open_browsed_document(const EpcServiceInfo* server, const Glib::
document_contents = (gchar*)epc_consumer_lookup(consumer, "document", &length, &error);
if(error)
{
std::cout << "debug: " << G_STRFUNC << ": " << std::endl << " " << error->message << std::endl;
std::cout << "debug: " << G_STRFUNC << ": \n" << " " << error->message << std::endl;
const int error_code = error->code;
g_clear_error(&error);
if(error_code == SOUP_STATUS_FORBIDDEN ||
error_code == SOUP_STATUS_UNAUTHORIZED)
{
//std::cout << " SOUP_STATUS_FORBIDDEN or SOUP_STATUS_UNAUTHORIZED" << std::endl;
//std::cout << " SOUP_STATUS_FORBIDDEN or SOUP_STATUS_UNAUTHORIZED\n";
UiUtils::show_ok_dialog(_("Connection Failed"), _("Glom could not connect to the database server. Maybe you entered an incorrect user name or password, or maybe the postgres database server is not running."), *this, Gtk::MESSAGE_ERROR); //TODO: Add help button.
}
......@@ -958,7 +958,7 @@ bool AppWindow::on_document_load()
document->set_modified(false);
document->set_is_new(true);
document->set_allow_autosave(true); //Turn this back on.
std::cout << "debug: user cancelled creating database" << std::endl;
std::cout << "debug: user cancelled creating database\n";
return false;
}
......@@ -1044,14 +1044,14 @@ bool AppWindow::on_document_load()
}
else
#endif // !GLOM_ENABLE_CLIENT_ONLY
std::cerr << G_STRFUNC << ": unexpected database_not_found error when opening example." << std::endl;
std::cerr << G_STRFUNC << ": unexpected database_not_found error when opening example.\n";
}
else if(!test)
{
//std::cerr might show some hints, but we don't want to confront the user with them:
//TODO: Actually complain about specific stuff such as missing data, because the user might really play with the file system.
Frame_Glom::show_ok_dialog(_("Problem Loading Document"), _("Glom could not load the document."), *this, Gtk::MESSAGE_ERROR);
std::cerr << G_STRFUNC << ": unexpected error." << std::endl;
std::cerr << G_STRFUNC << ": unexpected error.\n";
}
}
......@@ -1334,7 +1334,7 @@ bool AppWindow::offer_new_or_existing()
auto document = std::dynamic_pointer_cast<Document>(get_document());
if(!document)
{
std::cerr << G_STRFUNC << ": document was NULL." << std::endl;
std::cerr << G_STRFUNC << ": document was NULL.\n";
return false;
}
......@@ -1378,7 +1378,7 @@ void AppWindow::existing_or_new_new()
auto document = std::dynamic_pointer_cast<Document>(get_document());
if(!document)
{
std::cerr << G_STRFUNC << ": document is null." << std::endl;
std::cerr << G_STRFUNC << ": document is null.\n";
return;
}
......@@ -1514,7 +1514,7 @@ bool AppWindow::recreate_database_from_example(bool& user_cancelled)
{
connection_pool->set_ready_to_connect(); //This has succeeded already.
auto sharedconnection = connection_pool->connect();
std::cerr << G_STRFUNC << ": Failed because database exists already." << std::endl;
std::cerr << G_STRFUNC << ": Failed because database exists already.\n";
return false; //Connection to the database succeeded, because no exception was thrown. so the database exists already.
}
......@@ -1523,7 +1523,7 @@ bool AppWindow::recreate_database_from_example(bool& user_cancelled)
if(ex.get_failure_type() == ExceptionConnection::failure_type::NO_SERVER)
{
user_cancelled = true; //Eventually, the user will cancel after retrying.
std::cerr << G_STRFUNC << ": Failed because connection to server failed, without specifying a database." << std::endl;
std::cerr << G_STRFUNC << ": Failed because connection to server failed, without specifying a database.\n";
return false;
}
......@@ -1559,7 +1559,7 @@ bool AppWindow::recreate_database_from_example(bool& user_cancelled)
}
catch(const ExceptionConnection& ex)
{
std::cerr << G_STRFUNC << ": Failed to connect to the newly-created database." << std::endl;
std::cerr << G_STRFUNC << ": Failed to connect to the newly-created database.\n";
return false;
}
......@@ -1588,7 +1588,7 @@ bool AppWindow::recreate_database_from_example(bool& user_cancelled)
pulse_progress_message();
if(!table_creation_succeeded)
{
std::cerr << G_STRFUNC << ": CREATE TABLE failed with the newly-created database." << std::endl;
std::cerr << G_STRFUNC << ": CREATE TABLE failed with the newly-created database.\n";
return false;
}
}
......@@ -1613,7 +1613,7 @@ bool AppWindow::recreate_database_from_example(bool& user_cancelled)
if(!table_insert_succeeded)
{
std::cerr << G_STRFUNC << ": INSERT of example data failed with the newly-created database." << std::endl;
std::cerr << G_STRFUNC << ": INSERT of example data failed with the newly-created database.\n";
return false;
}
//}
......@@ -1633,7 +1633,7 @@ bool AppWindow::recreate_database_from_backup(const std::string& backup_data_fil
{
if(backup_data_file_path.empty())
{
std::cerr << G_STRFUNC << ": backup_data_file_path is empty." << std::endl;
std::cerr << G_STRFUNC << ": backup_data_file_path is empty.\n";
return false;
}
......@@ -1658,7 +1658,7 @@ bool AppWindow::recreate_database_from_backup(const std::string& backup_data_fil
{
connection_pool->set_ready_to_connect(); //This has succeeded already.
auto sharedconnection = connection_pool->connect();
std::cerr << G_STRFUNC << ": Failed because database exists already." << std::endl;
std::cerr << G_STRFUNC << ": Failed because database exists already.\n";
return false; //Connection to the database succeeded, because no exception was thrown. so the database exists already.
}
......@@ -1667,7 +1667,7 @@ bool AppWindow::recreate_database_from_backup(const std::string& backup_data_fil
if(ex.get_failure_type() == ExceptionConnection::failure_type::NO_SERVER)
{
user_cancelled = true; //Eventually, the user will cancel after retrying.
std::cerr << G_STRFUNC << ": Failed because connection to server failed, without specifying a database." << std::endl;
std::cerr << G_STRFUNC << ": Failed because connection to server failed, without specifying a database.\n";
return false;
}
......@@ -1713,7 +1713,7 @@ bool AppWindow::recreate_database_from_backup(const std::string& backup_data_fil
bool test = DbUtils::add_standard_groups(document);
if(!test)
{
std::cerr << G_STRFUNC << ": DbUtils::add_standard_groups(): failed." << std::endl;
std::cerr << G_STRFUNC << ": DbUtils::add_standard_groups(): failed.\n";
return false;
}
......@@ -1733,7 +1733,7 @@ bool AppWindow::recreate_database_from_backup(const std::string& backup_data_fil
if(!restored)
{
std::cerr << G_STRFUNC << ": Restore failed." << std::endl;
std::cerr << G_STRFUNC << ": Restore failed.\n";
return false;
}
......@@ -1796,7 +1796,7 @@ void AppWindow::fill_menu_tables()
Glib::RefPtr<Gio::Menu>::cast_dynamic(object);
if(!menu)
{
std::cerr << G_STRFUNC << ": GMenu not found" << std::endl;
std::cerr << G_STRFUNC << ": GMenu not found\n";
return;
}
......@@ -1809,7 +1809,7 @@ void AppWindow::fill_menu_tables()
const auto document = std::dynamic_pointer_cast<Document>(get_document());
if(!document)
{
std::cerr << G_STRFUNC << ": document is null." << std::endl;
std::cerr << G_STRFUNC << ": document is null.\n";
return;
}
......@@ -1842,7 +1842,7 @@ void AppWindow::fill_menu_reports(const Glib::ustring& table_name)
Glib::RefPtr<Gio::Menu>::cast_dynamic(object);
if(!menu)
{
std::cerr << G_STRFUNC << ": GMenu not found" << std::endl;
std::cerr << G_STRFUNC << ": GMenu not found\n";
return;
}
......@@ -1863,7 +1863,7 @@ void AppWindow::fill_menu_reports(const Glib::ustring& table_name)
const auto document = std::dynamic_pointer_cast<Document>(get_document());
if(!document)
{
std::cerr << G_STRFUNC << ": document is null." << std::endl;
std::cerr << G_STRFUNC << ": document is null.\n";
return;
}
......@@ -1922,7 +1922,7 @@ void AppWindow::fill_menu_print_layouts(const Glib::ustring& table_name)
Glib::RefPtr<Gio::Menu>::cast_dynamic(object);
if(!menu)
{
std::cerr << G_STRFUNC << ": GMenu not found" << std::endl;
std::cerr << G_STRFUNC << ": GMenu not found\n";
return;
}
......@@ -1943,7 +1943,7 @@ void AppWindow::fill_menu_print_layouts(const Glib::ustring& table_name)
auto document = std::dynamic_pointer_cast<Document>(get_document());
if(!document)
{
std::cerr << G_STRFUNC << ": document is null." << std::endl;
std::cerr << G_STRFUNC << ": document is null.\n";
return;
}
......@@ -1990,7 +1990,7 @@ void AppWindow::on_menu_file_save_as_example()
bool bTest = false;
auto document = std::dynamic_pointer_cast<Document>(get_document());
if(!document) {
std::cerr << G_STRFUNC << ": document was null." << std::endl;
std::cerr << G_STRFUNC << ": document was null.\n";
} else {
const auto file_uriOld = document->get_file_uri();
......
......@@ -160,7 +160,7 @@ AppState::userlevels Base_DB::get_userlevel() const
}
else
{
std::cerr << G_STRFUNC << ": document not found." << std::endl;
std::cerr << G_STRFUNC << ": document not found.\n";
return AppState::userlevels::OPERATOR;
}
}
......@@ -262,7 +262,7 @@ std::shared_ptr<Field> Base_DB::change_column(const Glib::ustring& table_name, c
{
if(!connection_pool->change_column(table_name, field_old, result))
{
std::cerr << G_STRFUNC << ": change_column() failed." << std::endl;
std::cerr << G_STRFUNC << ": change_column() failed.\n";
return std::shared_ptr<Field>();
}
}
......@@ -319,7 +319,7 @@ Glib::RefPtr<Gnome::Gda::Connection> Base_DB::get_connection()
if(!sharedconnection)
{
std::cerr << G_STRFUNC << ": No connection yet." << std::endl;
std::cerr << G_STRFUNC << ": No connection yet.\n";
return Glib::RefPtr<Gnome::Gda::Connection>();
}
......@@ -649,7 +649,7 @@ void Base_DB::get_table_fields_to_show_for_sequence_add_group(const Glib::ustrin
if(vecFields.empty())
{
//std::cerr << G_STRFUNC << ": Returning empty list." << std::endl;
//std::cerr << G_STRFUNC << ": Returning empty list.\n";
}
}
......@@ -725,7 +725,7 @@ Base_DB::type_vecConstLayoutFields Base_DB::get_table_fields_to_show_for_sequenc
if(result.empty())
{
//std::cerr << G_STRFUNC << ": Returning empty list." << std::endl;
//std::cerr << G_STRFUNC << ": Returning empty list.\n";
}
return result;
......@@ -803,7 +803,7 @@ void Base_DB::calculate_field(const LayoutFieldInRecord& field_in_record)
}
else if(calc_progress.m_calc_finished)
{
//std::cerr << G_STRFUNC << ": Already calculated." << std::endl;
//std::cerr << G_STRFUNC << ": Already calculated.\n";
//Don't bother calculating it again. The correct value is already in the database and layout.
}
......@@ -936,13 +936,13 @@ bool Base_DB::set_field_value_in_database(const LayoutFieldInRecord& layoutfield
//row is invalid, and ignored, for Box_Data_Details.
if(!(field_in_record.m_field))
{
std::cerr << G_STRFUNC << ": field_in_record.m_field is empty." << std::endl;
std::cerr << G_STRFUNC << ": field_in_record.m_field is empty.\n";
return false;
}
if(!(field_in_record.m_key))
{
std::cerr << G_STRFUNC << ": field_in_record.m_key is empty." << std::endl;
std::cerr << G_STRFUNC << ": field_in_record.m_key is empty.\n";
return false;
}
......@@ -961,7 +961,7 @@ bool Base_DB::set_field_value_in_database(const LayoutFieldInRecord& layoutfield
const auto test = DbUtils::query_execute(builder); //TODO: Respond to failure.
if(!test)
{
std::cerr << G_STRFUNC << ": UPDATE failed." << std::endl;
std::cerr << G_STRFUNC << ": UPDATE failed.\n";
return false; //failed.
}
}
......@@ -987,7 +987,7 @@ bool Base_DB::set_field_value_in_database(const LayoutFieldInRecord& layoutfield
//Prevent circular calculations during the recursive do_calculations:
{
//Recalculate any calculated fields that depend on this calculated field.
//std::cerr << G_STRFUNC << ": calling do_calculations" << std::endl;
//std::cerr << G_STRFUNC << ": calling do_calculations\n";
do_calculations(layoutfield_in_record, !use_current_calculations);
}
......@@ -1003,7 +1003,7 @@ Gnome::Gda::Value Base_DB::get_field_value_in_database(const LayoutFieldInRecord
//row is invalid, and ignored, for Box_Data_Details.
if(!(field_in_record.m_field))
{
std::cerr << G_STRFUNC << ": field_in_record.m_field is empty." << std::endl;
std::cerr << G_STRFUNC << ": field_in_record.m_field is empty.\n";
return result;
}
......@@ -1020,7 +1020,7 @@ Gnome::Gda::Value Base_DB::get_field_value_in_database(const LayoutFieldInRecord
if(!to_field.empty())
{
std::cerr << G_STRFUNC << ": field_in_record.m_key is empty." << std::endl;
std::cerr << G_STRFUNC << ": field_in_record.m_key is empty.\n";
return result;
}
}
......@@ -1055,13 +1055,13 @@ Gnome::Gda::Value Base_DB::get_field_value_in_database(const std::shared_ptr<Fie
//row is invalid, and ignored, for Box_Data_Details.
if(!field)
{
std::cerr << G_STRFUNC << ": field is empty." << std::endl;
std::cerr << G_STRFUNC << ": field is empty.\n";
return result;
}
if(found_set.m_where_clause.empty())
{
std::cerr << G_STRFUNC << ": where_clause is empty." << std::endl;
std::cerr << G_STRFUNC << ": where_clause is empty.\n";
return result;
}
......@@ -1471,7 +1471,7 @@ bool Base_DB::set_database_owner_user(const Glib::ustring& user)
const auto test = DbUtils::query_execute_string(strQuery);
if(!test)
{
std::cerr << G_STRFUNC << ": ALTER DATABASE failed." << std::endl;
std::cerr << G_STRFUNC << ": ALTER DATABASE failed.\n";
return false;
}
......@@ -1494,7 +1494,7 @@ bool Base_DB::disable_user(const Glib::ustring& user)
const auto test = DbUtils::query_execute_string(strQuery);
if(!test)
{
std::cerr << G_STRFUNC << ": DROP USER failed" << std::endl;
std::cerr << G_STRFUNC << ": DROP USER failed\n";
return false;
}
......
......@@ -184,7 +184,7 @@ bool Base_DB_Table_Data::record_new(bool use_entered_data, const Gnome::Gda::Val
{
const auto test = DbUtils::query_execute(builder);
if(!test)
std::cerr << G_STRFUNC << ": INSERT failed." << std::endl;
std::cerr << G_STRFUNC << ": INSERT failed.\n";
else
{
auto row = get_row_selected(); //Null and ignored for details views.
......@@ -211,7 +211,7 @@ bool Base_DB_Table_Data::record_new(bool use_entered_data, const Gnome::Gda::Val
}
}
else
std::cerr << G_STRFUNC << ": Empty field names or values." << std::endl;
std::cerr << G_STRFUNC << ": Empty field names or values.\n";
return false; //Failed.
}
......@@ -288,7 +288,7 @@ bool Base_DB_Table_Data::add_related_record_for_field(const std::shared_ptr<cons
builder_insert->add_field_value(primary_key_field->get_name(), primary_key_value);
if(!DbUtils::query_execute(builder_insert))
{
std::cerr << G_STRFUNC << ": INSERT failed." << std::endl;
std::cerr << G_STRFUNC << ": INSERT failed.\n";
return false;
}
......@@ -307,7 +307,7 @@ bool Base_DB_Table_Data::add_related_record_for_field(const std::shared_ptr<cons
relationship->get_from_table(), relationship->get_from_field()); //TODO_Performance.
if(!field_from_key)
{
std::cerr << G_STRFUNC << ": get_fields_for_table_one_field() failed." << std::endl;
std::cerr << G_STRFUNC << ": get_fields_for_table_one_field() failed.\n";
return false;
}
......@@ -339,7 +339,7 @@ bool Base_DB_Table_Data::add_related_record_for_field(const std::shared_ptr<cons
if(!DbUtils::query_execute(builder_update))
{
std::cerr << G_STRFUNC << ": UPDATE failed." << std::endl;
std::cerr << G_STRFUNC << ": UPDATE failed.\n";
return false;
}
}
......@@ -480,7 +480,7 @@ Base_DB_Table_Data::type_vecConstLayoutFields Base_DB_Table_Data::get_related_fi
void Base_DB_Table_Data::refresh_related_fields(const LayoutFieldInRecord& field_in_record_changed, const Gtk::TreeModel::iterator& row, const Gnome::Gda::Value& /* field_value */)
{
//std::cout << "DEBUG: Base_DB_Table_Data::refresh_related_fields()" << std::endl;
//std::cout << "DEBUG: Base_DB_Table_Data::refresh_related_fields()\n";
if(field_in_record_changed.m_table_name != m_table_name)
return; //TODO: Handle these too?
......@@ -498,7 +498,7 @@ void Base_DB_Table_Data::refresh_related_fields(const LayoutFieldInRecord& field
Glib::RefPtr<const Gnome::Gda::DataModel> result = DbUtils::query_execute_select(query);
if(!result)
{
std::cerr << G_STRFUNC << ": no result." << std::endl;
std::cerr << G_STRFUNC << ": no result.\n";
handle_error();
}
else
......@@ -511,7 +511,7 @@ void Base_DB_Table_Data::refresh_related_fields(const LayoutFieldInRecord& field
const guint cols_count = result->get_n_columns();
if(cols_count <= 0)
{
std::cerr << G_STRFUNC << ": The result had 0 columns" << std::endl;
std::cerr << G_STRFUNC << ": The result had 0 columns\n";
}
for(guint uiCol = 0; uiCol < cols_count; ++uiCol)
......@@ -519,7 +519,7 @@ void Base_DB_Table_Data::refresh_related_fields(const LayoutFieldInRecord& field
const auto value = result->get_value_at(uiCol, 0 /* row */);
auto layout_item = *iterFields;
if(!layout_item)
std::cerr << G_STRFUNC << ": The layout_item was null." << std::endl;
std::cerr << G_STRFUNC << ": The layout_item was null.\n";
else
{
//std::cout << "debug: " << G_STRFUNC << ": field_name=" << layout_item->get_name() << std::endl;
......@@ -534,7 +534,7 @@ void Base_DB_Table_Data::refresh_related_fields(const LayoutFieldInRecord& field
}
}
else
std::cerr << G_STRFUNC << ": no records found." << std::endl;
std::cerr << G_STRFUNC << ": no records found.\n";
}
}
}
......
......@@ -45,7 +45,7 @@ Box_Reports::Box_Reports(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builde
builder->get_widget("button_cancel", pButtonCancel);
if(!pButtonCancel)
{
std::cerr << G_STRFUNC << "Missing widget from glade file." << std::endl;
std::cerr << G_STRFUNC << "Missing widget from glade file.\n";
return;
}
set_button_cancel(*pButtonCancel);
......@@ -54,7 +54,7 @@ Box_Reports::Box_Reports(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builde
builder->get_widget("vbox_adddel_parent", pAddDelParent);
if(!pAddDelParent)
{
std::cerr << G_STRFUNC << "Missing widget from glade file." << std::endl;
std::cerr << G_STRFUNC << "Missing widget from glade file.\n";
return;
}
pAddDelParent->pack_start(m_AddDel);
......@@ -120,7 +120,7 @@ bool Box_Reports::fill_from_database()
}
}
else
std::cerr << G_STRFUNC << ": document is null" << std::endl;
std::cerr << G_STRFUNC << ": document is null\n";
//TODO:
......
......@@ -55,7 +55,7 @@ Dialog_Connection::Dialog_Connection(BaseObjectType* cobject, const Glib::RefPtr
std::shared_ptr<SharedConnection> Dialog_Connection::connect_to_server_with_connection_settings() const
{
//std::cout << "debug: Dialog_Connection::connect_to_server_with_connection_settings()" << std::endl;
//std::cout << "debug: Dialog_Connection::connect_to_server_with_connection_settings()\n";
//TODO: BusyCursor busy_cursor(get_app_window());
......@@ -168,7 +168,7 @@ void Dialog_Connection::load_from_document()
set_database_name(document->get_connection_database());
}
else
std::cerr << G_STRFUNC << ": no document" << std::endl;
std::cerr << G_STRFUNC << ": no document\n";
}
......
......@@ -666,13 +666,13 @@ void Dialog_ExistingOrNew::append_example(const Glib::ustring& title, const std:
{
if(!m_new_model)
{
std::cerr << G_STRFUNC << ": m_new_model is null" << std::endl;
std::cerr << G_STRFUNC << ": m_new_model is null\n";
return;
}
if(!m_iter_new_template)
{
std::cerr << G_STRFUNC << ": m_iter_new_template is null" << std::endl;
std::cerr << G_STRFUNC << ": m_iter_new_template is null\n";
return;
}
......
......@@ -77,7 +77,7 @@ void FileChooser_Export::set_export_layout(const Document::type_list_layout_grou
m_table_name = table_name;
m_document = document;
if(!m_document)
std::cerr << G_STRFUNC << ": FileChooser_Export::set_export_layout() document is NULL." << std::endl;
std::cerr << G_STRFUNC << ": FileChooser_Export::set_export_layout() document is NULL.\n";
}
//We only allow a full export in client-only mode,
......
......@@ -416,7 +416,7 @@ void Frame_Glom::show_table_allow_empty(const Glib::ustring& table_name, const G
}
default:
{
std::cout << "debug: " << G_STRFUNC << ": Unexpected mode" << std::endl;
std::cout << "debug: " << G_STRFUNC << ": Unexpected mode\n";
break;
}
}
......@@ -473,16 +473,16 @@ bool Frame_Glom::attempt_change_usermode_to_developer()
if(test)
{
std::cout << "DEBUG: User=" << connection_pool->get_user() << " _is_ in the developer group on the server." << std::endl;
std::cout << "DEBUG: User=" << connection_pool->get_user() << " _is_ in the developer group on the server.\n";
//Avoid double signals:
//if(document->get_userlevel() != AppState::userlevels::DEVELOPER)
test = document->set_userlevel(AppState::userlevels::DEVELOPER);
if(!test)
std::cout << " DEBUG: But document->set_userlevel(AppState::userlevels::DEVELOPER) failed." << std::endl;
std::cout << " DEBUG: But document->set_userlevel(AppState::userlevels::DEVELOPER) failed.\n";
}
else
{
std::cout << "DEBUG: User=" << connection_pool->get_user() << " is _not_ in the developer group on the server." << std::endl;
std::cout << "DEBUG: User=" << connection_pool->get_user() << " is _not_ in the developer group on the server.\n";
}
//If this was not possible then revert the menu:
......@@ -591,7 +591,7 @@ void Frame_Glom::export_data_to_vector(Document::type_example_rows& the_vector,
if(fieldsSequence.empty())
{
std::cerr << G_STRFUNC << ": No fields in sequence." << std::endl;
std::cerr << G_STRFUNC << ": No fields in sequence.\n";
return;
}
......@@ -641,7 +641,7 @@ void Frame_Glom::export_data_to_stream(std::ostream& the_stream, const FoundSet&
if(fieldsSequence.empty())
{
std::cerr << G_STRFUNC << ": No fields in sequence." << std::endl;
std::cerr << G_STRFUNC << ": No fields in sequence.\n";
return;
}
......@@ -676,7 +676,7 @@ void Frame_Glom::export_data_to_stream(std::ostream& the_stream, const FoundSet&
auto field = layout_item->get_full_field_details();
if(!field)
{
std::cerr << G_STRFUNC << ": A field was null." << std::endl;
std::cerr << G_STRFUNC << ": A field was null.\n";
return;
}
......@@ -765,7 +765,7 @@ void Frame_Glom::on_menu_file_import()
int response = Gtk::RESPONSE_OK;
if(!progress_dialog)
{