Add a bunch of SetFocus calls.
authorCarl Hetherington <cth@carlh.net>
Mon, 8 Jun 2020 19:31:20 +0000 (21:31 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 8 Jun 2020 19:31:20 +0000 (21:31 +0200)
12 files changed:
src/wx/audio_gain_dialog.cc
src/wx/cinema_dialog.cc
src/wx/email_dialog.cc
src/wx/isdcf_metadata_dialog.cc
src/wx/make_chain_dialog.cc
src/wx/metadata_dialog.cc
src/wx/monitor_dialog.cc
src/wx/new_dkdm_folder_dialog.cc
src/wx/rename_template_dialog.cc
src/wx/repeat_dialog.cc
src/wx/report_problem_dialog.cc
src/wx/server_dialog.cc

index 1181123651dacb6eaa5f5c77edc9e3e053968034..fb9bd25447b4aba3ad9b01255ae5423d7e7389fb 100644 (file)
@@ -38,6 +38,8 @@ AudioGainDialog::AudioGainDialog (wxWindow* parent, int c, int d, float v)
        _gain->SetValue (linear_to_db(v));
 
        layout ();
+
+       _gain->SetFocus ();
 }
 
 float
index 31e6ebe79d0612ff4fedf2b776468b188a0e9a62..04391774bd5fcfb5e79bbdef43f25f0f3620d89c 100644 (file)
@@ -96,6 +96,8 @@ CinemaDialog::CinemaDialog (wxWindow* parent, wxString title, string name, list<
 
        overall_sizer->Layout ();
        overall_sizer->SetSizeHints (this);
+
+       _name->SetFocus ();
 }
 
 string
index b95d79b03ba83174c72e091eb21635d9b83ff28b..854a130c6e541e185499dcfd7a6d035d4ca86817 100644 (file)
@@ -32,6 +32,8 @@ EmailDialog::EmailDialog (wxWindow* parent)
        _email = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, wxSize (400, -1)));
 
        layout ();
+
+       _email->SetFocus ();
 }
 
 void
index 3d79f3bf6db5f6377538cdb43fbad686ca4a7176..32f994dba954bed6946fbb79f28f585b4837cea3 100644 (file)
@@ -107,6 +107,8 @@ ISDCFMetadataDialog::ISDCFMetadataDialog (wxWindow* parent, ISDCFMetadata dm, bo
        setup_sensitivity ();
 
        layout ();
+
+       _content_version->SetFocus ();
 }
 
 void
index e1ba112cec4e5f28deecbde7302fa83ec96918e5..d681c00e876f866e30caf59863854c5c1c6f4b3c 100644 (file)
@@ -88,4 +88,6 @@ MakeChainDialog::MakeChainDialog (
        }
 
        layout ();
+
+       _organisation->SetFocus ();
 }
index ce8eb11995e432c93f35aa3318c157c5d34cdb6b..ca820d1c413c575cce3f266b961cbfc7a1ad76f8 100644 (file)
@@ -92,6 +92,7 @@ MetadataDialog::MetadataDialog (wxWindow* parent, weak_ptr<Film> film)
        overall_sizer->SetSizeHints (this);
 
        _content_version->Bind (wxEVT_TEXT, boost::bind(&MetadataDialog::content_version_changed, this));
+       _content_version->SetFocus ();
 }
 
 vector<dcp::Rating>
index d247bc88b47680fec59819ab9f3cdab2f06416ce..db6b71b489935b1fa1283dfbf686b37245a8e972 100644 (file)
@@ -43,6 +43,8 @@ MonitorDialog::MonitorDialog (wxWindow* parent)
        _year_of_manufacture = add (new wxTextCtrl(this, wxID_ANY, wxT("")));
 
        layout ();
+
+       _manufacturer_id->SetFocus ();
 }
 
 void
index bf34ec3bf7650ab2ac08ce9e3ddb723e3bb453cc..9408b3d0de5247b3525b4e5b224761dae6b540df 100644 (file)
@@ -26,6 +26,8 @@ NewDKDMFolderDialog::NewDKDMFolderDialog (wxWindow* parent)
        add (_("Folder name"), true);
        _name = add (new wxTextCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (300, -1)));
        layout ();
+
+       _name->SetFocus ();
 }
 
 wxString
index 6651d09231025af69ae7dd0f3a2fe8f84f7a12a6..970c85a8b0e8d0b243374e0033e0b0dfb6a90228 100644 (file)
@@ -26,6 +26,8 @@ RenameTemplateDialog::RenameTemplateDialog (wxWindow* parent)
        add (_("New name"), true);
        _name = add (new wxTextCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (300, -1)));
        layout ();
+
+       _name->SetFocus ();
 }
 
 wxString
index d1d1fcfd2b75d4fd71e4cd9ebf6b3b344b0e3a29..aabde4616a2cc90fb86a005a42fcf87ade448573 100644 (file)
@@ -31,6 +31,8 @@ RepeatDialog::RepeatDialog (wxWindow* parent)
        _number->SetRange (1, 1024);
 
        layout ();
+
+       _number->SetFocus ();
 }
 
 int
index c79c542ed5861d880010d9bbb54e8d1da0c14538..981d13f31e1956e6085ee838c402d6b108c05ec5 100644 (file)
@@ -97,6 +97,8 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr<Film> fil
 
        _overall_sizer->Layout ();
        _overall_sizer->SetSizeHints (this);
+
+       _summary->SetFocus ();
 }
 
 void
index abad589891231e0de8e876039df6b03424e43855..51fe4302c7c3af104018a0e379ef8e9d7dd3049e 100644 (file)
@@ -41,6 +41,8 @@ ServerDialog::ServerDialog (wxWindow* parent)
        _host = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, size));
 
        layout ();
+
+       _host->SetFocus ();
 }
 
 void