diff --git a/LICENSE b/LICENSE index ea890af..8be3f7c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,11 +1,26 @@ -Copyright (c) . +Copyright (c) 2022, Nekobit -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index 211ea9a..a1a5beb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ -# rDrama-GTK +# rDrama-GTK (or GTKDrama) + +Desktop rDrama client in the Gimped Toolkit. + +# Building + +On a sane Linux distribution, you might find that your distribution provides +perl modules already available for you. On Debian or Debian-like distributions, +you can install the GTK Perl bindings like so: + + # apt install libgtk3-perl libglib-perl + +# Modules + +GTKDrama is written in Perl, and thus, requires that you install some modules. + +If you didn't install `libgtk3-perl` from your distribution, then you can install +it manually. Make sure you have GTK libs installed on your machine. + +(Note: Some modules had to be installed as root) + + $ cpan HTTP::Soup Gtk3 Glib::IO -Desktop rDrama client in the Gimped Toolkit \ No newline at end of file diff --git a/rdrama-gtk.pl b/rdrama-gtk.pl new file mode 100755 index 0000000..3c8d5a5 --- /dev/null +++ b/rdrama-gtk.pl @@ -0,0 +1,19 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use utf8; + +use HTTP::Soup; +use Gtk3 -init; + + +my $builder = Gtk3::Builder->new(); +$builder->add_from_file('ui/main.xml'); + +my $win = $builder->get_object('window'); +$win->set_title('rDrama'); +$win->set_default_size(300, 500); + +$win->show_all; + +Gtk3->main(); diff --git a/src/main.pl b/src/main.pl new file mode 100755 index 0000000..3c8d5a5 --- /dev/null +++ b/src/main.pl @@ -0,0 +1,19 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use utf8; + +use HTTP::Soup; +use Gtk3 -init; + + +my $builder = Gtk3::Builder->new(); +$builder->add_from_file('ui/main.xml'); + +my $win = $builder->get_object('window'); +$win->set_title('rDrama'); +$win->set_default_size(300, 500); + +$win->show_all; + +Gtk3->main(); diff --git a/ui/main.xml b/ui/main.xml new file mode 100644 index 0000000..2a53823 --- /dev/null +++ b/ui/main.xml @@ -0,0 +1,97 @@ + + + + + + False + + + True + False + vertical + + + True + False + + + True + False + _Config + True + + + True + False + + + gtk-new + True + False + True + True + + + + + gtk-open + True + False + True + True + + + + + gtk-save + True + False + True + True + + + + + gtk-save-as + True + False + True + True + + + + + True + False + + + + + gtk-quit + True + False + True + True + + + + + + + + + False + True + 0 + + + + + + + + + + + +