From 545706afdcf29b8f584e78275452cca715e284db Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:02:53 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- .../rubylib/rbtdeconfig_compiler/tests/Makefile.am | 40 +++++++++++ .../rubylib/rbtdeconfig_compiler/tests/myprefs.rb | 5 ++ .../rubylib/rbtdeconfig_compiler/tests/test1.kcfg | 55 +++++++++++++++ .../rubylib/rbtdeconfig_compiler/tests/test1.kcfgc | 18 +++++ .../rbtdeconfig_compiler/tests/test1main.rb | 4 ++ .../rubylib/rbtdeconfig_compiler/tests/test2.kcfg | 78 ++++++++++++++++++++++ .../rubylib/rbtdeconfig_compiler/tests/test2.kcfgc | 11 +++ .../rbtdeconfig_compiler/tests/test2main.rb | 5 ++ .../rubylib/rbtdeconfig_compiler/tests/test3.kcfg | 26 ++++++++ .../rubylib/rbtdeconfig_compiler/tests/test3.kcfgc | 12 ++++ .../rbtdeconfig_compiler/tests/test3main.rb | 4 ++ .../rubylib/rbtdeconfig_compiler/tests/test4.kcfg | 42 ++++++++++++ .../rubylib/rbtdeconfig_compiler/tests/test4.kcfgc | 11 +++ .../rbtdeconfig_compiler/tests/test4main.rb | 4 ++ .../rubylib/rbtdeconfig_compiler/tests/test5.kcfg | 42 ++++++++++++ .../rubylib/rbtdeconfig_compiler/tests/test5.kcfgc | 11 +++ .../rbtdeconfig_compiler/tests/test5main.rb | 4 ++ 17 files changed, 372 insertions(+) create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/Makefile.am create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/myprefs.rb create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfg create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfgc create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test1main.rb create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfg create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfgc create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test2main.rb create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfg create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfgc create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test3main.rb create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfg create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfgc create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test4main.rb create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfg create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfgc create mode 100644 korundum/rubylib/rbtdeconfig_compiler/tests/test5main.rb (limited to 'korundum/rubylib/rbtdeconfig_compiler/tests') diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/Makefile.am b/korundum/rubylib/rbtdeconfig_compiler/tests/Makefile.am new file mode 100644 index 00000000..cabfed4d --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/Makefile.am @@ -0,0 +1,40 @@ +check_PROGRAMS = test1 test2 test3 test4 test5 + +CLEANFILES = test1.rb \ + test2.rb \ + test3.rb \ + test4.rb \ + test5.rb \ + md5sums + +all: $(SOURCES) + +# Splitting this with backslashses produces broken Makefiles +SOURCES = test1main.rb test1.rb test2main.rb test2.rb test3main.rb test3.rb test4main.rb test4.rb test5main.rb test5.rb + +# avoid running the below command in parallel +test1.rb: $(srcdir)/test1.kcfg ../rbtdeconfig_compiler $(srcdir)/test1.kcfgc + ../rbtdeconfig_compiler $(srcdir)/test1.kcfg $(srcdir)/test1.kcfgc + +# avoid running the below command in parallel +test2.rb: $(srcdir)/test2.kcfg ../rbtdeconfig_compiler $(srcdir)/test2.kcfgc + ../rbtdeconfig_compiler $(srcdir)/test2.kcfg $(srcdir)/test2.kcfgc + +# avoid running the below command in parallel +test3.rb: $(srcdir)/test3.kcfg ../rbtdeconfig_compiler $(srcdir)/test3.kcfgc + ../rbtdeconfig_compiler $(srcdir)/test3.kcfg $(srcdir)/test3.kcfgc + +# avoid running the below command in parallel +test4.rb: $(srcdir)/test4.kcfg ../rbtdeconfig_compiler $(srcdir)/test4.kcfgc + ../rbtdeconfig_compiler $(srcdir)/test4.kcfg $(srcdir)/test4.kcfgc + +# avoid running the below command in parallel +test5.rb: $(srcdir)/test5.kcfg ../rbtdeconfig_compiler $(srcdir)/test5.kcfgc + ../rbtdeconfig_compiler $(srcdir)/test5.kcfg $(srcdir)/test5.kcfgc + +md5sums: + $(MD5SUM) $(srcdir)/test*.ref | sed -e "s,$(srcdir)/,,; s,\.ref$$,," > md5sums + +md5check: test1.rb test2.rb test3.rb test4.rb test5.rb md5sums + $(MD5SUM) --check md5sums + diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/myprefs.rb b/korundum/rubylib/rbtdeconfig_compiler/tests/myprefs.rb new file mode 100644 index 00000000..a4f1f082 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/myprefs.rb @@ -0,0 +1,5 @@ +class MyPrefs < KDE::ConfigSkeleton + def initialize( a ) + super( a ) + end +end diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfg b/korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfg new file mode 100644 index 00000000..b8c23c15 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfg @@ -0,0 +1,55 @@ + + + qdir.h + + + + + + + + true + + + + 5 + + + + And this is a longer description of this option. Just wondering, how will the translations of those be handled? + + + + + + One + + + + + + Default String + + + + TQt::Dir.homeDirPath()+".hidden_file" + + + + 10 + + + up,down + + + + + 1 + + + diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfgc b/korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfgc new file mode 100644 index 00000000..dd086cdd --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test1.kcfgc @@ -0,0 +1,18 @@ +# Code generation options for tdeconfig_compiler +ClassName=Test1 +# +# Singleton=false +# +# Inherits=TDEConfigSkeleton +# +# IncludeFiles=libtdepim/kpimprefs.h +# +# MemberVariables=public +# +### The following line includes the file exampleprefs_base_addon.h +### It can be used to add extra functions and variables to the +### class. +# CustomAdditions=true +# +### Provide setFooBar(int) style functions +Mutators=true diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test1main.rb b/korundum/rubylib/rbtdeconfig_compiler/tests/test1main.rb new file mode 100644 index 00000000..88a151a6 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test1main.rb @@ -0,0 +1,4 @@ +require 'Korundum' +require 'test1.rb' + +t = Test1.new(nil, nil) diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfg b/korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfg new file mode 100644 index 00000000..3b19e270 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfg @@ -0,0 +1,78 @@ + + + + + + + + WhatsThis text for AutoSave option + false + + + 10 + + + + true + + + + + + + + + + + + + + + Argl2 Whatsthis + + + + Argl3 Whatsthis + + + standardDestination + + + + + + 10 + + + + false + + + + + + holidays,webexport + + + + + + + 100, 100, 255 + + + + 255, 255, 255 + + + + + + + + + + diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfgc b/korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfgc new file mode 100644 index 00000000..e2904068 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test2.kcfgc @@ -0,0 +1,11 @@ +# Code generation options for tdeconfig_compiler +File=test2.kcfg +ClassName=Test2 +Singleton=false +Mutators=true +Inherits=MyPrefs +IncludeFiles=myprefs.h +MemberVariables=public +GlobalEnums=true +ItemAccessors=true +SetUserTexts=true diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test2main.rb b/korundum/rubylib/rbtdeconfig_compiler/tests/test2main.rb new file mode 100644 index 00000000..85d18f07 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test2main.rb @@ -0,0 +1,5 @@ +require 'Korundum' +require 'myprefs.rb' +require 'test2.rb' + +t = Test2.new() diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfg b/korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfg new file mode 100644 index 00000000..77916da4 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfg @@ -0,0 +1,26 @@ + + + + + + + + WhatsThis text for AutoSave option + false + + + + + + 10 + + + a string + + + + + diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfgc b/korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfgc new file mode 100644 index 00000000..d699810d --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test3.kcfgc @@ -0,0 +1,12 @@ +# Code generation options for tdeconfig_compiler +File=test3.kcfg +NameSpace=TestNameSpace +ClassName=Test3 +#Singleton=false +Mutators=true +#Inherits=MyPrefs +#IncludeFiles=myprefs.h +#MemberVariables=public +GlobalEnums=true +ItemAccessors=true +#SetUserTexts=true diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test3main.rb b/korundum/rubylib/rbtdeconfig_compiler/tests/test3main.rb new file mode 100644 index 00000000..8c19b442 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test3main.rb @@ -0,0 +1,4 @@ +require 'Korundum' +require 'test3.rb' + +t = TestNameSpace::Test3.new() diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfg b/korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfg new file mode 100644 index 00000000..c834aa9f --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfg @@ -0,0 +1,42 @@ + + + + + + + + + defaultColor = [ TQt::red, TQt::blue, TQt::green, TQt::black ] + defaultColor[$(Number)] + + + + + right + mid + left + + + + + + + + + + Decrypt + Encrypt + PumpNDump + + + + 35 + 8 + 88 + + + + diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfgc b/korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfgc new file mode 100644 index 00000000..a81655b6 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test4.kcfgc @@ -0,0 +1,11 @@ +# Code generation options for tdeconfig_compiler +File=test4.kcfg +ClassName=Test4 +Singleton=true +Mutators=true +#Inherits=MyPrefs +#IncludeFiles=myprefs.h +#MemberVariables=public +GlobalEnums=false +ItemAccessors=false +#SetUserTexts=true diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test4main.rb b/korundum/rubylib/rbtdeconfig_compiler/tests/test4main.rb new file mode 100644 index 00000000..c75f0995 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test4main.rb @@ -0,0 +1,4 @@ +require 'Korundum' +require 'test4.rb' + +t = Test4.instance() diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfg b/korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfg new file mode 100644 index 00000000..c834aa9f --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfg @@ -0,0 +1,42 @@ + + + + + + + + + defaultColor = [ TQt::red, TQt::blue, TQt::green, TQt::black ] + defaultColor[$(Number)] + + + + + right + mid + left + + + + + + + + + + Decrypt + Encrypt + PumpNDump + + + + 35 + 8 + 88 + + + + diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfgc b/korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfgc new file mode 100644 index 00000000..dbc5603a --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test5.kcfgc @@ -0,0 +1,11 @@ +# Code generation options for tdeconfig_compiler +File=test5.kcfg +ClassName=Test5 +Singleton=true +Mutators=true +#Inherits=MyPrefs +#IncludeFiles=myprefs.h +#MemberVariables=public +GlobalEnums=true +ItemAccessors=false +#SetUserTexts=true diff --git a/korundum/rubylib/rbtdeconfig_compiler/tests/test5main.rb b/korundum/rubylib/rbtdeconfig_compiler/tests/test5main.rb new file mode 100644 index 00000000..cd0fbeb7 --- /dev/null +++ b/korundum/rubylib/rbtdeconfig_compiler/tests/test5main.rb @@ -0,0 +1,4 @@ +require 'Korundum' +require 'test5.rb' + +t = Test5.instance() -- cgit v1.2.1