~ubuntu-branches/ubuntu/saucy/padre/saucy-proposed

« back to all changes in this revision

Viewing changes to lib/Padre/Wx/Browser.pm

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont, gregor herrmann, Dominique Dumont
  • Date: 2012-01-04 12:04:20 UTC
  • mfrom: (1.3.3)
  • Revision ID: package-import@ubuntu.com-20120104120420-i5oybqwf91m1d3il
Tags: 0.92.ds1-1
[ gregor herrmann ]
* Remove debian/source/local-options; abort-on-upstream-changes
  and unapply-patches are default in dpkg-source since 1.16.1.
* Swap order of alternative (build) dependencies after the perl
  5.14 transition.

[ Dominique Dumont ]
* Imported Upstream version 0.92.ds1
* removed fix-spelling patch (applied upstream)
* lintian-override: use wildcard to avoid listing a gazillion files
* updated size of some 'not-real-man-page' entries
* rules: remove dekstop cruft (replaced by a file provided in debian
  directory)
* control: removed Breaks statement. Add /me to uploaders. Updated
  dependencies
* rules: make sure that non-DFSG file (i.e. the cute butterfly, sigh)
  is not distributed

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
use Padre::Role::Task     ();
36
36
use Padre::Logger;
37
37
 
38
 
our $VERSION = '0.90';
 
38
our $VERSION = '0.92';
39
39
our @ISA     = qw{
40
40
        Padre::Role::Task
41
41
        Wx::Dialog
61
61
                undef,
62
62
                -1,
63
63
                Wx::gettext('Help'),
64
 
                Wx::wxDefaultPosition,
 
64
                Wx::DefaultPosition,
65
65
                [ 750, 700 ],
66
 
                Wx::wxDEFAULT_FRAME_STYLE,
 
66
                Wx::DEFAULT_FRAME_STYLE,
67
67
        );
68
68
 
69
69
        $self->{provider} = Padre::Browser->new;
71
71
        # Until we get a real icon use the same one as the others
72
72
        $self->SetIcon(Padre::Wx::Icon::PADRE);
73
73
 
74
 
        my $top_s = Wx::BoxSizer->new(Wx::wxVERTICAL);
75
 
        my $but_s = Wx::BoxSizer->new(Wx::wxHORIZONTAL);
 
74
        my $top_s = Wx::BoxSizer->new(Wx::VERTICAL);
 
75
        my $but_s = Wx::BoxSizer->new(Wx::HORIZONTAL);
76
76
 
77
77
        $self->{notebook} = Wx::AuiNotebook->new(
78
78
                $self,
79
79
                -1,
80
 
                Wx::wxDefaultPosition,
81
 
                Wx::wxDefaultSize,
82
 
                Wx::wxAUI_NB_DEFAULT_STYLE
 
80
                Wx::DefaultPosition,
 
81
                Wx::DefaultSize,
 
82
                Wx::AUI_NB_DEFAULT_STYLE
83
83
        );
84
84
 
85
85
        $self->{search} = Wx::TextCtrl->new(
86
86
                $self, -1,
87
87
                '',
88
 
                Wx::wxDefaultPosition,
89
 
                Wx::wxDefaultSize,
90
 
                Wx::wxTE_PROCESS_ENTER
 
88
                Wx::DefaultPosition,
 
89
                Wx::DefaultSize,
 
90
                Wx::TE_PROCESS_ENTER
91
91
        );
92
92
        $self->{search}->SetToolTip( Wx::ToolTip->new( Wx::gettext('Search for perldoc - e.g. Padre::Task, Net::LDAP') ) );
93
93
 
101
101
 
102
102
        my $label = Wx::StaticText->new(
103
103
                $self, -1, Wx::gettext('Search:'),
104
 
                Wx::wxDefaultPosition, [ 50, -1 ],
105
 
                Wx::wxALIGN_RIGHT
 
104
                Wx::DefaultPosition, [ 50, -1 ],
 
105
                Wx::ALIGN_RIGHT
106
106
        );
107
107
        $label->SetToolTip( Wx::ToolTip->new( Wx::gettext('Search for perldoc - e.g. Padre::Task, Net::LDAP') ) );
108
108
 
109
 
        my $close_button = Wx::Button->new( $self, Wx::wxID_CANCEL, Wx::gettext('&Close') );
 
109
        my $close_button = Wx::Button->new( $self, Wx::ID_CANCEL, Wx::gettext('&Close') );
110
110
 
111
 
        $but_s->Add( $label,          0, Wx::wxALIGN_CENTER_VERTICAL );
112
 
        $but_s->Add( $self->{search}, 1, Wx::wxALIGN_LEFT | Wx::wxALIGN_CENTER_VERTICAL );
 
111
        $but_s->Add( $label,          0, Wx::ALIGN_CENTER_VERTICAL );
 
112
        $but_s->Add( $self->{search}, 1, Wx::ALIGN_LEFT | Wx::ALIGN_CENTER_VERTICAL );
113
113
        $but_s->AddStretchSpacer(2);
114
 
        $but_s->Add( $close_button, 0, Wx::wxALIGN_RIGHT | Wx::wxALIGN_CENTER_VERTICAL );
 
114
        $but_s->Add( $close_button, 0, Wx::ALIGN_RIGHT | Wx::ALIGN_CENTER_VERTICAL );
115
115
 
116
 
        $top_s->Add( $but_s,            0, Wx::wxEXPAND );
117
 
        $top_s->Add( $self->{notebook}, 1, Wx::wxGROW );
 
116
        $top_s->Add( $but_s,            0, Wx::EXPAND );
 
117
        $top_s->Add( $self->{notebook}, 1, Wx::GROW );
118
118
        $self->SetSizer($top_s);
119
119
 
120
120
        #$self->_setup_welcome;
441
441
                $self,
442
442
                sprintf( Wx::gettext("Searched for '%s' and failed..."), $query ),
443
443
                Wx::gettext('Help not found.'),
444
 
                Wx::wxOK | Wx::wxCENTRE | Wx::wxICON_INFORMATION
 
444
                Wx::OK | Wx::CENTRE | Wx::ICON_INFORMATION
445
445
        );
446
446
 
447
447
        $dialog->ShowModal;