Anonymous avatar Anonymous committed b427aab

Added an empty title box for the title.

Comments (0)

Files changed (1)

1st-version-as-scripts/edit-yaml-gui.pl

 
     $frame->SetMenuBar($menu_bar);
 
-    my $sizer = Wx::BoxSizer->new(wxVERTICAL());
+    my $sizer = Wx::BoxSizer->new(wxHORIZONTAL());
 
     $frame->SetSizer($sizer);
 
-    $sizer->Add($frame->{board}, 1, wxALL(), 10);
     $frame->{list} = Wx::ListBox->new(
         $frame,
         -1,
     );
     $sizer->Add($frame->{list}, 1, wxALL(), 10);
 
+    my $controls_sizer = Wx::BoxSizer->new(wxHORIZONTAL());
+
+    $sizer->Add($controls_sizer, 1, wxALL(), 10);
+
+    my $title_box = Wx::TextCtrl->new(
+        $frame, -1, '', 
+        Wx::wxDefaultPosition,
+        Wx::wxDefaultSize,
+        Wx::wxTE_PROCESS_ENTER
+    );
+
+    $self->{title_box} = $title_box;
+
+    $controls_sizer->Add($title_box, 1, wxALL(), 10);
+
     $frame->SetSize(Wx::Size->new(600,400));
     $frame->Show( 1 );
 
     $self->{frame} = $frame;
 
+=begin Hello
+
     EVT_LISTBOX_DCLICK($frame->{list}, wxID_ANY(), sub {
             my $list = shift;
             my $event = shift;
 
             my $sel = $event->GetSelection();
             my $string = $list->GetString($sel);
-            $frame->{board}->perform_solve($string);
         }
     );
 
+=end Hello
+
+=cut
+
     return 1;
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.