circle-fe-gtk-0.173170000755001750001750 013202636540 13112 5ustar00leoleo000000000000circle-fe-gtk-0.173170/Build.PL000444001750001750 122413202636540 14542 0ustar00leoleo000000000000use strict; use warnings; use Module::Build; my $build = Module::Build->new( module_name => 'Circle::FE::Gtk', dist_name => 'circle-fe-gtk', requires => { 'Glib' => 0, 'Gtk2' => 0, 'IO::Async' => '0.14', 'IO::Async::Loop::Glib' => 0, 'Module::Pluggable' => 0, 'Net::Async::Tangence::Client' => '0.13', 'Tangence::ObjectProxy' => '0.18', }, auto_configure_requires => 0, # Don't add M::B to configure_requires share_dir => { dist => "share", }, license => 'perl', create_makefile_pl => 'traditional', create_license => 1, create_readme => 1, ); $build->create_build_script; circle-fe-gtk-0.173170/Changes000444001750001750 147213202636540 14546 0ustar00leoleo000000000000Revision history for Circle::FE::Gtk 0.173170 2017-11-14 18:57:45 [CHANGES] * Fixes for new Net::Async::Tangence 0.13 Future-returning API (RT123626) * Declare dependency on Module::Pluggable (RT123627) 0.130560 CHANGES: * Switched to date-based version numbering scheme http://rjbs.manxome.org/rubric/entry/1749 * Updates for Tangence 0.18 * Use recent circle-be's new $moder argument to irc.mode 0.04 CHANGES: * Use strftime from (core) POSIX rather than Date::Format * Install circle-fe-gtk.theme using File::ShareDir 0.03 CHANGES: * Updated for Net::Async::Tangence 0.08 so it actually works 0.02 CHANGES: * Updated for Tangence 0.03 0.01 First version, released on an unsuspecting world. circle-fe-gtk-0.173170/LICENSE000444001750001750 4376213202636540 14310 0ustar00leoleo000000000000This software is copyright (c) 2017 by Paul Evans . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2017 by Paul Evans . This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2017 by Paul Evans . This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End circle-fe-gtk-0.173170/MANIFEST000444001750001750 52113202636540 14356 0ustar00leoleo000000000000bin/circle-fe-gtk Build.PL Changes circle-fe-gtk go lib/Circle/FE/Gtk.pm lib/Circle/FE/Gtk/Tab.pm lib/Circle/FE/Gtk/Widget/Box.pm lib/Circle/FE/Gtk/Widget/Entry.pm lib/Circle/FE/Gtk/Widget/Label.pm lib/Circle/FE/Gtk/Widget/Scroller.pm MANIFEST This list of files share/circle-fe-gtk.theme Makefile.PL README LICENSE META.yml META.json circle-fe-gtk-0.173170/META.json000444001750001750 316113202636540 14671 0ustar00leoleo000000000000{ "abstract" : "L frontend for the C application host", "author" : [ "Paul Evans " ], "dynamic_config" : 1, "generated_by" : "Module::Build version 0.4224", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "circle-fe-gtk", "prereqs" : { "runtime" : { "requires" : { "File::ShareDir" : "1.00", "Glib" : "0", "Gtk2" : "0", "IO::Async" : "0.14", "IO::Async::Loop::Glib" : "0", "Module::Pluggable" : "0", "Net::Async::Tangence::Client" : "0.13", "Tangence::ObjectProxy" : "0.18" } } }, "provides" : { "Circle::FE::Gtk" : { "file" : "lib/Circle/FE/Gtk.pm", "version" : "0.173170" }, "Circle::FE::Gtk::Tab" : { "file" : "lib/Circle/FE/Gtk/Tab.pm" }, "Circle::FE::Gtk::Widget::Box" : { "file" : "lib/Circle/FE/Gtk/Widget/Box.pm" }, "Circle::FE::Gtk::Widget::Entry" : { "file" : "lib/Circle/FE/Gtk/Widget/Entry.pm" }, "Circle::FE::Gtk::Widget::Label" : { "file" : "lib/Circle/FE/Gtk/Widget/Label.pm" }, "Circle::FE::Gtk::Widget::Scroller" : { "file" : "lib/Circle/FE/Gtk/Widget/Scroller.pm" } }, "release_status" : "stable", "resources" : { "license" : [ "http://dev.perl.org/licenses/" ] }, "version" : "0.173170", "x_serialization_backend" : "JSON::PP version 2.27400_02" } circle-fe-gtk-0.173170/META.yml000444001750001750 220413202636540 14516 0ustar00leoleo000000000000--- abstract: 'L frontend for the C application host' author: - 'Paul Evans ' build_requires: {} dynamic_config: 1 generated_by: 'Module::Build version 0.4224, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: circle-fe-gtk provides: Circle::FE::Gtk: file: lib/Circle/FE/Gtk.pm version: '0.173170' Circle::FE::Gtk::Tab: file: lib/Circle/FE/Gtk/Tab.pm Circle::FE::Gtk::Widget::Box: file: lib/Circle/FE/Gtk/Widget/Box.pm Circle::FE::Gtk::Widget::Entry: file: lib/Circle/FE/Gtk/Widget/Entry.pm Circle::FE::Gtk::Widget::Label: file: lib/Circle/FE/Gtk/Widget/Label.pm Circle::FE::Gtk::Widget::Scroller: file: lib/Circle/FE/Gtk/Widget/Scroller.pm requires: File::ShareDir: '1.00' Glib: '0' Gtk2: '0' IO::Async: '0.14' IO::Async::Loop::Glib: '0' Module::Pluggable: '0' Net::Async::Tangence::Client: '0.13' Tangence::ObjectProxy: '0.18' resources: license: http://dev.perl.org/licenses/ version: '0.173170' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' circle-fe-gtk-0.173170/Makefile.PL000444001750001750 132113202636540 15216 0ustar00leoleo000000000000# Note: this file was auto-generated by Module::Build::Compat version 0.4224 use ExtUtils::MakeMaker; WriteMakefile ( 'NAME' => 'Circle::FE::Gtk', 'VERSION_FROM' => 'lib/Circle/FE/Gtk.pm', 'PREREQ_PM' => { 'File::ShareDir' => '1.00', 'Glib' => 0, 'Gtk2' => 0, 'IO::Async' => '0.14', 'IO::Async::Loop::Glib' => 0, 'Module::Pluggable' => 0, 'Net::Async::Tangence::Client' => '0.13', 'Tangence::ObjectProxy' => '0.18' }, 'INSTALLDIRS' => 'site', 'EXE_FILES' => [ 'bin/circle-fe-gtk' ], 'PL_FILES' => {} ) ; circle-fe-gtk-0.173170/README000444001750001750 17413202636540 14111 0ustar00leoleo000000000000NAME Circle::FE::Gtk - Gtk2 frontend for the Circle application host AUTHOR Paul Evans circle-fe-gtk-0.173170/circle-fe-gtk000555001750001750 7213202636540 15550 0ustar00leoleo000000000000#!/bin/sh exec perl -Mblib blib/script/circle-fe-gtk "$@" circle-fe-gtk-0.173170/go000555001750001750 10113202636540 13552 0ustar00leoleo000000000000#!/bin/sh ./circle-fe-gtk sshunix://$1/var/run/circle.sock "$@" circle-fe-gtk-0.173170/bin000755001750001750 013202636540 13662 5ustar00leoleo000000000000circle-fe-gtk-0.173170/bin/circle-fe-gtk000555001750001750 1550413202636540 16406 0ustar00leoleo000000000000#!/usr/bin/perl -w # You may distribute under the terms of the GNU General Public License # # (C) Paul Evans, 2008-2013 -- leonerd@leonerd.org.uk use strict; use warnings; use Glib qw( TRUE FALSE ); use Gtk2 qw( init ); use Net::Async::Tangence::Client 0.13; # Future-returning API use Variable::Disposition qw( retain_future ); use Circle::FE::Gtk::Tab; use IO::Async 0.14; use IO::Async::Loop::Glib; use Getopt::Long; use List::Util qw( max first ); my $accelgrp; sub setup_menu { my ( $menushell, $items ) = @_; foreach my $i ( 0 .. $#$items/2 ) { my ( $name, $ref ) = @{$items}[$i*2, $i*2+1]; my $code; my $subitems; my $accelpath; my ( $accelkey, $accelmod ); if( ref $ref eq "HASH" ) { $code = $ref->{code}; $subitems = $ref->{subitems}; $accelpath = "/$ref->{accelpath}"; $accelkey = Gtk2::Gdk->keyval_from_name( $ref->{keyname} ); $accelmod = $ref->{mod}; } elsif( ref $ref eq "CODE" ) { $code = $ref; } elsif( ref $ref eq "ARRAY" ) { $subitems = $ref; } my $mi = Gtk2::MenuItem->new( $name ); if( defined $accelpath ) { if( defined $accelkey and defined $accelmod ) { Gtk2::AccelMap->add_entry( $accelpath, $accelkey, $accelmod ); } $mi->set_accel_path( $accelpath ); } if( $code ) { $mi->signal_connect( activate => $code ); } elsif( $subitems ) { my $submenu = Gtk2::Menu->new(); $mi->set_submenu( $submenu ); $submenu->set_accel_group( $accelgrp ); setup_menu( $submenu, $subitems ); } $menushell->append( $mi ); } } my $loop = IO::Async::Loop::Glib->new(); my $IDENTITY; GetOptions( 'identity|i=s' => \$IDENTITY, ) or exit 1; my $URL = shift @ARGV or die "Need URL as argv[1]\n"; if( !defined $IDENTITY ) { my $hostname = `hostname -f`; chomp $hostname; $IDENTITY = $ENV{USER} . "@" . $hostname . "/GTK2"; } my $conn = Net::Async::Tangence::Client->new( identity => $IDENTITY, on_closed => sub { print STDERR "Connection closed\n"; exit(0); }, on_error => sub { print STDERR "Received MSG_ERROR: $_[0]\n"; }, ); $loop->add( $conn ); my $mainwin = Gtk2::Window->new(); $mainwin->set_title( "Circle" ); $mainwin->signal_connect( 'delete-event' => sub { $loop->loop_stop; } ); $accelgrp = Gtk2::AccelGroup->new(); $mainwin->add_accel_group( $accelgrp ); my $top_vbox = Gtk2::VBox->new(); $mainwin->add( $top_vbox ); my $menu = Gtk2::MenuBar->new(); $top_vbox->pack_start( $menu, FALSE, TRUE, 0 ); setup_menu( $menu, [ "Circle" => [ "Quit" => sub { $loop->loop_stop }, ], "Tab" => Circle::FE::Gtk::Tab::gen_menu(), ] ); my $notebook = Gtk2::Notebook->new(); $top_vbox->pack_start( $notebook, TRUE, TRUE, 0 ); $notebook->set_tab_pos( 'bottom' ); $notebook->can_focus( FALSE ); my $surpress_switch_page = 0; my @tabs; $notebook->signal_connect( 'switch-page' => sub { my ( undef, $page, $pagenum ) = @_; return if $surpress_switch_page; my $tab = $Circle::FE::Gtk::Tab::current_tab = $tabs[$pagenum]; $tab->activated; return 1; # Again again... } ); my $tabkeys = "1234567890". "qwertyuiop". "sdfghjkl;'". "zxcvbnm,./"; $notebook->signal_connect( 'key-press-event' => sub { my ( undef, $event ) = @_; my $key = $event->keyval; my $mod = $event->state & [ 'shift-mask', 'control-mask', 'mod1-mask' ]; if( $key == ord("a") and $mod == 'mod1-mask' ) { activate_next_active_tab(); return 1; } elsif( $key < 128 and $mod == 'mod1-mask' and ( my $pagenum = index( $tabkeys, chr($key) ) ) > -1 ) { $notebook->set( "page", $pagenum ); } return 0; } ); my $f = $conn->connect_url( $URL ); $mainwin->show_all; $f->get; my $rootobj; $loop->loop_once until $rootobj = $conn->rootobj; my $session = $rootobj->call_method( get_session => [qw( tabs )], )->get; $session->watch_property_with_initial( 'tabs', on_set => sub { my ( $objarray ) = @_; # A bug in GTK perhaps? If there's no current page # selected before we add any, then every page gets the # 'switch-page' signal fired on it when we add them. my $old_surpress_switch_page = $surpress_switch_page; $surpress_switch_page = 1 if $notebook->get_current_page == -1; $notebook->remove_page( 0 ) while $notebook->get_n_pages > 0; @tabs = (); foreach my $obj ( @$objarray ) { my $tab = new_tab( $obj ); $notebook->append_page( $tab->get_widget, $tab->get_label ); push @tabs, $tab; } $surpress_switch_page = $old_surpress_switch_page; $notebook->show_all; }, on_push => sub { my ( @new ) = @_; foreach my $obj ( @new ) { my $tab = new_tab( $obj ); $notebook->append_page( $tab->get_widget, $tab->get_label ); push @tabs, $tab; } $notebook->show_all; }, on_shift => sub { my ( $count ) = @_; # Unlikely to actually be used, but we'll implement it anyway $notebook->remove_page( 0 ) for 1 .. $count; shift @tabs; }, on_splice => sub { my ( $index, $count, @objs ) = @_; $notebook->remove_page( $index ) for 1 .. $count; my @newtabs; foreach my $i ( 0 .. $#objs ) { my $tab = new_tab( $objs[$i] ); $notebook->insert_page( $tab->get_widget, $tab->get_label, $index + $i ); push @newtabs, $tab; } splice @tabs, $index, $count, @newtabs; $notebook->show_all; }, on_move => sub { my ( $index, $delta ) = @_; $notebook->reorder_child( $tabs[$index]->get_widget, $index + $delta ); splice @tabs, $index+$delta, 0, ( splice @tabs, $index, 1, () ); }, )->get; $loop->run; sub new_tab { my ( $obj ) = @_; my $tab = Circle::FE::Gtk::Tab->new( object => $obj, ); if( $obj->proxy_isa( "Circle.RootObj") ) { $tab->set_label_text( "Global" ); } else { retain_future $obj->watch_property_with_initial( 'tag', on_set => sub { my ( $newtag ) = @_; $tab->set_label_text( $newtag ); }, ); } my $widget = $tab->get_widget; retain_future $obj->subscribe_event( 'destroy', on_fire => sub { while( ( my $pagenum = $notebook->page_num( $widget ) ) > -1 ) { $notebook->remove_page( $pagenum ); } } ); return $tab; } sub activate_next_active_tab { my @otherindexes = ( $notebook->get("page") + 1 .. $#tabs, 0 .. $notebook->get("page") - 1 ); my $maxlevel = max map { $tabs[$_]->{object}->prop("level") } @otherindexes; return unless $maxlevel; my $next = first { $tabs[$_]->{object}->prop("level") == $maxlevel } @otherindexes; $notebook->set( "page", $next ); } circle-fe-gtk-0.173170/lib000755001750001750 013202636540 13660 5ustar00leoleo000000000000circle-fe-gtk-0.173170/lib/Circle000755001750001750 013202636540 15061 5ustar00leoleo000000000000circle-fe-gtk-0.173170/lib/Circle/FE000755001750001750 013202636540 15353 5ustar00leoleo000000000000circle-fe-gtk-0.173170/lib/Circle/FE/Gtk.pm000444001750001750 55213202636540 16555 0ustar00leoleo000000000000# You may distribute under the terms of the GNU General Public License # # (C) Paul Evans, 2008-2010 -- leonerd@leonerd.org.uk package Circle::FE::Gtk; use strict; use warnings; our $VERSION = '0.173170'; 1; __END__ =head1 NAME C - L frontend for the C application host =head1 AUTHOR Paul Evans circle-fe-gtk-0.173170/lib/Circle/FE/Gtk000755001750001750 013202636540 16100 5ustar00leoleo000000000000circle-fe-gtk-0.173170/lib/Circle/FE/Gtk/Tab.pm000444001750001750 1045213202636540 17323 0ustar00leoleo000000000000# You may distribute under the terms of the GNU General Public License # # (C) Paul Evans, 2008-2013 -- leonerd@leonerd.org.uk package Circle::FE::Gtk::Tab; use strict; use warnings; use Glib qw( TRUE FALSE ); use File::ShareDir qw( dist_file ); use Variable::Disposition qw( retain_future ); use Module::Pluggable search_path => "Circle::FE::Gtk::Widget", sub_name => "widgets", require => 1; our $current_tab; sub gen_menu { return [ 'Scroll to Top' => { accelpath => 'Tab/Scroll to Top', keyname => 'Home', mod => ['control-mask'], code => sub { $current_tab->scroll('top') }, }, 'Scroll to Bottom' => { accelpath => 'Tab/Scroll to Bottom', keyname => 'End', mod => ['control-mask'], code => sub { $current_tab->scroll('bottom') }, }, 'Scroll Up' => { accelpath => 'Tab/Scroll Up', keyname => 'Page_Up', mod => [], code => sub { $current_tab->scroll('up') }, }, 'Scroll Down' => { accelpath => 'Tab/Scroll Down', keyname => 'Page_Down', mod => [], code => sub { $current_tab->scroll('down') }, }, ]; } sub new { my $class = shift; my %args = @_; my $object = $args{object}; my $self = bless { object => $object, root => Gtk2::VBox->new(), }, $class; retain_future $object->call_method( get_widget => () )->on_done(sub { $self->{root}->add( $self->build_widget( $_[0] ) ); $self->{root}->show_all; }); return $self; } sub get_widget { my $self = shift; return $self->{root}; } sub build_widget { my $self = shift; my ( $obj ) = @_; foreach my $type ( widgets ) { next unless $obj->proxy_isa( "Circle.Widget." . $type->type ); return $type->build( $obj, $self ); } die "Cannot build widget for $obj as I don't recognise its type\n"; } sub get_font { my $self = shift; return Gtk2::Pango::FontDescription->from_string( $self->get_theme_var( "font" ) ); } sub get_label { my $self = shift; return $self->{label} if defined $self->{label}; my $label = $self->{label} = Gtk2::Label->new(""); my $object = $self->{object}; retain_future $object->watch_property_with_initial( "level", on_set => sub { my ( $level ) = @_; $label->modify_fg( $_ => $self->get_theme_colour( "level$level" ) ) for qw( normal active ); }, ); return $label; } sub set_label_text { my $self = shift; my ( $text ) = @_; $self->get_label->set_text( $text ); } sub activated { my $self = shift; my $object = $self->{object}; if( $object->prop("level") > 0 ) { retain_future $object->call_method( reset_level => () ); } } sub scroll { my $self = shift; $self->{scroller}->scroll( @_ ) if $self->{scroller}; } # Now read the theme my %theme_vars; { my $theme_filename; foreach ( $ENV{CIRCLE_FE_GTK_THEME}, "$ENV{HOME}/.circle-fe-gtk.theme", dist_file( "circle-fe-gtk", "circle-fe-gtk.theme" ) ) { defined $_ or next; -e $_ or next; $theme_filename = $_; last; } defined $theme_filename or die "Cannot find a circle-fe-gtk.theme"; open( my $themefh, "<", $theme_filename ) or die "Cannot read $theme_filename - $!"; while( <$themefh> ) { m/^\s*#/ and next; # skip comments m/^\s*$/ and next; # skip blanks m/^(\S*)=(.*)$/ and $theme_vars{$1} = $2, next; print STDERR "Unrecognised theme line: $_"; } } sub get_theme_var { my $class = shift; my ( $varname ) = @_; return $theme_vars{$varname} if exists $theme_vars{$varname}; print STDERR "No such theme variable $varname\n"; return undef; } sub translate_theme_colour { my $class = shift; my ( $colourname ) = @_; return $colourname if $colourname =~ m/^#/; # Literal #rrggbb return $theme_vars{$colourname} if exists $theme_vars{$colourname}; # hope print STDERR "No such theme colour $colourname\n"; return undef; } sub get_theme_colour { my $class = shift; my ( $varname ) = @_; return Gtk2::Gdk::Color->parse( $theme_vars{$varname} ) if exists $theme_vars{$varname}; print STDERR "No such theme variable $varname for a colour\n"; return undef; } 1; circle-fe-gtk-0.173170/lib/Circle/FE/Gtk/Widget000755001750001750 013202636540 17323 5ustar00leoleo000000000000circle-fe-gtk-0.173170/lib/Circle/FE/Gtk/Widget/Box.pm000444001750001750 232413202636540 20547 0ustar00leoleo000000000000# You may distribute under the terms of the GNU General Public License # # (C) Paul Evans, 2008-2010 -- leonerd@leonerd.org.uk package Circle::FE::Gtk::Widget::Box; use strict; use warnings; use constant type => "Box"; use Glib qw( TRUE FALSE ); sub build { my $class = shift; my ( $obj, $tab ) = @_; my $orientation = $obj->prop("orientation"); my $widget; if( $orientation eq "vertical" ) { $widget = Gtk2::VBox->new(); } elsif( $orientation eq "horizontal" ) { $widget = Gtk2::HBox->new(); } else { die "Unrecognised orientation '$orientation'"; } my $do_end; foreach my $c ( @{ $obj->prop("children") } ) { if( $c->{child} ) { my $childwidget = $tab->build_widget( $c->{child} ); $widget->pack_start( $childwidget, $c->{expand}, $c->{expand}, 0 ); } else { # Ah.. Here's a spacer. $do_end = 1; last; } } if( $do_end ) { foreach my $c ( reverse @{ $obj->prop("children") } ) { last unless $c->{child}; my $childwidget = $tab->build_widget( $c->{child} ); $widget->pack_end( $childwidget, $c->{expand}, $c->{expand}, 0 ); } } return $widget; } 1; circle-fe-gtk-0.173170/lib/Circle/FE/Gtk/Widget/Entry.pm000444001750001750 527513202636540 21130 0ustar00leoleo000000000000# You may distribute under the terms of the GNU General Public License # # (C) Paul Evans, 2008-2010 -- leonerd@leonerd.org.uk package Circle::FE::Gtk::Widget::Entry; use strict; use warnings; use Variable::Disposition qw( retain_future ); use constant type => "Entry"; use Gtk2::Gdk::Keysyms; sub build { my $class = shift; my ( $obj, $tab ) = @_; my $tabobj = $tab->{object}; my $widget = Gtk2::Entry->new(); retain_future $obj->watch_property_with_initial( "text", on_set => sub { my ( $text ) = @_; $text = "" unless defined $text; $widget->set_text( $text ); }, ); retain_future $obj->watch_property_with_initial( "history", on_updated => sub {}, # We ignore this, we just want a local cache ); my $autoclear = $obj->prop("autoclear"); my $history_index; $widget->signal_connect( activate => sub { retain_future $obj->call_method( enter => $widget->get_text, ); $widget->set_text( "" ) if $autoclear; undef $history_index; }, ); $widget->signal_connect( key_press_event => sub { my ( undef, $event ) = @_; if( $event->keyval == $Gtk2::Gdk::Keysyms{Up} ) { my $history = $obj->prop("history"); if( !defined $history_index ) { return 1 unless @$history; $history_index = $#$history; } elsif( $history_index == 0 ) { # Don't move return 1; } else { $history_index--; } my $line = $history->[$history_index]; $widget->set_text( $line ); $widget->set_position( -1 ); return 1; } elsif( $event->keyval == $Gtk2::Gdk::Keysyms{Down} ) { my $history = $obj->prop("history"); return 1 unless defined $history_index; if( $history_index < $#$history ) { $history_index++; } else { $widget->set_text( "" ); undef $history_index; return 1; } my $line = $history->[$history_index]; $widget->set_text( $line ); $widget->set_position( -1 ); return 1; } $tab->activated; return 0; } ); $widget->modify_font( $tab->get_font ); $widget->modify_base( normal => $tab->get_theme_colour( "bgcolor" ) ); $widget->modify_text( normal => $tab->get_theme_colour( "textcolor" ) ); if( $obj->prop("focussed") ) { $widget->signal_connect( realize => sub { $widget->grab_focus; } ); } return $widget; } 1; circle-fe-gtk-0.173170/lib/Circle/FE/Gtk/Widget/Label.pm000444001750001750 101613202636540 21033 0ustar00leoleo000000000000# You may distribute under the terms of the GNU General Public License # # (C) Paul Evans, 2008-2010 -- leonerd@leonerd.org.uk package Circle::FE::Gtk::Widget::Label; use strict; use warnings; use constant type => "Label"; use Variable::Disposition qw( retain_future ); sub build { my $class = shift; my ( $obj, $tab ) = @_; my $widget = Gtk2::Label->new(""); retain_future $obj->watch_property_with_initial( "text", on_set => sub { $widget->set_text( $_[0] ) }, ); return $widget; } 1; circle-fe-gtk-0.173170/lib/Circle/FE/Gtk/Widget/Scroller.pm000444001750001750 2117113202636540 21625 0ustar00leoleo000000000000# You may distribute under the terms of the GNU General Public License # # (C) Paul Evans, 2008-2010 -- leonerd@leonerd.org.uk package Circle::FE::Gtk::Widget::Scroller; use strict; use warnings; use constant type => "Scroller"; use Variable::Disposition qw( retain_future ); use Glib qw( TRUE FALSE ); use POSIX qw( strftime ); use Text::Balanced qw( extract_bracketed ); # The perl bindings don't make this very easy use constant PANGO_WEIGHT_BOLD => 700; sub build { my $class = shift; my ( $obj, $tab ) = @_; my $widget = Gtk2::ScrolledWindow->new(); $widget->set_policy( 'never', 'always' ); my $textview = Gtk2::TextView->new(); $widget->add( $textview ); $textview->set_editable( FALSE ); $textview->set_cursor_visible( FALSE ); $textview->set_wrap_mode( 'word-char' ); $textview->set_indent( -50 ); $textview->modify_font( $tab->get_font ); $textview->modify_base( normal => $tab->get_theme_colour( "bgcolor" ) ); $textview->modify_text( normal => $tab->get_theme_colour( "textcolor" ) ); my $buffer = $textview->get_buffer; my $self = bless { tab => $tab, textview => $textview, textbuffer => $buffer, scrollwindow => $widget, last_datestamp => "", linestarts => [], }; $tab->{scroller} = $self; $self->{start_para_mark} = $buffer->create_mark( "start_para", $buffer->get_end_iter, TRUE ); my $endmark = $buffer->create_mark( "end", $buffer->get_end_iter, FALSE ); retain_future $obj->watch_property_with_initial( "displayevents", on_set => sub { $textview->set_buffer( Gtk2::TextBuffer->new( $buffer->get_tag_table ) ); $self->append_event( $_ ) for @{ $_[0] }; $textview->set_buffer( $buffer ); $textview->scroll_mark_onscreen( $endmark ); }, on_push => sub { my $at_end = $self->at_end; $self->append_event( $_ ) for @_; $textview->scroll_mark_onscreen( $endmark ) if $at_end; }, on_shift => sub { $self->shift_events( $_[0] ); }, on_splice => sub { 'TODO' }, ); return $widget; } # Helper "methods" sub apply_format_colour { my $self = shift; my ( $tags, $attr, $colour ) = @_; @$tags = grep { !$_->get( "$attr-set" ) } @$tags; push @$tags, $self->{$attr . "tags"}->{$colour} ||= $self->{textbuffer}->create_tag( undef, $attr => $colour, ); } my %format_attrs = ( bold => [ weight => PANGO_WEIGHT_BOLD ], italic => [ style => 'italic' ], underline => [ underline => 'single' ], ); sub apply_format_simple { my $self = shift; my ( $tags, $name ) = @_; my ( $attr, $value ) = @{ $format_attrs{$name} }; @$tags = grep { !$_->get( "$attr-set" ) } @$tags; push @$tags, $self->{simpletags}->{$name} ||= $self->{textbuffer}->create_tag( undef, $attr => $value, ); } sub apply_indent { my $self = shift; my $buffer = $self->{textbuffer}; my $end = $buffer->get_end_iter; my $start_para = $buffer->get_iter_at_mark( $self->{start_para_mark} ); my $text = $buffer->get_text( $start_para, $end, FALSE ); my $layout = Gtk2::Pango::Layout->new( $self->{textview}->get_pango_context ); $layout->set_text( $text ); my ( $ink_rect, $logical_rect ) = $layout->get_pixel_extents; my $width = $logical_rect->{width}; my $tag = $buffer->create_tag( undef, indent => -$width ); $buffer->apply_tag( $tag, $start_para, $end ); } sub _append_formatted_inner { my $self = shift; my ( $format, $args, $enditer, $buffer, $tags ) = @_; my $tab = $self->{tab}; while( length $format ) { if( $format =~ s/^\$(\w+)// ) { my $val = exists $args->{$1} ? $args->{$1} : ""; defined $val or $val = ""; my @parts = ref $val eq "ARRAY" ? @$val : ( $val ); foreach my $part ( @parts ) { my ( $text, %format ) = ref $part eq "ARRAY" ? @$part : ( $part ); my @parttags = @$tags; foreach my $a ( keys %format ) { $self->apply_format_colour( \@parttags, foreground => $tab->translate_theme_colour( $format{fg} ) ), next if $a eq "fg"; $self->apply_format_colour( \@parttags, background => $tab->translate_theme_colour( $format{bg} ) ), next if $a eq "bg"; $self->apply_format_simple( \@parttags, 'bold' ), next if $a eq "b"; $self->apply_format_simple( \@parttags, 'italic' ), next if $a eq "i"; $self->apply_format_simple( \@parttags, 'underline' ), next if $a eq "u"; $self->apply_indent, next if $a eq "indent"; print STDERR "Unhandled BE attr $a\n"; } $buffer->insert_with_tags( $enditer, $text, @parttags ); } } elsif( $format =~ m/^\{/ ) { my $piece = extract_bracketed( $format, "{}" ); s/^{//, s/}$// for $piece; if( $piece =~ m/ / ) { my ( $code, $content ) = split( m/ /, $piece, 2 ); my @newtags = @$tags; my ( $type, $arg ) = split( m/:/, $code, 2 ); # Fake switch-alike for my $a ( $type ) { $self->apply_format_colour( \@newtags, foreground => $arg ), next if $a eq "fg"; $self->apply_format_colour( \@newtags, background => $arg ), next if $a eq "bg"; $self->apply_format_simple( \@newtags, 'bold' ), next if $a eq "b"; $self->apply_format_simple( \@newtags, 'italic' ), next if $a eq "i"; $self->apply_format_simple( \@newtags, 'underline' ), next if $a eq "u"; $self->apply_indent, next if $a eq "indent"; print STDERR "Unrecognised format code $a\n"; } $self->_append_formatted_inner( $content, $args, $enditer, $buffer, \@newtags ); } else { $self->_append_formatted_inner( $piece, $args, $enditer, $buffer, $tags ); } } else { $format =~ s/^([^\$\{]+)//; my $val = $1; $buffer->insert_with_tags( $enditer, $val, @$tags ); } } } sub append_formatted { my $self = shift; my ( $format, $args ) = @_; my $buffer = $self->{textbuffer}; my $enditer = $buffer->get_end_iter; $buffer->move_mark( $self->{start_para_mark}, $buffer->get_end_iter ); $self->_append_formatted_inner( $format, $args, $enditer, $buffer, [] ); } sub append_event { my $self = shift; my ( $ev ) = @_; my ( $event, $time, $args ) = @$ev; my $tab = $self->{tab}; my @time = localtime( $time ); my $datestamp = strftime( $tab->get_theme_var( "datestamp" ), @time ); my $timestamp = strftime( $tab->get_theme_var( "timestamp" ), @time ); my $buffer = $self->{textbuffer}; if( $buffer->get_line_count > 1 or $buffer->get_text( $buffer->get_start_iter, $buffer->get_end_iter, TRUE ) ne "" ) { $buffer->insert( $buffer->get_end_iter, "\n" ); } push @{ $self->{linestarts} }, $buffer->create_mark( undef, $buffer->get_end_iter, TRUE ); if( $datestamp ne $self->{last_datestamp} ) { $self->append_formatted( $tab->get_theme_var( "datemessage" ) . "\n", { datestamp => $datestamp } ); $self->{last_datestamp} = $datestamp; } my $format = $tab->get_theme_var( $event ); defined $format or $format = "No format defined for event $event"; $self->append_formatted( $timestamp . $format, $args ); } sub shift_events { my $self = shift; my ( $howmany ) = @_; defined $howmany or $howmany = 1; my $buffer = $self->{textbuffer}; my $start = $buffer->get_start_iter; my $end = $howmany < @{ $self->{linestarts} } ? $buffer->get_iter_at_mark( $self->{linestarts}->[$howmany] ) : $buffer->get_end_iter; $buffer->delete( $start, $end ); my @deleted_marks = splice @{ $self->{linestarts} }, 0, $howmany, (); $buffer->delete_mark( $_ ) for @deleted_marks; } sub scroll { my $self = shift; my ( $dir ) = @_; my $adj = $self->{scrollwindow}->get_vadjustment; if( $dir eq 'up' ) { $adj->set_value( $adj->value - $adj->page_increment ); } elsif( $dir eq 'down' ) { my $newval = $adj->value + $adj->page_increment; my $max = $adj->upper - $adj->page_size; # Check we don't go too far $newval = $max if $newval > $max; $adj->set_value( $newval ); } elsif( $dir eq 'top' ) { $adj->set_value( $adj->lower ); } elsif( $dir eq 'bottom' ) { $adj->set_value( $adj->upper - $adj->page_size ); } } sub at_end { my $self = shift; my $adj = $self->{scrollwindow}->get_vadjustment; return $adj->get_value == $adj->upper - $adj->page_size; } 1; circle-fe-gtk-0.173170/share000755001750001750 013202636540 14214 5ustar00leoleo000000000000circle-fe-gtk-0.173170/share/circle-fe-gtk.theme000444001750001750 450013202636540 20010 0ustar00leoleo000000000000font=Monospace 9 #font=Sans 9 textcolor=grey80 bgcolor=black level0=black level1=brown level2=red level3=#4070ff highlight=yellow #RRGGBB ansi.col00=#000000 ansi.col01=#990000 ansi.col02=#00bb00 ansi.col03=#bbbb00 ansi.col04=#0000ff ansi.col05=#bb00bb ansi.col06=#00bbbb ansi.col07=#999999 ansi.col08=#606060 ansi.col09=#ff0000 ansi.col10=#00ff00 ansi.col11=#ffff00 ansi.col12=#6868ff ansi.col13=#ff00ff ansi.col14=#00ffff ansi.col15=#ffffff timestamp={fg:#55F ({fg:#0BB %H:%M})} datestamp=%Y/%m/%d datemessage={fg:#55F ({fg:#0BB --:--})} {indent Day is now $datestamp} # Generic events response={fg:white -{fg:blue !}-} {indent $text} warning={fg:white -{fg:#FB2 {b !}}-} {fg:#FB2 {indent $text}} error={fg:white -{fg:red {b !}}-} {bg:#B33 {fg:black $text}} status={fg:white -{fg:green {b *}}-} {indent $text} text=$text # IRC events irc.irc={fg:red <$prefix>} $command $args irc.text={fg:darkcyan -{fg:white $server}-} $text irc.motd={fg:blue MOTD:} $text irc.join={fg:#0B0 ***} {fg:#5F5 Joins:} {indent }{fg:#0BB $nick} {fg:#606060 [{fg:#55F $userhost}]} has joined {fg:#5F5 $channel} irc.part={fg:#806000 ***} {fg:#FB3 Parts:} {indent }{fg:#0BB $nick} {fg:#606060 [{fg:#55F $userhost}]} has left {fg:#5F5 $channel} ({i $partmsg}) irc.kick={fg:#806000 ***} {fg:#FB3 Kicks:} {indent }{fg:#0BB $kicked} {fg:#606060 [{fg:#55F kickeduser@kickedhost}]} was kicked from {fg:#5F5 $channel} by {fg:#55F $kicker} ({i $kickmsg}) irc.quit={fg:#B00 ***} {fg:#F55 Quits:} {indent }{fg:#0BB $nick} {fg:#606060 [{fg:#55F $userhost}]} ({i $quitmsg}) irc.nick={fg:#0BB ***} {fg:#5FF $oldnick} is now known as {fg:#5FF $newnick} irc.topic={fg:#55F ***} {fg:#0BB {fg:#5FF Topic} change by {fg:#5FF $nick} on {fg:#5F5 $channel}:} {indent $topic} irc.topic_is={fg:#55F ***} {fg:#0BB {fg:#5FF Topic} on {fg:#5F5 $channel} is:} {indent $topic} irc.topic_by={fg:#55F ***} {fg:#0BB {fg:#5FF Topic} on {fg:#5F5 $channel} set by {fg:#55F $topic_by} on $timestamp} irc.mode={fg:#0BB ***} {fg:#5FF Mode} change for {fg:#5F5 $channel} by {fg:#5FF $moder}: {fg:#5FF $mode} irc.mode_is={fg:#0BB ***} {fg:#5FF Mode} for {fg:#5F5 $channel}: {indent }{fg:#5FF $mode} irc.msg={fg:#B6B <{fg:white $nick}>} {indent $text} irc.notice={fg:white -{fg:#B6B $nick}-} {indent $text} irc.act={fg:#B6B * $nick} {indent $text} irc.away={fg:#088 ***} {fg:#299 $nick} {fg:#999 is away:} {indent $text}