Changeset 2269


Ignore:
Timestamp:
12/30/08 01:10:26 (3 years ago)
Author:
szabgab
Message:

move the incremental search window from experimental to production code

Location:
trunk/Padre/lib/Padre/Wx/Menu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Menu/Edit.pm

    r2184 r2269  
    172172        }, 
    173173    ); 
     174 
     175    $self->AppendSeparator; 
     176 
     177    # Quick Find: Press F3 to start search with selected text 
     178    $self->{quick_find} = $self->AppendCheckItem( -1, 
     179        Wx::gettext("Quick Find") 
     180    ); 
     181    Wx::Event::EVT_MENU( $main, 
     182        $self->{quick_find}, 
     183        sub { 
     184            Padre->ide->config->{is_quick_find} = $_[1]->IsChecked ? 1 : 0; 
     185            return; 
     186        }, 
     187    ); 
     188 
     189    # Incremental find (#60) 
     190    Wx::Event::EVT_MENU( $main, 
     191        $self->Append( -1, Wx::gettext("Find Next\tF4") ), 
     192        sub { 
     193            $_[0]->find->search('next'); 
     194        }, 
     195    ); 
     196    Wx::Event::EVT_MENU( $main, 
     197        $self->Append( -1, Wx::gettext("Find Previous\tShift-F4") ), 
     198        sub { 
     199            $_[0]->find->search('previous'); 
     200        } 
     201    ); 
     202 
     203    $self->AppendSeparator; 
    174204 
    175205    Wx::Event::EVT_MENU( $main, 
  • trunk/Padre/lib/Padre/Wx/Menu/Experimental.pm

    r2184 r2269  
    115115    ); 
    116116 
    117     $self->AppendSeparator; 
    118  
    119     # Quick Find: Press F3 to start search with selected text 
    120     $self->{quick_find} = $self->AppendCheckItem( -1, 
    121         Wx::gettext("Quick Find") 
    122     ); 
    123     Wx::Event::EVT_MENU( $main, 
    124         $self->{quick_find}, 
    125         sub { 
    126             Padre->ide->config->{is_quick_find} = $_[1]->IsChecked ? 1 : 0; 
    127             return; 
    128         }, 
    129     ); 
    130  
    131     # Incremental find (#60) 
    132     Wx::Event::EVT_MENU( $main, 
    133         $self->Append( -1, Wx::gettext("Find Next\tF4") ), 
    134         sub { 
    135             $_[0]->find->search('next'); 
    136         }, 
    137     ); 
    138     Wx::Event::EVT_MENU( $main, 
    139         $self->Append( -1, Wx::gettext("Find Previous\tShift-F4") ), 
    140         sub { 
    141             $_[0]->find->search('previous'); 
    142         } 
    143     ); 
    144  
    145117    return $self; 
    146118} 
Note: See TracChangeset for help on using the changeset viewer.