Commit 9bb21f7d2a6d8d7cae6913cefb74fafa2ffc36b4

Authored by Perry Werneck
1 parent 68eda3aa
Exists in master and in 1 other branch develop

Moving v3270 widget configuration out of the application package; using

product_name to define the right path.
Showing 2 changed files with 112 additions and 4 deletions   Show diff stats
@@ -77,6 +77,8 @@ datarootdir=@datarootdir@ @@ -77,6 +77,8 @@ datarootdir=@datarootdir@
77 localedir=@localedir@ 77 localedir=@localedir@
78 docdir=@docdir@ 78 docdir=@docdir@
79 sysconfdir=@sysconfdir@ 79 sysconfdir=@sysconfdir@
  80 +datadir=$(datarootdir)/@PRODUCT_NAME@
  81 +confdir=$(sysconfdir)/@PRODUCT_NAME@
80 82
81 BASEDIR=@BASEDIR@ 83 BASEDIR=@BASEDIR@
82 84
@@ -295,9 +297,12 @@ install-shared: \ @@ -295,9 +297,12 @@ install-shared: \
295 $(LIBNAME)@DLLEXT@.@PACKAGE_MAJOR_VERSION@ \ 297 $(LIBNAME)@DLLEXT@.@PACKAGE_MAJOR_VERSION@ \
296 $(DESTDIR)$(libdir)/$(LIBNAME)@DLLEXT@ 298 $(DESTDIR)$(libdir)/$(LIBNAME)@DLLEXT@
297 299
298 -  
299 # Install default configs 300 # Install default configs
300 - @mkdir -p $(DESTDIR)$(datarootdir)/pw3270 301 + @mkdir -p $(DESTDIR)$(datadir)
  302 +
  303 + @$(INSTALL_DATA) \
  304 + conf/colors.conf
  305 + $(DESTDIR)$(datadir)/colors.conf
301 306
302 install-static: \ 307 install-static: \
303 $(BINRLS)/static/$(LIBNAME).a 308 $(BINRLS)/static/$(LIBNAME).a
@@ -327,8 +332,8 @@ install-dev: \ @@ -327,8 +332,8 @@ install-dev: \
327 $(DESTDIR)$(libdir)/pkgconfig/libv3270.pc 332 $(DESTDIR)$(libdir)/pkgconfig/libv3270.pc
328 333
329 # Install translation files 334 # Install translation files
330 - @$(MKDIR) $(DESTDIR)$(datarootdir)/pw3270/pot  
331 - @$(INSTALL_DATA) $(POTDIR)/$(LIBNAME).pot $(DESTDIR)$(datarootdir)/pw3270/pot/$(LIBNAME).pot 335 + @$(MKDIR) $(DESTDIR)$(datadir)/pot
  336 + @$(INSTALL_DATA) $(POTDIR)/$(LIBNAME).pot $(DESTDIR)$(datadir)/pot/$(LIBNAME).pot
332 337
333 install-glade: 338 install-glade:
334 339
conf/colors.conf 0 → 100644
@@ -0,0 +1,103 @@ @@ -0,0 +1,103 @@
  1 +#
  2 +# Software pw3270; desenvolvido com base nos códigos fontes do WC3270 e X3270
  3 +# (Paul Mattes Paul.Mattes@usa.net); de emulação de terminal 3270 para acesso a
  4 +# aplicativos mainframe. Registro no INPI sob o nome G3270.
  5 +#
  6 +# Copyright (C) <2008> <Banco do Brasil S.A.>
  7 +#
  8 +# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
  9 +# os termos da GPL v.2 - Licença Pública Geral GNU; conforme publicado pela
  10 +# Free Software Foundation.
  11 +#
  12 +# Este programa é distribuído na expectativa de ser útil; mas SEM QUALQUER
  13 +# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
  14 +# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
  15 +# obter mais detalhes.
  16 +#
  17 +# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
  18 +# programa; se não; escreva para a Free Software Foundation; Inc.; 51 Franklin
  19 +# St; Fifth Floor; Boston; MA 02110-1301 USA
  20 +#
  21 +#
  22 +# Contatos:
  23 +#
  24 +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
  25 +# erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
  26 +#
  27 +
  28 +[default]
  29 +label=PW3270 default
  30 +
  31 +base=#000000;#7890F0;#FF0000;#FF00FF;#00FF00;#00FFFF;#FFFF00;#FFFFFF;#000000;#000080;#FFA200;#800080;#008000;#008080;#A0A000;#C0C0C0
  32 +field=#00FF00;#FF0000;#00FFFF;#FFFFFF
  33 +selection=#404040;#ffffff
  34 +OIA=#000000;#00FF00;#7890F0;#FFFFFF;#FF0000
  35 +
  36 +cross-hair=#00FF00
  37 +
  38 +[X3270]
  39 +label=X3270
  40 +
  41 +base=black;deepSkyBlue;red;pink;green;turquoise;yellow;white;black;blue3;orange;purple;paleGreen;paleTurquoise2;grey;white
  42 +field=green;red;deepSkyBlue;white
  43 +selection=dimGrey;black
  44 +OIA=black;turquoise;turquoise;white;red
  45 +
  46 +cross-hair=white
  47 +
  48 +[Reverse]
  49 +label=Reverse
  50 +label[pt_BR]=Invertido
  51 +
  52 +base=white;blue;firebrick;pink;green4;cadetBlue;goldenrod;black;white;blue3;orange;purple;paleGreen;darkTurquoise;grey;black
  53 +selection=dimGrey;black
  54 +OIA=white;blue;blue;black;black
  55 +
  56 +cross-hair=black
  57 +
  58 +[Bright]
  59 +label=Bright
  60 +label[pt_BR]=Cores fortes
  61 +
  62 +base=black;blue;red;magenta;green;turquoise;yellow;white;black;blue3;orange;purple;paleGreen;cyan;grey;white
  63 +selection=dimGrey;black
  64 +OIA=black;blue;blue;white;red
  65 +
  66 +cross-hair=white
  67 +
  68 +[CPE]
  69 +label=CPE
  70 +base=black;LightBlue1;PaleVioletRed1;pink;green;turquoise;yellow;white;black;LightBlue3;orange;MediumPurple1;paleGreen;paleTurquoise2;grey80;white
  71 +selection=dimGrey;black
  72 +OIA=black;turquoise;turquoise;white;red
  73 +
  74 +cross-hair=white
  75 +
  76 +[Green]
  77 +label=Green
  78 +label[pt_BR]=Verde
  79 +
  80 +base=black;green
  81 +
  82 +[WB]
  83 +label=White on Black
  84 +label[pt_BR]=Branco com fundo preto
  85 +
  86 +base=black;white
  87 +
  88 +[BW]
  89 +label=Black on White
  90 +label[pt_BR]=Preto com fundo branco
  91 +base=white;black
  92 +
  93 +[selenized]
  94 +
  95 +# https://github.com/jan-warchol/selenized
  96 +label=Selenized color palette by Jan Warchoł
  97 +
  98 +base=rgb(24,24,24);rgb(79,156,254);rgb(237,74,70);rgb(235,110,183);rgb(131,199,70);rgb(86,216,201);rgb(239,197,65);rgb(222,222,222);rgb(59,59,59);rgb(54,142,171);rgb(250,145,83);rgb(165,128,226);rgb(112,180,51);rgb(65,199,185);rgb(219,179,45);rgb(119,119,119)
  99 +field=rgb(131,199,70);rgb(237,74,70);rgb(65,199,185);rgb(250,145,83)
  100 +selection=rgb(37,37,37);rgb(222,222,222)
  101 +OIA=rgb(24,24,24);rgb(222,222,222);rgb(79,156,254);rgb(131,199,70);rgb(239,197,65)
  102 +cross-hair=rgb(222,222,222)
  103 +