# HG changeset patch # User tiwai # Date 1111164168 0 # Node ID edb6ad74974e042304adfe152cafffb8e8d972cf # Parent 52674cbb322d39f502f57e408df56728a5d65e6f Add qlo10k1 Added qlo10k1 by Peter Zubaj. --- a/Makefile Fri Mar 18 16:34:28 2005 +0000 +++ b/Makefile Fri Mar 18 16:42:48 2005 +0000 @@ -2,7 +2,7 @@ TOP = . TOP = . SUBDIRS = ac3dec as10k1 envy24control hdsploader hdspconf hdspmixer \ mixartloader pcxhrloader rmedigicontrol sb16_csp seq sscape_ctl us428control \ - usx2yloader vxloader echomixer ld10k1 + usx2yloader vxloader echomixer ld10k1 qlo10k1 all: @for i in $(SUBDIRS); do cd $(TOP)/$$i; ./cvscompile $(CVSCOMPILE_ARGS); cd ..; make -C $$i; done --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/AUTHORS Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,4 @@ +Peter Zubaj + +Contributors: +Eduardo García-Mádico Portabella --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/COPYING Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU 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. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), 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 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 show them these terms so they know 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. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + 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 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 derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 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 License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +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. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary 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 + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 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 Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing 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 for copying, distributing or modifying +the Program or works based on it. + + 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. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. 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 this 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 +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. 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 + + 11. 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. + + 12. 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 + + 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 the public, 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) + + 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 2 of the License, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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) year 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 is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/ChangeLog Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,1 @@ + \ No newline at end of file --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/INSTALL Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,236 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free +Software Foundation, Inc. + +This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + +These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + +Some systems require unusual options for compilation or linking that the +`configure' script does not know about. Run `./configure --help' for +details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + +You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. + +Installation Names +================== + +By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PREFIX'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PREFIX', the package will +use PREFIX as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + +Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + +There may be some features `configure' cannot figure out automatically, +but needs to determine by the type of machine the package will run on. +Usually, assuming the package is built to be run on the _same_ +architectures, `configure' can figure that out, but if it prints a +message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the `--target=TYPE' option to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + +If you want to set default values for `configure' scripts to share, you +can create a site shell script called `config.site' that gives default +values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + +Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). Here is a another example: + + /bin/bash ./configure CONFIG_SHELL=/bin/bash + +Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent +configuration-related scripts to be executed by `/bin/bash'. + +`configure' Invocation +====================== + +`configure' recognizes the following options to control how it operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/Makefile.am Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,9 @@ +SUBDIRS = src + +EXTRA_DIST = COPYING configure.in README NEWS AUTHORS TODO INSTALL ChangeLog + +alsa-dist: distdir + @rm -rf ../distdir/ld10k1 + @mkdir -p ../distdir/ld10k1 + @cp -RLpv $(distdir)/* ../distdir/ld10k1 + @rm -rf $(distdir) --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/NEWS Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,14 @@ +0.1.2 + - ld10k1 0.1.8 required + - Colors and better object positioning - Eduardo García-Mádico Portabella +0.1.1test3 + - Warning cleaning +0.1.1test2 + - Fixed build + - Fixed "make dist" - not include moc generated sources +0.1.1test1 + - No more needs for kde - only qt is needed + - Sync with lo10k1 - save dsp config, load dsp config, save patch + - Source cleanup +0.1.0 + - First version \ No newline at end of file --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/README Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,6 @@ +Some sort of GUI for ld10k1. +Still early stage of development. +Source is ugly (better not to read). +Don't expeect everything will work. +To compile needs QT instaled. +First install ld10k1. --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/TODO Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,6 @@ +- nefunguje dobre disconnect na inpute +- source cleanup (warnings, ...) +- rename +- patch info +- dsp ussage info +- optimalization - is getting slow \ No newline at end of file --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/acinclude.m4 Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,217 @@ +# Check for Qt compiler flags, linker flags, and binary packages +AC_DEFUN([gw_CHECK_QT], +[ +AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([AC_PATH_X]) + +AC_MSG_CHECKING([QTDIR]) +AC_ARG_WITH([qtdir], [ --with-qtdir=DIR Qt installation directory [default=$QTDIR]], QTDIR=$withval) +# Check that QTDIR is defined or that --with-qtdir given +if test x"$QTDIR" = x ; then + QT_SEARCH="/usr/lib/qt31 /usr/local/qt31 /usr/lib/qt3 /usr/local/qt3 /usr/lib/qt2 /usr/local/qt2 /usr/lib/qt /usr/local/qt" + for i in $QT_SEARCH; do + if test -f $i/include/qglobal.h -a x$QTDIR = x; then QTDIR=$i; fi + done +fi +if test x"$QTDIR" = x ; then + AC_MSG_ERROR([*** QTDIR must be defined, or --with-qtdir option given]) +fi +AC_MSG_RESULT([$QTDIR]) + +# Change backslashes in QTDIR to forward slashes to prevent escaping +# problems later on in the build process, mainly for Cygwin build +# environment using MSVC as the compiler +# TODO: Use sed instead of perl +QTDIR=`echo $QTDIR | perl -p -e 's/\\\\/\\//g'` + +# Figure out which version of Qt we are using +AC_MSG_CHECKING([Qt version]) +QT_VER=`grep 'define.*QT_VERSION_STR\W' $QTDIR/include/qglobal.h | perl -p -e 's/\D//g'` +case "${QT_VER}" in + 2*) + QT_MAJOR="2" + ;; + 3*) + QT_MAJOR="3" + ;; + *) + AC_MSG_ERROR([*** Don't know how to handle this Qt major version]) + ;; +esac +AC_MSG_RESULT([$QT_VER ($QT_MAJOR)]) + +# Check that moc is in path +AC_PATH_PROG([MOC], [moc], [$QTDIR/bin/moc], [$PATH:$QTDIR/bin]) +if test x$MOC = x ; then + AC_MSG_ERROR([*** moc must be in path]) +fi + +# uic is the Qt user interface compiler +AC_PATH_PROG([UIC], [uic], [$QTDIR/bin/uic], [$PATH:$QTDIR/bin]) +if test x$UIC = x ; then + AC_MSG_ERROR([*** uic must be in path]) +fi + +# qembed is the Qt data embedding utility. +# It is located in $QTDIR/tools/qembed, and must be compiled and installed +# manually, we'll let it slide if it isn't present +AC_PATH_PROG([QEMBED], [qembed], [$QTDIR/bin/qembed], [$PATH:$QTDIR/bin]) + + +# Calculate Qt include path +QT_CXXFLAGS="-I$QTDIR/include" + +QT_IS_EMBEDDED="no" +# On unix, figure out if we're doing a static or dynamic link +case "${host}" in + *-cygwin) + AC_DEFINE_UNQUOTED(WIN32, "", Defined if on Win32 platform) + if test -f "$QTDIR/lib/qt.lib" ; then + QT_LIB="qt.lib" + QT_IS_STATIC="yes" + QT_IS_MT="no" + elif test -f "$QTDIR/lib/qt-mt.lib" ; then + QT_LIB="qt-mt.lib" + QT_IS_STATIC="yes" + QT_IS_MT="yes" + elif test -f "$QTDIR/lib/qt$QT_VER.lib" ; then + QT_LIB="qt$QT_VER.lib" + QT_IS_STATIC="no" + QT_IS_MT="no" + elif test -f "$QTDIR/lib/qt-mt$QT_VER.lib" ; then + QT_LIB="qt-mt$QT_VER.lib" + QT_IS_STATIC="no" + QT_IS_MT="yes" + fi + ;; + + *) + QT_IS_STATIC=`ls $QTDIR/lib/*.a 2> /dev/null` + if test "x$QT_IS_STATIC" = x; then + QT_IS_STATIC="no" + else + QT_IS_STATIC="yes" + fi + if test x$QT_IS_STATIC = xno ; then + QT_IS_DYNAMIC=`ls $QTDIR/lib/*.so 2> /dev/null` + if test "x$QT_IS_DYNAMIC" = x; then + AC_MSG_ERROR([*** Couldn't find any Qt libraries]) + fi + fi + + if test "x`ls $QTDIR/lib/libqt.* 2> /dev/null`" != x ; then + QT_LIB="-lqt" + QT_IS_MT="no" + elif test "x`ls $QTDIR/lib/libqt-mt.* 2> /dev/null`" != x ; then + QT_LIB="-lqt-mt" + QT_IS_MT="yes" + elif test "x`ls $QTDIR/lib/libqte.* 2> /dev/null`" != x ; then + QT_LIB="-lqte" + QT_IS_MT="no" + QT_IS_EMBEDDED="yes" + elif test "x`ls $QTDIR/lib/libqte-mt.* 2> /dev/null`" != x ; then + QT_LIB="-lqte-mt" + QT_IS_MT="yes" + QT_IS_EMBEDDED="yes" + fi + ;; +esac +AC_MSG_CHECKING([if Qt is static]) +AC_MSG_RESULT([$QT_IS_STATIC]) +AC_MSG_CHECKING([if Qt is multithreaded]) +AC_MSG_RESULT([$QT_IS_MT]) +AC_MSG_CHECKING([if Qt is embedded]) +AC_MSG_RESULT([$QT_IS_EMBEDDED]) + +QT_GUILINK="" +QASSISTANTCLIENT_LDADD="-lqassistantclient" +case "${host}" in + *irix*) + QT_LIBS="$QT_LIB" + if test $QT_IS_STATIC = yes ; then + QT_LIBS="$QT_LIBS -L$x_libraries -lXext -lX11 -lm -lSM -lICE" + fi + ;; + + *linux*) + QT_LIBS="$QT_LIB" + if test $QT_IS_STATIC = yes && test $QT_IS_EMBEDDED = no; then + QT_LIBS="$QT_LIBS -L$x_libraries -lXext -lX11 -lm -lSM -lICE -ldl -ljpeg" + fi + ;; + + + *osf*) + # Digital Unix (aka DGUX aka Tru64) + QT_LIBS="$QT_LIB" + if test $QT_IS_STATIC = yes ; then + QT_LIBS="$QT_LIBS -L$x_libraries -lXext -lX11 -lm -lSM -lICE" + fi + ;; + + *solaris*) + QT_LIBS="$QT_LIB" + if test $QT_IS_STATIC = yes ; then + QT_LIBS="$QT_LIBS -L$x_libraries -lXext -lX11 -lm -lSM -lICE -lresolv -lsocket -lnsl" + fi + ;; + + + *win*) + # linker flag to suppress console when linking a GUI app on Win32 + QT_GUILINK="/subsystem:windows" + + if test $QT_MAJOR = "3" ; then + if test $QT_IS_MT = yes ; then + QT_LIBS="/nodefaultlib:libcmt" + else + QT_LIBS="/nodefaultlib:libc" + fi + fi + + if test $QT_IS_STATIC = yes ; then + QT_LIBS="$QT_LIBS $QT_LIB kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib shell32.lib imm32.lib advapi32.lib wsock32.lib winspool.lib winmm.lib netapi32.lib" + if test $QT_MAJOR = "3" ; then + QT_LIBS="$QT_LIBS qtmain.lib" + fi + else + QT_LIBS="$QT_LIBS $QT_LIB" + if test $QT_MAJOR = "3" ; then + QT_CXXFLAGS="$QT_CXXFLAGS -DQT_DLL" + QT_LIBS="$QT_LIBS qtmain.lib qui.lib user32.lib netapi32.lib" + fi + fi + QASSISTANTCLIENT_LDADD="qassistantclient.lib" + ;; + +esac + + +if test x"$QT_IS_EMBEDDED" = "xyes" ; then + QT_CXXFLAGS="-DQWS $QT_CXXFLAGS" +fi + +if test x"$QT_IS_MT" = "xyes" ; then + QT_CXXFLAGS="$QT_CXXFLAGS -D_REENTRANT -DQT_THREAD_SUPPORT" +fi + +QT_LDADD="-L$QTDIR/lib $QT_LIBS" + +if test x$QT_IS_STATIC = xyes ; then + OLDLIBS="$LIBS" + LIBS="$QT_LDADD" + AC_CHECK_LIB(Xft, XftFontOpen, QT_LDADD="$QT_LDADD -lXft") + LIBS="$LIBS" +fi + +AC_MSG_CHECKING([QT_CXXFLAGS]) +AC_MSG_RESULT([$QT_CXXFLAGS]) +AC_MSG_CHECKING([QT_LDADD]) +AC_MSG_RESULT([$QT_LDADD]) + +AC_SUBST(QT_CXXFLAGS) +AC_SUBST(QT_LDADD) +AC_SUBST(QT_GUILINK) +AC_SUBST(QASSISTANTCLIENT_LDADD) + +]) --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/config.h.in Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,65 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the `lo10k1' library (-llo10k1). */ +#undef HAVE_LIBLO10K1 + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Version number of package */ +#undef VERSION + +/* Defined if on Win32 platform */ +#undef WIN32 + +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/configure.in Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,15 @@ +AC_INIT(src/main.cpp) +AM_INIT_AUTOMAKE(qlo10k1, 0.1.2) +AC_CONFIG_HEADERS(config.h) +AC_PROG_CXX +AC_PROG_LD +AC_PROG_INSTALL +AC_PROG_LIBTOOL + +AC_C_BIGENDIAN +gw_CHECK_QT +CXXFLAGS="$CXXFLAGS $QT_CXXFLAGS -Wall" +AM_PATH_LD10K1(0.1.8) + +AC_OUTPUT(Makefile + src/Makefile) \ No newline at end of file --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/cvscompile Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,9 @@ +#!/bin/bash + +autoreconf -fi +export CFLAGS='-O2 -Wall -pipe -g' +echo "CFLAGS=$CFLAGS" +echo "./configure $@" +./configure $@ +unset CFLAGS +make --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/Makefile.am Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,137 @@ +#SUBDIRS = dlgs icons + +# this is the program that gets installed. it's name is used for all +# of the other Makefile.am variables +bin_PROGRAMS = qlo10k1 + +# the libraries to link against. +qlo10k1_LDADD = $(LDADD) $(QT_LDADD) + +EXTRA_DIST = dlgs/connectionwizardbase.ui dlgs/filecontroldialogbase.ui dlgs/filecontrolsdialogbase.ui \ + dlgs/loadpatchdialogbase.ui dlgs/mainwndbase.ui dlgs/patchdialogbase.ui dlgs/preferencesbase.ui \ + dlgs/newiodialogbase.ui dlgs/aboutdialogbase.ui dlgs/transformpatchbase.ui\ + icons/routing_fx.xpm \ + icons/routing_in.xpm \ + icons/routing_out.xpm \ + icons/routing_route.xpm \ + icons/routing_effect.xpm \ + icons/routing_effect_stack.xpm \ + icons/routing_zoom_plus.xpm \ + icons/routing_zoom_minus.xpm \ + icons/routing_normal.xpm + +# these are the headers for your project +noinst_HEADERS = + +%.moc.cpp: %.h + $(MOC) -o $@ $< + +%.h: %.ui + $(UIC) -o $@ $< + +%.cpp: %.ui + $(UIC) -o $@ -impl $*.h $< + +qlo10k1_UI = dlgs/connectionwizardbase.h \ + dlgs/connectionwizardbase.cpp \ + \ + dlgs/filecontroldialogbase.h \ + dlgs/filecontroldialogbase.cpp \ + \ + dlgs/filecontrolsdialogbase.h \ + dlgs/filecontrolsdialogbase.cpp \ + \ + dlgs/loadpatchdialogbase.h \ + dlgs/loadpatchdialogbase.cpp \ + \ + dlgs/transformpatchbase.h \ + dlgs/transformpatchbase.cpp \ + \ + dlgs/mainwndbase.h \ + dlgs/mainwndbase.cpp \ + \ + dlgs/patchdialogbase.h \ + dlgs/patchdialogbase.cpp \ + \ + dlgs/preferencesbase.h \ + dlgs/preferencesbase.cpp \ + \ + dlgs/newiodialogbase.h \ + dlgs/newiodialogbase.cpp \ + \ + dlgs/aboutdialogbase.h \ + dlgs/aboutdialogbase.cpp + +qlo10k1_MOC = dlgs/connectionwizardbase.moc.cpp \ + dlgs/filecontroldialogbase.moc.cpp \ + dlgs/filecontrolsdialogbase.moc.cpp \ + dlgs/loadpatchdialogbase.moc.cpp \ + dlgs/mainwndbase.moc.cpp \ + dlgs/patchdialogbase.moc.cpp \ + dlgs/preferencesbase.moc.cpp \ + dlgs/newiodialogbase.moc.cpp \ + dlgs/aboutdialogbase.moc.cpp \ + dlgs/transformpatchbase.moc.cpp \ + \ + connectionwizard.moc.cpp \ + filecontroldialog.moc.cpp \ + loadpatchdialog.moc.cpp \ + mainwnd.moc.cpp \ + patchdialog.moc.cpp \ + preferences.moc.cpp \ + routingwidget.moc.cpp \ + newiodialog.moc.cpp \ + aboutdialog.moc.cpp \ + transformpatchdialog.moc.cpp + +BUILT_SOURCES = $(qlo10k1_MOC) $(qlo10k1_UI) +CLEANFILES = $(BUILT_SOURCES) + +# which sources should be compiled for qlo10k1 +# emu10k1file.cpp emu10k1file.h +qlo10k1_SOURCES = app_global.h connectionwizard.cpp connectionwizard.h \ + filecontroldialog.cpp filecontroldialog.h ld10k1file.cpp ld10k1file.h \ + loadpatchdialog.cpp loadpatchdialog.h main.cpp \ + mainwnd.cpp mainwnd.h patchdialog.cpp patchdialog.h preferences.cpp preferences.h \ + routingwidget.h routingwidget.cpp structure.cpp structure.h structure_patch.cpp structure_patch.h \ + structure_io.cpp structure_io.h structure_link.cpp structure_link.h\ + structure_aa.cpp strglobal.h strglobal.cpp routingwidget_new.cpp routingwidget_menu.cpp \ + newiodialog.h newiodialog.cpp strparam.h strparam.cpp \ + aboutdialog.h aboutdialog.cpp transformpatchdialog.h transformpatchdialog.cpp \ + custom_colors.h +# \ +# $(qlo10k1_UI) \ +# $(qlo10k1_MOC) + +nodist_qlo10k1_SOURCES = $(qlo10k1_UI) \ + $(qlo10k1_MOC) + +dlgs/connectionwizardbase.h : dlgs/connectionwizardbase.ui +dlgs/connectionwizardbase.cpp : dlgs/connectionwizardbase.h dlgs/connectionwizardbase.ui + +dlgs/filecontroldialogbase.h : dlgs/filecontroldialogbase.ui +dlgs/filecontroldialogbase.cpp : dlgs/filecontroldialogbase.h dlgs/filecontroldialogbase.ui + +dlgs/filecontrolsdialogbase.h : dlgs/filecontrolsdialogbase.ui +dlgs/filecontrolsdialogbase.cpp : dlgs/filecontrolsdialogbase.h dlgs/filecontrolsdialogbase.ui + +dlgs/loadpatchdialogbase.h : dlgs/loadpatchdialogbase.ui +dlgs/loadpatchdialogbase.cpp : dlgs/loadpatchdialogbase.h dlgs/loadpatchdialogbase.ui + +dlgs/transformpatchbase.h : dlgs/transformpatchbase.ui +dlgs/transformpatchbase.cpp : dlgs/transformpatchbase.h dlgs/transformpatchbase.ui + +dlgs/mainwndbase.h : dlgs/mainwndbase.ui +dlgs/mainwndbase.cpp : dlgs/mainwndbase.h dlgs/mainwndbase.ui + +dlgs/patchdialogbase.h : dlgs/patchdialogbase.ui +dlgs/patchdialogbase.cpp : dlgs/patchdialogbase.h dlgs/patchdialogbase.ui + +dlgs/preferencesbase.h : dlgs/preferencesbase.ui +dlgs/preferencesbase.cpp : dlgs/preferencesbase.h dlgs/preferencesbase.ui + +dlgs/newiodialogbase.h : dlgs/newiodialogbase.ui +dlgs/newiodialogbase.cpp : dlgs/newiodialogbase.h dlgs/newiodialogbase.ui + +dlgs/aboutdialogbase.h : dlgs/aboutdialogbase.ui +dlgs/aboutdialogbase.cpp : dlgs/aboutdialogbase.h dlgs/aboutdialogbase.ui \ No newline at end of file --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/aboutdialog.cpp Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,34 @@ +/* + * qlo10k1 - GUI frontend for ld10k1 + * + * Copyright (c) 2004 by Peter Zubaj + * + * 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 2 of the License, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include + +#include "aboutdialog.h" + +AboutDlg::AboutDlg() +{ + connect(pbOK, SIGNAL(clicked()), this, SLOT(okClicked())); +} + +void AboutDlg::okClicked() +{ + done(Accepted); +} --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/aboutdialog.h Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,36 @@ +/* + * qlo10k1 - GUI frontend for ld10k1 + * + * Copyright (c) 2004 by Peter Zubaj + * + * 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 2 of the License, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef ABOUTDIALOG_H +#define ABOUTDIALOG_H + +#include "dlgs/aboutdialogbase.h" + +class AboutDlg : public AboutDialogBase +{ + Q_OBJECT +public: + AboutDlg(); +public slots: + void okClicked(); +}; + +#endif // ABOUTDIALOG_H --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/app_global.h Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,6 @@ +#ifndef __APP_GLOBAL_H +#define __APP_GLOBAL_H + +#define APP_NAME "qlo10k1 - emu10k1 patch loader" + +#endif /* __APP_GLOBAL_H */ --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/connectionwizard.cpp Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,324 @@ +/* + * qlo10k1 - GUI frontend for ld10k1 + * + * Copyright (c) 2004 by Peter Zubaj + * + * 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 2 of the License, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include +#include +#include +#include + +#include "structure_patch.h" +#include "structure_io.h" +#include "connectionwizard.h" + +ConnectionWizard::ConnectionWizard(bool o, StrGlobal *g, RouteInfo *r) + : ConnectionWizardBase() +{ + out = o; + global = g; + route = *r; + rptr = r; + + rtype = None; + pto = NULL; + + RSItemIO *io = r->getToIO(); + + if (io) + { + RSItemBaseWithType *owner = (RSItemBaseWithType *)io->getOwner(); + switch (owner->type()) + { + case RSItemBaseWithType::In: + rtype = In; + break; + case RSItemBaseWithType::Out: + rtype = Out; + break; + case RSItemBaseWithType::FX: + rtype = FX; + break; + case RSItemBaseWithType::Patch: + if (io->isOutput()) + rtype = POut; + else + rtype = PIn; + pto = (StrPatch *)owner; + break; + default: + break; + } + } + + if (!out) + { + rbOutput->hide(); + } + else + { + rbFX->hide(); + rbInput->hide(); + } + + StrPatch *patch; + + lbPatch->clear(); + for(patch = global->Patches.first(); patch; patch = global->Patches.next() ) + { + lbPatch->insertItem(patch->name()); + patchList.append(patch); + } + + connect(rbNone, SIGNAL(clicked()), this, SLOT(noneClicked())); + connect(rbFX, SIGNAL(clicked()), this, SLOT(fxClicked())); + connect(rbInput, SIGNAL(clicked()), this, SLOT(inClicked())); + connect(rbOutput, SIGNAL(clicked()), this, SLOT(outClicked())); + connect(rbPatch, SIGNAL(clicked()), this, SLOT(patchClicked())); + + connect(lbPatch, SIGNAL(clicked(QListBoxItem *)), this, SLOT(patchListClicked(QListBoxItem *))); + connect(lbEnd, SIGNAL(clicked(QListBoxItem *)), this, SLOT(endListClicked(QListBoxItem *))); + + connect(finishButton(), SIGNAL(clicked()), this, SLOT(finishClicked())); + + connect(this, SIGNAL(selected(const QString &)), this, SLOT(selected(const QString &))); + helpButton()->hide(); + + setFinishEnabled(pageType, true); + setNextEnabled(pageType, true); + setFinishEnabled(pagePatch, true); + setNextEnabled(pagePatch, true); + setFinishEnabled(pageEnd, true); + setNextEnabled(pageEnd, true); +} + +void ConnectionWizard::setState(bool patch, bool end, bool back, bool next, bool finish) +{ + setAppropriate(pagePatch, patch ? true : false); + setAppropriate(pageEnd, end ? true : false); + + backButton()->setEnabled(back ? true : false); + nextButton()->setEnabled(next ? true : false); + finishButton()->setEnabled(finish ? true : false); +} + +void ConnectionWizard::loadEnd(IOType iotype) +{ + lbEnd->clear(); + ios.clear(); + + if (iotype == In) + { + for (int i = 0; i < (int)global->Inputs.count(); i++) + { + StrInput *io = global->Inputs.at(i); + ios.append(io->getIO(false, 0)); + lbEnd->insertItem(io->name()); + } + } + else if (iotype == Out) + { + for (int i = 0; i < (int)global->Outputs.count(); i++) + { + StrOutput *io = global->Outputs.at(i); + ios.append(io->getIO(true, 0)); + lbEnd->insertItem(io->name()); + } + } + else if (iotype == FX) + { + for (int i = 0; i < (int)global->FXs.count(); i++) + { + StrFX *io = global->FXs.at(i); + ios.append(io->getIO(false, 0)); + lbEnd->insertItem(io->name()); + } + } +} + +void ConnectionWizard::noneClicked() +{ + setState(false, false, false, false, true); + if (rtype != ConnectionWizard::None) + { + rtype = ConnectionWizard::None; + pto = NULL; + } +} + + +void ConnectionWizard::fxClicked() +{ + setState(false, true, false, true, false); + if (rtype != ConnectionWizard::FX) + { + rtype = ConnectionWizard::FX; + pto = NULL; + } +} + +void ConnectionWizard::inClicked() +{ + setState(false, true, false, true, false); + if (rtype != ConnectionWizard::In) + { + rtype = ConnectionWizard::In; + pto = NULL; + } +} + +void ConnectionWizard::outClicked() +{ + setState(false, true, false, true, false); + if (rtype != ConnectionWizard::Out) + { + rtype = ConnectionWizard::Out; + pto = NULL; + } +} + +void ConnectionWizard::patchClicked() +{ + setState(true, true, false, true, false); + if (rtype != ConnectionWizard::PIn && rtype != ConnectionWizard::POut) + { + if (out) + rtype = ConnectionWizard::PIn; + else + rtype = ConnectionWizard::POut; + pto = NULL; + } +} + +void ConnectionWizard::selected(const QString &page) +{ + if (page == "Connection target") + { + switch (rtype) + { + case None: + rbNone->setChecked(true); + setState(false, false, false, false, true); + break; + case FX: + rbFX->setChecked(true); + setState(false, true, false, true, false); + break; + case In: + rbInput->setChecked(true); + setState(false, true, false, true, false); + break; + case Out: + rbOutput->setChecked(true); + setState(false, true, false, true, false); + break; + case PIn: + case POut: + rbPatch->setChecked(true); + setState(true, true, false, true, false); + break; + } + } + else if (page == "Patch") + { + finishButton()->setEnabled(false); + if (pto) + { + // find patch + lbPatch->setCurrentItem(patchList.find(pto)); + nextButton()->setEnabled(true); + } + else + { + QListBoxItem *si = lbPatch->selectedItem(); + if (si) + lbPatch->setSelected(si, false); + lbPatch->setCurrentItem(-1); + nextButton()->setEnabled(false); + } + + cbMulti->setChecked(route.getMulti()); + cbSimple->setChecked(route.getSimple()); + } + else if (page == "End") + { + nextButton()->setEnabled(false); + switch (rtype) + { + case None: + break; + case FX: + case In: + case Out: + loadEnd(rtype); + break; + case PIn: + case POut: + // load patch in or out + ios.clear(); + lbEnd->clear(); + + for (int i = 0; i < (int)pto->getMaxIOIdx(out); i++) + { + RSItemIO *io = pto->getIO(out, i); + if (io) + { + ios.append(io); + lbEnd->insertItem(io->getDesc()); + } + } + + route.setMulti(cbMulti->isChecked()); + route.setSimple(cbSimple->isChecked()); + break; + } + + if (route.getToIO()) + { + lbEnd->setCurrentItem(ios.find(route.getToIO())); + finishButton()->setEnabled(true); + } + else + { + QListBoxItem *si = lbEnd->selectedItem(); + if (si) + lbEnd->setSelected(si, false); + lbEnd->setCurrentItem(-1); + finishButton()->setEnabled(false); + } + } +} + +void ConnectionWizard::patchListClicked(QListBoxItem *item) +{ + pto = patchList.at(lbPatch->index(item)); + route.setToIO(NULL); + nextButton()->setEnabled(true); +} + +void ConnectionWizard::endListClicked(QListBoxItem *item) +{ + route.setToIO(ios.at(lbEnd->index(item))); + finishButton()->setEnabled(true); +} + +void ConnectionWizard::finishClicked() +{ + *rptr = route; +} --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/connectionwizard.h Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,128 @@ +/* + * qlo10k1 - GUI frontend for ld10k1 + * + * Copyright (c) 2004 by Peter Zubaj + * + * 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 2 of the License, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef CONNECTIONWIZARD_H +#define CONNECTIONWIZARD_H + +#include + +#include "strglobal.h" +#include "structure.h" +#include "dlgs/connectionwizardbase.h" + +class RouteInfo +{ +private: + RSItemIO *toIO; + + bool Multi; + bool Simple; + +public: + RouteInfo(bool multi, bool simple, RSItemIO *t) + { + toIO = t; + Multi = multi; + Simple = simple; + } + + RouteInfo(const RouteInfo &from) + { + toIO = from.toIO; + Multi = from.Multi; + Simple = from.Simple; + } + + RouteInfo() + { + toIO = NULL; + Multi = false; + Simple = false; + } + + RSItemIO *getToIO() + { + return toIO; + } + + void setToIO(RSItemIO *tio) + { + toIO = tio; + } + + bool getMulti() + { + return Multi; + } + + bool getSimple() + { + return Simple; + } + + void setMulti(bool multi) + { + Multi = multi; + } + + void setSimple(bool simple) + { + Simple = simple; + } + + bool isValid() + { + return toIO != NULL; + } +}; + +class ConnectionWizard : public ConnectionWizardBase +{ + Q_OBJECT + + enum IOType {None, In, Out, FX, PIn, POut} rtype; + RouteInfo route; + StrPatch *pto; + RouteInfo *rptr; + StrGlobal *global; + bool out; + QPtrList ios; + QPtrList patchList; + StrPatch *selPatch; +public: + ConnectionWizard(bool o, StrGlobal *g, RouteInfo *r); + void loadEnd(IOType iotype); + void setState(bool patch, bool end, bool back, bool next, bool finish); +public slots: + void noneClicked(); + void fxClicked(); + void inClicked(); + void outClicked(); + void patchClicked(); + + void finishClicked(); + + void selected(const QString &page); + void patchListClicked(QListBoxItem *item); + void endListClicked(QListBoxItem *item); +}; + +#endif // CONNECTIONWIZARD_H --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/custom_colors.h Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,39 @@ +/* + * qlo10k1 - GUI frontend for ld10k1 + * + * Copyright (c) 2004 by Eduardo García-Mádico Portabella + * + * 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 2 of the License, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +// Common colors +#define DEF_PAINTING_COLOR QColor(0,0,0) +#define LINE_COLOR QColor(125,125,125) +#define BOX_COLOR QColor(0,0,255) +#define BOX_SELECTED_COLOR QColor(255,0,0) +#define POINT_COLOR QColor(0,255,0) +#define TEXT_COLOR QColor(0,0,0) + +// IO colors +#define IO_BOX_COLOR QColor(0,255,0) +#define IO_TEXT_PEN QColor(0,0,0) + +// Pens +#define DEF_PAINTING_PEN QPen(DEF_PAINTING_COLOR) +#define LINE_PEN QPen(LINE_COLOR) +#define BOX_PEN QPen(BOX_COLOR) +#define POINT_PEN QPen(POINT_COLOR) +#define TEXT_PEN QPen(TEXT_COLOR) --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/aboutdialogbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,53 @@ + +AboutDialogBase + + + AboutDialogBase + + + + 0 + 0 + 450 + 359 + + + + About + + + + unnamed + + + + textEdit1 + + + <html><head><meta name="qrichtext" content="1" /></head><body style="font-size:10pt;font-family:Sans"> +<p align="center"><span style="font-size:12pt;font-weight:600">qlo10k1 - GUI for ld10k1</span></p> +<p align="center"><span style="font-size:12pt;font-weight:600">Copyright (C) 2004 by Peter Zubaj</span></p> +<p><br /><span style="font-weight:600">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 2 of the License, or (at your option) any later version.</span> <br /><br /><span style="font-weight:600">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.</span></p> +</body></html> + + + + WidgetWidth + + + + + pbOK + + + &Close + + + Alt+C + + + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/connectionwizardbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,181 @@ + +ConnectionWizardBase + + + ConnectionWizardBase + + + + 0 + 0 + 282 + 229 + + + + Connection + + + + pageType + + + Connection target + + + + unnamed + + + + buttonGroup1 + + + NoFrame + + + Plain + + + + + + + unnamed + + + 1 + + + 0 + + + + layout17 + + + + unnamed + + + + rbNone + + + None + + + + + rbFX + + + FX + + + + + rbInput + + + Input + + + + + rbOutput + + + Output + + + + + rbPatch + + + Patch + + + + + + + + + + + pagePatch + + + Patch + + + + unnamed + + + + layout5 + + + + unnamed + + + + lbPatch + + + + + layout4 + + + + unnamed + + + + cbMulti + + + Multi + + + + + cbSimple + + + Simple + + + + + + + + + + + pageEnd + + + End + + + + unnamed + + + + lbEnd + + + + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/filecontroldialogbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,252 @@ + +FileControlDialogBase + + + FileControlDialogBase + + + + 0 + 0 + 566 + 363 + + + + File control + + + + unnamed + + + + lbControls + + + + + layout14 + + + + unnamed + + + + spacer7 + + + Horizontal + + + Expanding + + + + 211 + 21 + + + + + + pbUp + + + &Up + + + + + pbDown + + + &Down + + + + + + + layout34 + + + + unnamed + + + + spacer12 + + + Horizontal + + + Expanding + + + + 141 + 31 + + + + + + pbOK + + + &OK + + + true + + + false + + + + + pbCancel + + + &Cancel + + + + + + + layout39 + + + + unnamed + + + + textLabel3 + + + + 0 + 5 + 0 + 0 + + + + Index: + + + + + textLabel10 + + + Loaded name: + + + + + spacer11 + + + Horizontal + + + Expanding + + + + 346 + 21 + + + + + + sbIndex + + + + 0 + 0 + 0 + 0 + + + + 100000000 + + + -1 + + + -1 + + + + + leLoadedName + + + + + sbVisible + + + + + textLabel12 + + + Visible: + + + + + textLabel11 + + + Translation: + + + + + + None + + + + + Table100 + + + + + Bass + + + + + Treble + + + + + On/Off + + + + cbTranslation + + + + + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/filecontrolsdialogbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,21 @@ + +FileControlsDialogBase + + + FileControlsDialogBase + + + + 0 + 0 + 492 + 314 + + + + File controls + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/loadpatchdialogbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,375 @@ + +LoadPatchDialogBase + + + LoadPatchDialogBase + + + + 0 + 0 + 608 + 454 + + + + Load patch + + + + unnamed + + + + layout26 + + + + unnamed + + + + lePatchName + + + + + leFileName + + + false + + + + + textLabel6 + + + Patch name: + + + + + textLabel3 + + + File: + + + + + + + tabOptions + + + true + + + + tabControls + + + Con&trols + + + + unnamed + + + + lbFileCtrl + + + Single + + + + + textLabel4 + + + File controls: + + + + + layout11 + + + + unnamed + + + + layout10 + + + + unnamed + + + + tlMax + + + Max: + + + + + leMax + + + false + + + true + + + + + tlTransl + + + Transl: + + + + + leTranslation + + + false + + + true + + + + + tlMin + + + Min: + + + + + leMin + + + false + + + true + + + + + + + layout9 + + + + unnamed + + + + tlVal + + + Values: + + + + + lbValues + + + + + + + + + + + tabNames + + + &Names + + + + unnamed + + + + layout10 + + + + unnamed + + + + textLabel2 + + + Inputs: + + + + + lbInputs + + + + + textLabel1 + + + Outputs: + + + + + lbOutputs + + + + + + + + + + layout17 + + + + unnamed + + + + spacer7 + + + Horizontal + + + Expanding + + + + 211 + 31 + + + + + + pbOK + + + &OK + + + true + + + + + pbCancel + + + &Cancel + + + + + + + layout16 + + + + unnamed + + + + textLabel7 + + + + 0 + 5 + 0 + 0 + + + + Insert: + + + + + + Before + + + + + After + + + + cbBefAfter + + + + 0 + 0 + 0 + 0 + + + + + + textLabel8 + + + + 0 + 5 + 0 + 0 + + + + Patch: + + + + + cbWhere + + + + 1 + 5 + 0 + 0 + + + + + + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/mainwndbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,179 @@ + +MainWndBase + + + MainWndBase + + + + 0 + 0 + 494 + 360 + + + + qlo10k1 - emu10k1 patch loader + + + + unnamed + + + + tabMain + + + + tabLoad + + + &Load + + + + unnamed + + + + layout11 + + + + unnamed + + + + + Order + + + true + + + true + + + + + Num + + + true + + + true + + + + + Patch name + + + true + + + true + + + + lvPatches + + + true + + + + + layout3 + + + + unnamed + + + + pbLoad + + + Load + + + + + cbFromFile + + + false + + + From file + + + true + + + + + pbUnload + + + Unload + + + + + spacer2 + + + Vertical + + + Expanding + + + + 31 + 71 + + + + + + + + tlPatches + + + Patches: + + + + + + + + + tabRouting + + + &Routing + + + + unnamed + + + + + + + + + menubar + + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/newiodialogbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,105 @@ + +NewIODialogBase + + + NewIODialogBase + + + + 0 + 0 + 297 + 284 + + + + Form2 + + + + unnamed + + + + + Num + + + true + + + true + + + + + New Column + + + true + + + true + + + + lvIOs + + + + + layout1 + + + + unnamed + + + + pbOK + + + false + + + &OK + + + Alt+O + + + + + pbCancel + + + &Cancel + + + Alt+C + + + + + spacer1 + + + Vertical + + + Expanding + + + + 41 + 171 + + + + + + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/patchdialogbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,247 @@ + +PatchDialogBase + + + PatchDialogBase + + + + 0 + 0 + 600 + 480 + + + + Patch info + + + + unnamed + + + + layout35 + + + + unnamed + + + + tabOptions + + + true + + + + tabControls + + + Con&trols + + + + unnamed + + + + layout33 + + + + unnamed + + + + textLabel5 + + + Loaded controls: + + + + + lbLoadedCtrl + + + + + + + + + tabNames + + + &Names + + + + unnamed + + + + layout10 + + + + unnamed + + + + textLabel2 + + + Inputs: + + + + + lbInputs + + + + + textLabel1 + + + Outputs: + + + + + lbOutputs + + + + + + + + + tabConnection + + + Co&nnection + + + + unnamed + + + + layout11 + + + + unnamed + + + + lbInputs_2 + + + Inputs: + + + + + lbConnInputs + + + + + lbInputs_2_2 + + + Outputs: + + + + + lbConnOutputs + + + + + + + + + + layout34 + + + + unnamed + + + + textLabel6 + + + Patch name: + + + + + lePatchName + + + + + + + layout17_2 + + + + unnamed + + + + spacer7 + + + Horizontal + + + Expanding + + + + 211 + 31 + + + + + + pbOK + + + &OK + + + true + + + + + pbCancel + + + &Cancel + + + + + + + + + + + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qlo10k1/src/dlgs/preferencesbase.ui Fri Mar 18 16:42:48 2005 +0000 @@ -0,0 +1,394 @@ + +PreferencesBase + + + PreferencesBase + + + + 0 + 0 + 540 + 329 + + + + Settings + + + + unnamed + + + + layout10 + + + + unnamed + + + + tabSet + + + + tabCard + + + &Card + + + + unnamed + + + + layout8 + + + + unnamed + + + + layout7 + + + + unnamed + + + + layout6 + + + + unnamed + + + + textLabel1 + + + Cards: + + + + + spacer4_2 + + + Vertical + + + Expanding + + + + 20 + 51 + + + + + + + + lbCards + + + + + + + layout4 + + + + unnamed + + + + spacer2 + + + Horizontal + + + Expanding + + + +