From: Elliot Winard Date: Sat, 2 Oct 2010 21:18:05 +0000 (-0400) Subject: add marginalUI spike in perl X-Git-Tag: msva-perl/0.4~15^2~6^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=72f9d5e1c5d1f27245b13eaf8b6b922832470bb6;p=monkeysphere-validation-agent.git add marginalUI spike in perl --- diff --git a/marginalUI.glade b/marginalUI.glade new file mode 100644 index 0000000..fe3bb9e --- /dev/null +++ b/marginalUI.glade @@ -0,0 +1,68 @@ + + + + + + True + 5 + normal + False + + + True + vertical + 2 + + + True + True + + + 1 + + + + + True + end + + + gtk-yes + True + True + True + True + + + + False + False + 0 + + + + + gtk-no + True + True + True + True + + + + False + False + 1 + + + + + False + end + 0 + + + + + + diff --git a/marginalUI.pl b/marginalUI.pl new file mode 100755 index 0000000..0714423 --- /dev/null +++ b/marginalUI.pl @@ -0,0 +1,55 @@ +#!/usr/bin/perl -w + +#---------------------------------------------------------------------- +# marginalUI +# +# TODO: make the $heredoc a fucntion that takes the following args - +# end entity uid - string +# certifiers - list of certifiers +# +#---------------------------------------------------------------------- + +use strict; +use warnings; + +use Gtk2 '-init'; # auto-initializes Gtk2 +use Gtk2::GladeXML; + +my $glade; +my $label; + +# populate UI from +$glade = Gtk2::GladeXML->new("marginalUI.glade"); + +# Connect the signals +$glade->signal_autoconnect_from_package('main'); + +$label = $glade->get_widget('messageLabel'); +my $labeltxt = <<'END'; +pub 4096R/E27BAABC 2007-01-08 [expires: 2012-01-07] +uid [ full ] Jameson Graef Rollins +uid [ full ] Jameson Graef Rollins +uid [ full ] Jameson Graef Rollins +uid [ full ] Jameson Graef Rollins +uid [ full ] Jameson Rollins +uid [ full ] Jameson Graef Rollins +uid [ full ] [jpeg image of size 4097] +uid [marginal] Jameson Rollins +sub 4096R/1321E689 2007-01-09 [expires: 2012-01-08] +sub 2048R/4414A10A 2008-06-18 [expires: 2013-06-17] + +Do you trust this dude? +END +$label->set_text($labeltxt); + +# Start it up +Gtk2->main; + +exit 0; + +sub on_yesButton_clicked { + exit 0; +} +sub on_noButton_clicked { + exit 1; +}