Changeset 5597
- Timestamp:
- 06/26/09 07:52:29 (3 years ago)
- Location:
- trunk/Padre-Plugin-Swarm
- Files:
-
- 6 added
- 2 edited
-
lib/Padre/Plugin/Swarm.pm (modified) (9 diffs)
-
lib/Padre/Swarm/Service (added)
-
lib/Padre/Swarm/Service/Chat.pm (added)
-
listener.pl (added)
-
share/icons/padre/128x128 (added)
-
share/icons/padre/128x128/status (added)
-
share/icons/padre/128x128/status/padre-plugin-swarm.png (added)
-
share/icons/padre/16x16/status/padre-plugin-swarm.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-Swarm/lib/Padre/Plugin/Swarm.pm
r5596 r5597 8 8 use Padre::Plugin (); 9 9 use Padre::Wx::Icon (); 10 use Padre::Swarm:: Transport::Multicast ();10 use Padre::Swarm::Service::Chat (); 11 11 use File::Spec (); 12 12 … … 15 15 get_config => 'config', 16 16 get_services => 'services', 17 get_transports=>'transports',18 17 } 19 18 , … … 21 20 set_config => 'config', 22 21 set_services=>'services', 23 set_transports=>'transports',24 22 }; 25 23 … … 43 41 'Swarm!'; 44 42 } 43 44 sub plugin_icons_directory { 45 return File::Spec->catdir( shift->plugin_share_directory(@_), 'icons'); 46 } 47 45 48 46 49 sub plugin_icon { … … 53 56 Padre::Wx::Icon::find( 54 57 'status/padre-plugin-swarm', 58 { icons => $class->plugin_icons_directory }, 55 59 ); 56 60 } 61 62 57 63 58 64 sub menu_plugins_simple { … … 69 75 70 76 $self->_load_everything; 71 72 $self->_start_transports;73 77 $self->_start_services; 74 78 … … 79 83 my $self = shift; 80 84 $self->_shutdown_services; 81 $self->_shutdown_transports;82 85 } 83 86 … … 94 97 Surrender to the Swarm! 95 98 END_MESSAGE 96 $about->SetIcon( Padre::Wx::Icon::find( 'status/padre-plugin-swarm' ) ); 99 $about->SetIcon( 100 Padre::Wx::Icon::find( 'status/padre-plugin-swarm', 101 {size => '128x128', icons=>$self->plugin_icons_directory } 102 ) 103 ); 97 104 # Show the About dialog 98 105 Wx::AboutBox($about); … … 109 116 my $config = $self->get_config; 110 117 # TODO bootstrap some config and construct 111 # services/transports. for now just multicast 112 113 $self->set_transports( 114 { 115 Padre::Swarm::Transport::Multicast->transport_name 116 => Padre::Swarm::Transport::Multicast->new 117 } 118 ); 119 118 # services/transports. for now just chat 119 120 my $chat = Padre::Swarm::Service::Chat->new(); 120 121 $self->set_services( 121 122 { 123 $chat->service_name => $chat, 122 124 # Chat, remote cursor/editor damage 123 125 # , watch this space.
Note: See TracChangeset
for help on using the changeset viewer.
