Browse Source

Initial import of kmatplot 0.4

master
Timothy Pearson 8 years ago
commit
3dd68d9a9c
100 changed files with 41014 additions and 0 deletions
  1. +1
    -0
      AUTHORS
  2. +280
    -0
      COPYING
  3. +37
    -0
      ChangeLog
  4. +167
    -0
      INSTALL
  5. +31
    -0
      Makefile.am
  6. +14
    -0
      Makefile.dist
  7. +1
    -0
      NEWS
  8. +21
    -0
      README
  9. +1
    -0
      TODO
  10. +37
    -0
      acconfig.h
  11. +4985
    -0
      acinclude.m4
  12. +5102
    -0
      aclocal.m4
  13. +1415
    -0
      config.guess
  14. +63
    -0
      config.h.in
  15. +1505
    -0
      config.sub
  16. +306
    -0
      configure.in
  17. +6
    -0
      dist.sh
  18. +183
    -0
      kmatplot.doxygen
  19. +8732
    -0
      kmatplot.kdevprj
  20. +53
    -0
      kmatplot.kdevses
  21. +14
    -0
      kmatplot.lsm
  22. +87
    -0
      kmatplot.spec
  23. +60
    -0
      kmatplot/Makefile.am
  24. +8
    -0
      kmatplot/config/Makefile.am
  25. +14
    -0
      kmatplot/demos/Makefile.am
  26. +69
    -0
      kmatplot/demos/demo2d.cpp
  27. +74
    -0
      kmatplot/demos/demo3d.cpp
  28. +87
    -0
      kmatplot/dialogs/Makefile.am
  29. +457
    -0
      kmatplot/dialogs/ksattrbtn.cpp
  30. +146
    -0
      kmatplot/dialogs/ksattrbtn.h
  31. +1157
    -0
      kmatplot/dialogs/ksattrpanel.cpp
  32. +244
    -0
      kmatplot/dialogs/ksattrpanel.h
  33. +88
    -0
      kmatplot/dialogs/ksattrpanelinterf.cpp
  34. +162
    -0
      kmatplot/dialogs/ksattrpanelinterf.ui
  35. +148
    -0
      kmatplot/dialogs/ksattrpanelinterf2.ui
  36. +205
    -0
      kmatplot/dialogs/kschannellist.cpp
  37. +125
    -0
      kmatplot/dialogs/kschannellist.h
  38. +103
    -0
      kmatplot/dialogs/ksconfiguredlg.cpp
  39. +40
    -0
      kmatplot/dialogs/ksconfiguredlg.h
  40. +153
    -0
      kmatplot/dialogs/ksconfiguredlginterf.cpp
  41. +440
    -0
      kmatplot/dialogs/ksconfiguredlginterf.ui
  42. +18
    -0
      kmatplot/dialogs/ksconfiguredlginterf.ui.h
  43. +169
    -0
      kmatplot/dialogs/ksdatasetdlg.cpp
  44. +71
    -0
      kmatplot/dialogs/ksdatasetdlg.h
  45. +97
    -0
      kmatplot/dialogs/ksdatasetdlginterf.cpp
  46. +182
    -0
      kmatplot/dialogs/ksdatasetdlginterf.ui
  47. +109
    -0
      kmatplot/dialogs/ksexportdlg.cpp
  48. +49
    -0
      kmatplot/dialogs/ksexportdlg.h
  49. +111
    -0
      kmatplot/dialogs/ksexportdlginterf.cpp
  50. +255
    -0
      kmatplot/dialogs/ksexportdlginterf.ui
  51. +370
    -0
      kmatplot/dialogs/ksexportpicturedlg.cpp
  52. +71
    -0
      kmatplot/dialogs/ksexportpicturedlg.h
  53. +451
    -0
      kmatplot/dialogs/ksexportpicturedlginterf.cpp
  54. +1912
    -0
      kmatplot/dialogs/ksexportpicturedlginterf.ui
  55. +507
    -0
      kmatplot/dialogs/ksgraphwizard.cpp
  56. +121
    -0
      kmatplot/dialogs/ksgraphwizard.h
  57. +314
    -0
      kmatplot/dialogs/ksgraphwizardinterf.cpp
  58. +639
    -0
      kmatplot/dialogs/ksgraphwizardinterf.ui
  59. +53
    -0
      kmatplot/dialogs/ksgriddlg.cpp
  60. +41
    -0
      kmatplot/dialogs/ksgriddlg.h
  61. +93
    -0
      kmatplot/dialogs/ksgriddlginterf.cpp
  62. +271
    -0
      kmatplot/dialogs/ksgriddlginterf.ui
  63. +160
    -0
      kmatplot/dialogs/ksimportdlg.cpp
  64. +88
    -0
      kmatplot/dialogs/ksimportdlg.h
  65. +110
    -0
      kmatplot/dialogs/ksimportdlginterf.cpp
  66. +220
    -0
      kmatplot/dialogs/ksimportdlginterf.ui
  67. +62
    -0
      kmatplot/dialogs/ksmpanel.cpp
  68. +40
    -0
      kmatplot/dialogs/ksmpanel.h
  69. +67
    -0
      kmatplot/dialogs/ksmpanelformulainterf.cpp
  70. +145
    -0
      kmatplot/dialogs/ksmpanelformulainterf.ui
  71. +88
    -0
      kmatplot/dialogs/ksmpanelmatrixinterf.cpp
  72. +218
    -0
      kmatplot/dialogs/ksmpanelmatrixinterf.ui
  73. +102
    -0
      kmatplot/dialogs/ksmpanelrefinterf.cpp
  74. +259
    -0
      kmatplot/dialogs/ksmpanelrefinterf.ui
  75. +438
    -0
      kmatplot/dialogs/ksmpanels.cpp
  76. +121
    -0
      kmatplot/dialogs/ksmpanels.h
  77. +75
    -0
      kmatplot/dialogs/ksmpanelstringinterf.cpp
  78. +167
    -0
      kmatplot/dialogs/ksmpanelstringinterf.ui
  79. +213
    -0
      kmatplot/dialogs/ksobjecttreedlg.cpp
  80. +65
    -0
      kmatplot/dialogs/ksobjecttreedlg.h
  81. +96
    -0
      kmatplot/dialogs/ksobjecttreedlginterf.cpp
  82. +149
    -0
      kmatplot/dialogs/ksobjecttreedlginterf.ui
  83. +228
    -0
      kmatplot/dialogs/kspanel.cpp
  84. +104
    -0
      kmatplot/dialogs/kspanel.h
  85. +227
    -0
      kmatplot/dialogs/kspanelaxisinterf.cpp
  86. +680
    -0
      kmatplot/dialogs/kspanelaxisinterf.ui
  87. +139
    -0
      kmatplot/dialogs/kspanelcarrowinterf.cpp
  88. +380
    -0
      kmatplot/dialogs/kspanelcarrowinterf.ui
  89. +223
    -0
      kmatplot/dialogs/kspanelclabelinterf.cpp
  90. +534
    -0
      kmatplot/dialogs/kspanelclabelinterf.ui
  91. +81
    -0
      kmatplot/dialogs/kspanelclegendcinterf.cpp
  92. +154
    -0
      kmatplot/dialogs/kspanelclegendcinterf.ui
  93. +199
    -0
      kmatplot/dialogs/kspanelcontourinterf.cpp
  94. +542
    -0
      kmatplot/dialogs/kspanelcontourinterf.ui
  95. +156
    -0
      kmatplot/dialogs/kspanelcposinterf.cpp
  96. +370
    -0
      kmatplot/dialogs/kspanelcposinterf.ui
  97. +158
    -0
      kmatplot/dialogs/kspanelcrectinterf.cpp
  98. +376
    -0
      kmatplot/dialogs/kspanelcrectinterf.ui
  99. +244
    -0
      kmatplot/dialogs/kspanelcubeinterf.cpp
  100. +611
    -0
      kmatplot/dialogs/kspanelcubeinterf.ui

+ 1
- 0
AUTHORS View File

@@ -0,0 +1 @@
Kamil Dobkowski <kamildobk@poczta.onet.pl>

+ 280
- 0
COPYING View File

@@ -0,0 +1,280 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, 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

+ 37
- 0
ChangeLog View File

@@ -0,0 +1,37 @@
0.3.1
- bugfixes
- examples
- pixmap buffering
- python module
0.3
- formulas
- cut/copy/paste,
- undo/redo,
- group/ungroup objects,
- multiple pages,
- arbitrary number of axes per graph,
- surfaces and contours can display non-gridded data ( using Delunay triangulation ),
- colored area under the surface, v-gradient, plotting 4d data ( still under development ),
- XY plots - stairs,
- custom tics values,
- fast selecting of graph elements by middle button click,
- general data storing policy has changed - vectors are stored as columns,
- many bug fixes.
0.2.2
- bugfixes: surfaces use row index, autorun from within Octave and Scilab,
loads/saves arrow styles, no crashing when loading/saving or deleting objects,
Scilab functions updated.
- exporting(requires) to Qt Metafile, PNG, JPEG, BMP, pdf(GhostScript),
eps(Ghostscript), xfig(pstoedit) and other formats provided by
GhostScript, pstoedit or ImageMagick.
- global data sheets.
- rulers added to the page view
- 3d scatter and trajectory plots
0.2.1
- compile problems (hopefully) fixed
- new autoconf/automake scripts
- smoother GUI
- new gradient implementation.
0.2
- major redesign
- QGL widget is distributed with KMatplot

+ 167
- 0
INSTALL View File

@@ -0,0 +1,167 @@
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, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').

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 at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.

The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' 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 a while. While running, it prints some
messages telling which features it is checking for.

2. Type `make' to compile the package.

3. Type `make install' to install the programs and any data files and
documentation.

4. You can remove the program binaries and object files from the
source code directory by typing `make clean'.

Compilers and Options
=====================

Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure

Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure

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 supports 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=PATH'.

You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.

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' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM

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 host type.

If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.

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.

Operation Controls
==================

`configure' recognizes the following options to control how it
operates.

`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.

`--help'
Print a summary of the options to `configure', and exit.

`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made.

`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.

`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.

`configure' also accepts some other, not widely useful, options.


+ 31
- 0
Makefile.am View File

@@ -0,0 +1,31 @@
####### kdevelop will overwrite this part!!! (begin)##########

SUBDIRS = kmatplot

EXTRA_DIST = kmatplot.kdevprj AUTHORS COPYING ChangeLog INSTALL README TODO kmatplot.lsm

####### kdevelop will overwrite this part!!! (end)############
# not a GNU package. You can remove this line, if
# have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = foreign

#$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
# cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;

$(top_srcdir)/subdirs:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs

$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4

MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files

package-messages:
$(MAKE) -f admin/Makefile.common package-messages
$(MAKE) -C po merge

EXTRA_DIST = admin

dist-hook:
cd $(top_distdir) && perl admin/am_edit -padmin
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs

+ 14
- 0
Makefile.dist View File

@@ -0,0 +1,14 @@
all:
@echo "This Makefile is only for the CVS repository"
@echo "This will be deleted before making the distribution"
@echo ""
@if test ! -d admin; then \
echo "Please recheckout this module!" ;\
echo "for cvs: use checkout once and after that update again" ;\
echo "for cvsup: checkout kde-common from cvsup and" ;\
echo " link kde-common/admin to ./admin" ;\
exit 1 ;\
fi
$(MAKE) -f admin/Makefile.common cvs

.SILENT:

+ 1
- 0
NEWS View File

@@ -0,0 +1 @@

+ 21
- 0
README View File

@@ -0,0 +1,21 @@


1. REQUIREMENTS

KDE-2.1.1
Mesa-devel-3.4-13
Mesa-3.4-13
kdesupport-devel-2.1-3
kdelibs-sound-devel-2.1.1-5
kdelibs-devel-2.1.1-5
qt-devel-2.3.0-3

2. INSTALLING IN A DIFFERENT DIRECTORY

./configure --prefix=/opt
make install

export KDEDIR=/opt
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib
export PATH=$PATH:/opt/bin
kmatplot

+ 1
- 0
TODO View File

@@ -0,0 +1 @@


+ 37
- 0
acconfig.h View File

@@ -0,0 +1,37 @@
/* Define if the C++ compiler supports BOOL */
#undef HAVE_BOOL

#undef VERSION

#undef PACKAGE

/* defines if having libgif (always 1) */
#undef HAVE_LIBGIF

/* defines if having libjpeg (always 1) */
#undef HAVE_LIBJPEG

/* defines which to take for ksize_t */
#undef ksize_t

/* define if you have setenv */
#undef HAVE_FUNC_SETENV

/* Define to 1 if NLS is requested. */
#undef ENABLE_NLS

/* Define as 1 if you have the stpcpy function. */
#undef HAVE_STPCPY

/* Define if your locale.h file contains LC_MESSAGES. */
#undef HAVE_LC_MESSAGES

/* Define if you need the GNU extensions to compile */
#undef _GNU_SOURCE

#ifndef HAVE_BOOL
#define HAVE_BOOL
typedef int bool;
const bool false = 0;
const bool true = 1;
#endif

+ 4985
- 0
acinclude.m4
File diff suppressed because it is too large
View File


+ 5102
- 0
aclocal.m4
File diff suppressed because it is too large
View File


+ 1415
- 0
config.guess
File diff suppressed because it is too large
View File


+ 63
- 0
config.h.in View File

@@ -0,0 +1,63 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */

/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN

/* The number of bytes in a char. */
#undef SIZEOF_CHAR

/* The number of bytes in a char *. */
#undef SIZEOF_CHAR_P

/* The number of bytes in a int. */
#undef SIZEOF_INT

/* The number of bytes in a long. */
#undef SIZEOF_LONG

/* Define if you have the res_init function. */
#undef HAVE_RES_INIT

/* Name of package */
#undef PACKAGE

/* Version number of package */
#undef VERSION

/* C++ compiler supports template repository */
#undef HAVE_TEMPLATE_REPOSITORY

/* Defines if your system has the crypt function */
#undef HAVE_CRYPT

/* Define the real type of socklen_t */
#undef socklen_t

/* Compatibility define */
#undef ksize_t

/* Define if you have libz */
#undef HAVE_LIBZ

/* Define if you want Xinerama support */
#undef HAVE_XINERAMA

/* Define if you have libpng */
#undef HAVE_LIBPNG

/* Define if you have libjpeg */
#undef HAVE_LIBJPEG

/* Defines if you have GL (Mesa, OpenGL, ...) */
#undef HAVE_GL

/* Define if you have the development files for python */
#undef HAVE_PYTHON

/* Define if you have the development files for python */
#undef HAVE_PYTHON

/* Define if you have the development files for python */
#undef HAVE_PYTHON


+ 1505
- 0
config.sub
File diff suppressed because it is too large
View File


+ 306
- 0
configure.in View File

@@ -0,0 +1,306 @@
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas
# Additional m4 tests in this file are written by kamildobk@poczta.onet.pl

dnl Process this file with autoconf to produce a configure script.

AC_INIT(acinclude.m4) dnl a source file from your sub dir

dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)

AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM

dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(kmatplot,0.4)

dnl KDE_SET_PREFIX

AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
fi

dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done

dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL

AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
all_libraries="$all_libraries $USER_LDFLAGS"
all_includes="$all_includes $USER_INCLUDES"
AC_SUBST(all_includes)
AC_SUBST(all_libraries)

dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS

AC_PATH_QT

dnl Perform program name transformation
AC_ARG_PROGRAM


dnl PACKAGE set before
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------

dnl -------------------------------------------------------------------------------------------------------

dnl Find Octave scripts dir

AC_DEFUN(AC_OCT_INSTALL_DIR,
[
AC_REQUIRE_CPP()
AC_REQUIRE([AC_HAVE_MKOCTFILE])
AC_ARG_WITH( oct-dir, [ --with-oct-dir=DIR install '.oct' files in DIR ], oct_path=$withval, oct_path="" )
AC_MSG_CHECKING("install path for Octave scripts")

if test "x$oct_path" = x; then
AC_CACHE_VAL( ac_cv_path_oct, [
save_IFS=$IFS
IFS=":"
octave_home=
for try_path in $PATH; do
if test -f "$try_path/octave"; then
octave_home=$try_path
break
fi
done
IFS=$save_IFS
if test "x$octave_home" = x; then
ac_cv_path_oct=
else
ac_cv_path_oct=$octave_home/../share/octave/site/m
fi
])
installoctdir=$ac_cv_path_oct
else
installoctdir=$oct_path
fi

if test "x$installoctdir" = x; then
AC_MSG_RESULT("do not install")
else
AC_MSG_RESULT("$installoctdir")
fi

AC_SUBST(installoctdir)
])


dnl -------------------------------------------------------------------------------------------------------

dnl Check if octave 'makeoctfile' is present

AC_DEFUN(AC_HAVE_MKOCTFILE,
[
AC_REQUIRE_CPP()
AC_ARG_WITH( mkoctfile-path, [ --with-mkoctfile-path=DIR a path to 'mkoctfile' script], make_oct_path=$withval, make_oct_path="" )

AC_PATH_PROG( makeoct, mkoctfile, "", "$make_oct_path:$PATH" )

AC_SUBST(makeoct)
])

dnl -------------------------------------------------------------------------------------------------------

dnl Find Scilab library dir

AC_DEFUN(AC_SCILAB_LIB_DIR,
[
AC_REQUIRE_CPP()
AC_ARG_WITH( scilab-lib-dir, [ --with-scilab-lib-dir=DIR path to Scilab libraries and includes ], libscidir=$withval, libscidir="" )
AC_MSG_CHECKING("Scilab libraries and includes path")

if test "x$libscidir" = x; then
AC_CACHE_VAL( ac_cv_path_scilab, [
ac_cv_path_scilab=$(eval 'echo "printf(\" \");printf(SCI);quit;" | scilab -nw | tail --lines 1' 2>/dev/null)
])
libscidir=$ac_cv_path_scilab
fi

if test ! -d "$libscidir" -a "x$libscidir" != x; then
libscidir=
fi

if test "x$libscidir" = x; then
AC_MSG_RESULT("not found")
else
AC_MSG_RESULT("$libscidir")
fi

AC_SUBST(libscidir)
])

dnl -------------------------------------------------------------------------------------------------------

dnl Is Qt GL extension built-in Qt or it must be linked additionaly.

AC_DEFUN(AC_HAVE_QGL,
[
AC_REQUIRE_CPP()
AC_REQUIRE([AC_HAVE_GL])
AC_MSG_CHECKING("Qt GL Extension")
AC_ARG_WITH( qgl-extension, [ --with-qgl-extension=LIBRARY link to Qt GL extension in a separate library ], arg_qgl_extension=$withval, arg_qgl_extension="" )

dnl make link tests with C++
AC_LANG_CPLUSPLUS
if test "x$arg_qgl_extension" = x; then
dnl Variable names mus start with ac_cv_'function'
AC_CACHE_VAL( ac_cv_lib_qgl_extension, [
ac_save_ldflags="$LDFLAGS"
ac_save_cxxflags="$CXXFLAGS"
LDFLAGS="$LDFLAGS $all_libraries -lqgl"
CXXFLAGS="$CXXFLAGS $all_includes"
test -n "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS"
AC_TRY_LINK( [ #include <qgl.h> ], [], ac_cv_lib_qgl_extension="-lqgl", ac_cv_lib_qgl_extension="built-in" )
LDFLAGS="$ac_save_ldflags"
CXXFLAGS="$ac_save_cxxflags"
])
if test "$ac_cv_lib_qgl_extension" = "built-in"; then
QGLLIB=""
else
QGLLIB=$ac_cv_lib_qgl_extension
fi
arg_qgl_extension=$ac_cv_lib_qgl_extension
else
QGLLIB=$arg_qgl_extension
fi
AC_MSG_RESULT("$arg_qgl_extension")
AC_SUBST(QGLLIB)
])

dnl ---------------------------------------------------------------------------------------------------------

dnl Find Qt install prefix - place for the config file

AC_DEFUN(AC_QSETTINGS_DIR,
[
AC_REQUIRE_CPP()
AC_ARG_WITH( qsettings-dir, [ --with-qsettings-dir=DIR path to Qt settings ( usually QT_INSTALL_PREFIX/etc/settings ) ], qsettingsdir=$withval, qsettingsdir="" )
AC_MSG_CHECKING("QSettings path")

if test "x$qsettingsdir" = x; then
AC_CACHE_VAL( ac_cv_path_qsettingsdir, [
ac_cv_path_qsettingsdir="$QTDIR/etc/settings"
])
qsettingsdir=$ac_cv_path_qsettingsdir
fi

if test "x$qsettingsdir" = "x/etc/settings"; then
AC_MSG_ERROR("QTDIR is needed to find QSettings path. Please set QTDIR and run configure again !")
else
AC_MSG_RESULT("$qsettingsdir")
fi

dnl QSETTINGSDIR=$qsettingsdir
AC_SUBST(QSETTINGSDIR)
])

dnl ---------------------------------------------------------------------------------------------------------

dnl Check for Numpy

AC_DEFUN(AC_HAVE_NUMPY,
[
AC_REQUIRE([KDE_CHECK_PYTHON])
AC_MSG_CHECKING("Numerical Python")
AC_ARG_WITH( numpy, [ --with-numpy=DIR Numerical Python installed in DIR ], arg_numpy=$withval, arg_numpy="" )

if test "x$arg_numpy" = x; then
AC_CACHE_VAL( ac_cv_numpy, [
numpy_possible_locations="$PYTHONMODDIR/site-packages/Numeric $PYTHONMODDIR/Numeric"
ac_cv_numpy=""
AC_FIND_FILE(Numeric.py, $numpy_possible_locations, ac_cv_numpy)
])
dir_found=$ac_cv_numpy
else
dir_found=$arg_numpy
fi

AC_MSG_RESULT($dir_found)
if test "$dir_found" = NO; then
NUMPYDIR=""
else
NUMPYDIR=$dir_found
fi

AC_SUBST(NUMPYDIR)
])


dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------------------------------------





dnl in this space add everything you want to check for;
dnl examples are specific headers, libraries, etc.
dnl all_includes="$QT_INCLUDES $X_INCLUDES $USER_INCLUDES"
dnl AC_SUBST(all_includes)

AC_C_BIGENDIAN
AC_QSETTINGS_DIR
AC_HAVE_GL(GL_DRIVER="YES",GL_DRIVER="")
AC_HAVE_QGL

AC_HAVE_NUMPY
AM_CONDITIONAL(MAKE_PYTHON, test "x$NUMPYDIR" != x )
AC_HAVE_MKOCTFILE
AC_OCT_INSTALL_DIR
AM_CONDITIONAL(MAKE_OCT, test "x$makeoct" != x -a "x$installoctdir" != x )
AC_SCILAB_LIB_DIR
AM_CONDITIONAL(MAKE_SCILAB, test "x$libscidir" != x )




KDE_CREATE_SUBDIRSLIST
dnl add here all your Makefiles. This are created by configure
AC_OUTPUT( \
./Makefile \
kmatplot/Makefile \
kmatplot/config/Makefile \
kmatplot/demos/Makefile \
kmatplot/dialogs/Makefile \
kmatplot/dialogs/templates/Makefile \
kmatplot/docs/Makefile \
kmatplot/docs/en/Makefile \
kmatplot/dtd/Makefile \
kmatplot/examples/Makefile \
kmatplot/formula/Makefile \
kmatplot/interface/Makefile \
kmatplot/octave/Makefile \
kmatplot/pics/Makefile \
kmatplot/pixmaps/Makefile \
kmatplot/python/Makefile \
kmatplot/scilab/Makefile \
kmatplot/widgets/Makefile \
)

+ 6
- 0
dist.sh View File

@@ -0,0 +1,6 @@
#!/bin/sh

make clean
make -f Makefile.dist
./configure
make dist

+ 183
- 0
kmatplot.doxygen View File

@@ -0,0 +1,183 @@
# Doxyfile 1.2.13-20020210

#---------------------------------------------------------------------------
# General configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = "KMatplot library"
PROJECT_NUMBER = 0.4
OUTPUT_DIRECTORY = /home/kamil/kmatplot/kmatplot-api/
OUTPUT_LANGUAGE = English
EXTRACT_ALL = NO
EXTRACT_PRIVATE = NO
EXTRACT_STATIC = NO
EXTRACT_LOCAL_CLASSES = YES
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = YES
ALWAYS_DETAILED_SEC = NO
INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = NO
STRIP_FROM_PATH =
INTERNAL_DOCS = NO
STRIP_CODE_COMMENTS = YES
CASE_SENSE_NAMES = YES
SHORT_NAMES = NO
HIDE_SCOPE_NAMES = NO
VERBATIM_HEADERS = YES
SHOW_INCLUDE_FILES = YES
JAVADOC_AUTOBRIEF = NO
INHERIT_DOCS = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
DISTRIBUTE_GROUP_DOC = NO
TAB_SIZE = 4
GENERATE_TODOLIST = YES
GENERATE_TESTLIST = YES
GENERATE_BUGLIST = YES
ALIASES =
ENABLED_SECTIONS =
MAX_INITIALIZER_LINES = 30
OPTIMIZE_OUTPUT_FOR_C = NO
SHOW_USED_FILES = YES
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = NO
WARNINGS = YES
WARN_IF_UNDOCUMENTED = NO
WARN_FORMAT = "$file:$line: $text"
WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
INPUT = /home/kamil/kmatplot/kmatplot/widgets
FILE_PATTERNS = *.h \
*.hh \
*.H
RECURSIVE = YES
EXCLUDE =
EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS =
EXAMPLE_PATH = /home/kamil/kmatplot/kmatplot/demos
EXAMPLE_PATTERNS =
EXAMPLE_RECURSIVE = NO
IMAGE_PATH =
INPUT_FILTER =
FILTER_SOURCE_FILES = NO
#---------------------------------------------------------------------------
# configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER = NO
INLINE_SOURCES = NO
REFERENCED_BY_RELATION = YES
REFERENCES_RELATION = YES
#---------------------------------------------------------------------------
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
ALPHABETICAL_INDEX = YES
COLS_IN_ALPHA_INDEX = 5
IGNORE_PREFIX =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html
HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = YES
GENERATE_CHI = NO
BINARY_TOC = NO
TOC_EXPAND = YES
DISABLE_INDEX = NO
ENUM_VALUES_PER_LINE = 4
GENERATE_TREEVIEW = YES
TREEVIEW_WIDTH = 250
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
GENERATE_LATEX = NO
LATEX_OUTPUT = latex
COMPACT_LATEX = NO
PAPER_TYPE = a4wide
EXTRA_PACKAGES =
LATEX_HEADER =
PDF_HYPERLINKS = NO
USE_PDFLATEX = NO
LATEX_BATCHMODE = NO
#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------
GENERATE_RTF = NO
RTF_OUTPUT = rtf
COMPACT_RTF = NO
RTF_HYPERLINKS = NO
RTF_STYLESHEET_FILE =
RTF_EXTENSIONS_FILE =
#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------
GENERATE_MAN = NO
MAN_OUTPUT = man
MAN_EXTENSION = .3
MAN_LINKS = NO
#---------------------------------------------------------------------------
# configuration options related to the XML output
#---------------------------------------------------------------------------
GENERATE_XML = NO
#---------------------------------------------------------------------------
# configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
GENERATE_AUTOGEN_DEF = NO
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = NO
EXPAND_ONLY_PREDEF = NO
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED = HAVE_GL
EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
#---------------------------------------------------------------------------
TAGFILES =
GENERATE_TAGFILE =
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
CLASS_DIAGRAMS = YES
HAVE_DOT = YES
CLASS_GRAPH = YES
COLLABORATION_GRAPH = NO
TEMPLATE_RELATIONS = YES
HIDE_UNDOC_RELATIONS = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
DOT_IMAGE_FORMAT = gif
DOT_PATH =
DOTFILE_DIRS =
MAX_DOT_GRAPH_WIDTH = 1024
MAX_DOT_GRAPH_HEIGHT = 1024
GENERATE_LEGEND = YES
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
SEARCHENGINE = NO
CGI_NAME = search.cgi
CGI_URL =
DOC_URL =
DOC_ABSPATH =
BIN_ABSPATH = /usr/local/bin/
EXT_DOC_PATHS =

+ 8732
- 0
kmatplot.kdevprj
File diff suppressed because it is too large
View File


+ 53
- 0
kmatplot.kdevses View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE KDevPrjSession ><KDevPrjSession>
<Mainframe MaximizeMode="1" />
<DocsAndViews NumberOfDocuments="16" >
<Doc0 CursorPosLine="0" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="0" FileName="/home/kamil/kmatplot/kmatplot/formula/mpsymbols.h" >
<View0 Top="21" Width="400" Attach="1" Height="300" Left="3" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc0>
<Doc1 CursorPosLine="97" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="12" FileName="/home/kamil/kmatplot/kmatplot/formula/mpsymbols.cpp" >
<View0 Top="173" Width="877" Attach="1" Height="462" Left="22" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc1>
<Doc2 CursorPosLine="0" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="0" FileName="/home/kamil/kmatplot/kmatplot/kmatplotshell.h" >
<View0 Top="59" Width="877" Attach="1" Height="448" Left="41" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc2>
<Doc3 CursorPosLine="0" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="0" FileName="/home/kamil/kmatplot/kmatplot/main.cpp" >
<View0 Top="78" Width="877" Attach="1" Height="448" Left="60" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc3>
<Doc4 CursorPosLine="26" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="63" FileName="/home/kamil/kmatplot/kmatplot/formula/Makefile.am" >
<View0 Top="97" Width="877" Attach="1" Height="448" Left="79" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc4>
<Doc5 CursorPosLine="55" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="46" FileName="/home/kamil/kmatplot/kmatplot/Makefile.am" >
<View0 Top="116" Width="877" Attach="1" Height="448" Left="98" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc5>
<Doc6 CursorPosLine="98" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="78" FileName="/home/kamil/kmatplot/kmatplot/formula/mpdelunay.h" >
<View0 Top="135" Width="877" Attach="1" Height="448" Left="117" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc6>
<Doc7 CursorPosLine="125" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="21" FileName="/home/kamil/kmatplot/kmatplot/formula/mpdelunay.cpp" >
<View0 Top="306" Width="877" Attach="1" Height="462" Left="288" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc7>
<Doc8 CursorPosLine="478" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="22" FileName="/home/kamil/kmatplot/kmatplot/dialogs/ksgraphwizard.cpp" >
<View0 Top="173" Width="873" Attach="1" Height="476" Left="155" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc8>
<Doc9 CursorPosLine="0" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="0" FileName="/home/kamil/kmatplot/kmatplot/formula/mpformula.h" >
<View0 Top="192" Width="877" Attach="1" Height="448" Left="174" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc9>
<Doc10 CursorPosLine="0" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="0" FileName="/home/kamil/kmatplot/kmatplot/formula/mpformula.cpp" >
<View0 Top="211" Width="877" Attach="1" Height="448" Left="193" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc10>
<Doc11 CursorPosLine="3" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="47" FileName="/home/kamil/kmatplot/configure.in" >
<View0 Top="249" Width="873" Attach="1" Height="460" Left="231" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc11>
<Doc12 CursorPosLine="0" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="40" FileName="/home/kamil/kmatplot/kmatplot.spec" >
<View0 Top="268" Width="873" Attach="1" Height="460" Left="250" Focus="1" Type="KWriteView" MinMaxMode="0" />
</Doc12>
<Doc13 CursorPosLine="5" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="35" FileName="/home/kamil/kmatplot/kmatplot.lsm" >
<View0 Top="287" Width="873" Attach="1" Height="460" Left="269" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc13>
<Doc14 CursorPosLine="0" Type="KWriteDoc" NumberOfViews="1" CursorPosCol="0" FileName="/home/kamil/kmatplot/libtool" >
<View0 Top="306" Width="873" Attach="1" Height="460" Left="288" Focus="0" Type="KWriteView" MinMaxMode="0" />
</Doc14>
<Doc15 Type="CDocBrowser" NumberOfViews="1" FileName="file:/usr/local/qt/doc/html/qsqlpropertymap.html#insert" >
<View Top="209" Width="130" Attach="1" Height="142" Left="209" Focus="0" Type="KHTMLView" MinMaxMode="2" />
</Doc15>
</DocsAndViews>
</KDevPrjSession>

+ 14
- 0
kmatplot.lsm View File

@@ -0,0 +1,14 @@
Begin3
Title: KMatplot
Version: 0.4
Entered-date:
Description: KMatplot is a gnuplot-like tools to generate plots either in two or three dimensions.
Keywords: plot graph science Qt Octave
Author: Kamil Dobkowski <kamildobk@poczta.onet.pl>
Maintained-by: Kamil Dobkowski <kamildobk@poczta.onet.pl>
Primary-site:
Home-page: http://kmatplot.sourceforge.net
Original-site:
Platforms: Linux and other Unices
Copying-policy: GNU Public License
End

+ 87
- 0
kmatplot.spec View File

@@ -0,0 +1,87 @@
# You might want to change the next line, the rest should be ok
%define qtdir /usr/local/qt

Name: kmatplot
URL: http://kmatplot.sourceforge.net
Summary: Science plotting tool
Version: 0.4
Release: 1
Copyright: GPL
Vendor: kamil <kamildobk@poczta.onet.pl>
Packager: kamil <kamildobk@poczta.onet.pl>
Group: Applications/Engineering
Source: kmatplot-0.4.tar.gz
BuildRoot: /var/tmp/%{name}-root


%description
KMatplot is an Origin-like tool to generate scientific plots either in two or three dimensions.
Source package contains also Scilab support.


%prep
rm -rf $RPM_BUILD_ROOT
%setup -q

%build
export QTDIR=%{qtdir}
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG -DNDEBUG" ./configure --prefix=/usr/local
make

%install
make DESTDIR=$RPM_BUILD_ROOT install-strip

cd $RPM_BUILD_ROOT

find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
$RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
-e '/\/config\//s|^|%config|' >> \
$RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
$RPM_BUILD_DIR/file.list.%{name}

grep "\.oct$" $RPM_BUILD_DIR/file.list.%{name} > \
$RPM_BUILD_DIR/file.list.%{name}-octave

grep "\.py$" $RPM_BUILD_DIR/file.list.%{name} > \
$RPM_BUILD_DIR/file.list.%{name}-python

grep "\.pth$" $RPM_BUILD_DIR/file.list.%{name} >> \
$RPM_BUILD_DIR/file.list.%{name}-python

egrep -v "\.oct$|\.py$|\.pth$" $RPM_BUILD_DIR/file.list.%{name} > \
$RPM_BUILD_DIR/file.list.%{name}-main

%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name} $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name}-main $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name}-octave $RPM_BUILD_ROOT $RPM_BUILD_DIR/files.list.%{name}-python

%files -f ../file.list.%{name}-main

%package octave
Summary: Functions to transfer data from Octave to KMatplot
Vendor: kamil <kamildobk@poczta.onet.pl>
Group: Applications/Engineering

%description octave
This package contains Octave support, so it is possible to make plots directly from
Octave using 'kplot', 'kimage', 'kmesh' and other functions. Those functions transfer data from
Octave to KMatplot through an Unix socket.

%files octave -f ../file.list.%{name}-octave

%package python
Requires: Numeric
Summary: Functions to transfer data from Python applications to KMatplot
Vendor: Martin Wiechert <martin.wiechert@gmx.de>
Group: Applications/Engineering

%description python
This package contains Python support, so it is possible to make plots directly from
Python using 'kplot', 'kimage', 'kmesh' and other functions. Those functions transfer data from
Numeric Python application to KMatplot through an Unix socket.

%files python -f ../file.list.%{name}-python


+ 60
- 0
kmatplot/Makefile.am View File

@@ -0,0 +1,60 @@
INCLUDES = $(all_includes)

KDE_OPTIONS = qtonly
SUBDIRS = docs examples formula widgets dialogs demos interface octave scilab python dtd config pics pixmaps
METASOURCES = AUTO
bin_PROGRAMS = kmatplot
kmatplot_LDADD = widgets/libplot.a formula/libformula.a dialogs/libdialogs.a $(QGLLIB) $(LIB_QT) $(GLLIB) -lXmu $(LIBSOCKET)
kmatplot_LDFLAGS = $(QT_LDFLAGS) $(X_LDFLAGS) $(USER_LDFLAGS)

kmatplot_SOURCES = ksmatrixsheet.cpp \
ksglobalsettings.cpp \
ksmatrix.cpp \
ksglobalmatrixlist.cpp \
qscobjects.cpp \
ksworkbook.cpp \
kscommands.cpp \
qsctools.cpp \
ksprojectxml.cpp \
kspanelmanager.cpp \
ksobjectfactory.cpp \
ksdataobjectfactory.cpp \
ksdatasymbolfactory.cpp \
ksmatrixeditor.cpp \
ksmatrixmat.cpp \
ksmatrixio.cpp \
ksmatrixiohandler.cpp \
ksmatrixascii.cpp \
kssocketio.cpp \
ksworksheetdlg.cpp \
kmatplotshell.cpp \
ksworkspace.cpp \
kswinpageview.cpp \
kswinworksheet.cpp \
main.cpp

EXTRA_DIST = ksmatrixsheet.h \
ksglobalsettings.h \
ksmatrixeditor.h \
kssocketio.h \
kmatplotshell.h \
ksmatrixascii.h \
ksmatrixio.h \
ksmatrixiohandler.h \
ksworksheetdlg.h \
ksmatrixmat.h \
ksglobalmatrixlist.h \
ksprojectxml.h \
ksmatrix.h \
kspanelmanager.h \
qsctools.h \
qscobjects.h \
ksworkbook.h \
kscommands.h \
ksobjectfactory.h \
ksdataobjectfactory.h \
ksdatasymbolfactory.h \
ksworkspace.h \
kswinpageview.h \
kswinworksheet.h

+ 8
- 0
kmatplot/config/Makefile.am View File

@@ -0,0 +1,8 @@
rcfiles_DATA = kmatplotrc
rcfilesdir = $(QSETTINGSDIR)

CLEANFILES = kmatplotrc

kmatplotrc: Makefile
echo "[General]" > kmatplotrc
echo "installPath=$(prefix)" >> kmatplotrc

+ 14
- 0
kmatplot/demos/Makefile.am View File

@@ -0,0 +1,14 @@
INCLUDES = $(all_includes) -I../widgets

KDE_OPTIONS = qtonly
noinst_PROGRAMS = demo2d demo3d

demo2d_LDADD = ../widgets/libplot.a $(LIB_QT) -lXmu $(QGLLIB) $(GLLIB)
demo2d_LDFLAGS = $(QT_LDFLAGS) $(X_LDFLAGS) $(USER_LDFLAGS)
demo2d_SOURCES = demo2d.cpp
demo2d_METASOURCES = AUTO

demo3d_LDADD = ../widgets/libplot.a $(LIB_QT) -lXmu $(QGLLIB) $(GLLIB)
demo3d_LDFLAGS = $(QT_LDFLAGS) $(X_LDFLAGS) $(USER_LDFLAGS)
demo3d_SOURCES = demo3d.cpp
demo3d_METASOURCES = AUTO

+ 69
- 0
kmatplot/demos/demo2d.cpp View File

@@ -0,0 +1,69 @@

#include <math.h>
#include <qapplication.h>
#include <qmainwindow.h>
#include <qmotifplusstyle.h>

/** see ../widgets dir */
#include "qsplotview.h"
//#include "qsworkbook.h"
#include "qsaxes2d.h"
#include "qscurve.h"
#include "qsclegend.h"

// implementation of QSMatrix
class Curve1 : public QSMatrix {
public:
Curve1() {}
~Curve1() {}
int cols() const { return 1; }
int rows() const { return 100; }
double value( int row, int col ) { return sin( row/10.0 )*100.0; }
};


int main( int argc, char ** argv ) {
QApplication a( argc, argv );
// QApplication::setStyle( new QMotifPlusStyle() );

QMainWindow *mw = new QMainWindow();
mw->setCaption( "plot2d demo" );

// create a workbook with a one empty page.
QSWorkbook *doc = new QSWorkbook( mw );
doc->clear();
doc->pageAdd( new QSPage() );

// create the view and set it as main widget in app window
QSPlotView *view = new QSPlotView( mw );
view->setFullPage( true );
mw->setCentralWidget( view );

// set workbook to be displayed
view->setWorkbook( doc );

// create axes object
QSAxes2D *axes = new QSAxes2D();
// axes doesn't inherit QSCObject ( problems with multiple inheritance )
// so we must use axes->shadowObject() instead
doc->page(0)->objects()->add( axes->shadowObject() );

// create dataset
QSCurve *c = new QSCurve( axes );
// set data to be displayed
c->setMatrix( QSCurve::YVector, new Curve1() );
c->setTitle( "Sample" );
axes->plotAdd( c );

// setting attributes
QSGLine l( QSGLine::Dash );
l.color.set( 255, 0, 0 );
c->setLine( QSCurve::BaseLine, l );
// adding legend
doc->page(0)->objects()->add( new QSCLegend(axes) );

mw->show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}

+ 74
- 0
kmatplot/demos/demo3d.cpp View File

@@ -0,0 +1,74 @@

#include <math.h>
#include <qapplication.h>
#include <qmainwindow.h>
#include <qmotifplusstyle.h>
#include <qprinter.h>
#include <stdlib.h>

/** see ../widgets dir */
#include "qsmatrix.h"
#include "qsplotview.h"
#include "qsaxes3d.h"
#include "qssurface.h"
#include "qsfigure.h"

// implementation of QSMatrix interface
class Surface1 : public QSMatrix {
public:
Surface1() {}
~Surface1() {}
int cols() const { return 100; }
int rows() const { return 100; }
double value( int row, int col ) { return sin( sqrt((row/8-50)*(row/8-50)+(col/8-20)*(col/8-20)) ); }
};



int main( int argc, char ** argv ) {
QApplication a( argc, argv );
// QApplication::setStyle( new QMotifPlusStyle() );

QMainWindow *mw = new QMainWindow();

// create workbook with a one empty page
QSWorkbook *doc = new QSWorkbook( mw );
doc->clear();
doc->pageAdd( new QSPage() );

// printer is used for paper size and displaying printing margins
doc->setPrinter( new QPrinter() );

// create the view
QSPlotView *view = new QSPlotView( mw );
view->setWorkbook( doc );
mw->setCentralWidget( view );

// create axes object and add it to the workbook
QSAxes3D *axes = new QSAxes3D();
doc->page(0)->objects()->add( axes->shadowObject() );
// only selected axes displayed when full page is off
view->selection()->set( axes->shadowObject() );
view->setFullPage( false );

// funny sliders should change the viewpoint
view->bindSlider( QSPlotView::HorizontalSlider, "azimuth", 0, 359 );
view->bindSlider( QSPlotView::VerticalSlider, "elevation", -90, 90 );

// create dataset
QSSurface *s1 = new QSSurface( axes ); axes->plotAdd( s1 );
s1->setMatrix( QSSurface::ZData, new Surface1() );

// this is how we can see to which axis this dataset is bound to
// ( there can be many X Axes in QSAxes3D ).
s1->defaultAxis(QSAxis::XAxisType)->setRange(10.0,100.0);

mw->setCaption( "surface demo" );
mw->show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}

+ 87
- 0
kmatplot/dialogs/Makefile.am View File

@@ -0,0 +1,87 @@
INCLUDES = $(all_includes)

KDE_OPTIONS = qtonly
SUBDIRS = templates
noinst_LIBRARIES = libdialogs.a
libdialogs_a_METASOURCES = AUTO

libdialogs_a_SOURCES = kstextedit.cpp \
kspanel.cpp \
ksmpanel.cpp \
ksattrpanelinterf.ui \
ksattrpanel.cpp \
ksattrbtn.cpp \
kschannellist.cpp \
ksmpanelformulainterf.ui \
ksmpanelmatrixinterf.ui \
ksmpanelrefinterf.ui \
ksmpanelstringinterf.ui \
ksmpanels.cpp \
kspanelaxisinterf.ui \
kspanelcarrowinterf.ui \
kspanelclabelinterf.ui \
kspanelclegendcinterf.ui \
kspanelcontourinterf.ui \
kspanelcposinterf.ui \
kspanelcrectinterf.ui \
kspanelcubeinterf.ui \
kspanelcurveinterf.ui \
kspanelfigureinterf.ui \
kspanelframeinterf.ui \
kspanelgeneralinterf.ui \
kspanelglinterf.ui \
kspanelgradientinterf.ui \
kspanelgridinterf.ui \
kspanelimageinterf.ui \
kspanellightinterf.ui \
kspanelmeshinterf.ui \
kspanelrangeinterf.ui \
kspanelsurfaceinterf.ui \
kspanelviewinterf.ui \
kspanels.cpp \
ksgriddlginterf.ui \
ksimportdlginterf.ui \
ksexportdlginterf.ui \
ksdatasetdlginterf.ui \
ksexportpicturedlginterf.ui \
ksobjecttreedlginterf.ui \
ksconfiguredlginterf.ui \
ksgriddlg.cpp \
ksexportdlg.cpp \
ksimportdlg.cpp \
ksdatasetdlg.cpp \
ksexportpicturedlg.cpp \
ksobjecttreedlg.cpp \
ksconfiguredlg.cpp \
kswizarddlgsurfaceinterf.ui \
kswizarddlgs.cpp \
kssheetdlgcellrangeinterf.ui \
kssheetdlgcoldatainterf.ui \
kssheetdlgsequenceinterf.ui \
kssheetdlgvaluerangeinterf.ui \
kssheetdlgs.cpp \
ksgraphwizardinterf.ui \
ksgraphwizard.cpp
EXTRA_DIST = kstextedit.h \
kspanel.h \
ksattrpanel.h \
ksmpanel.h \
kspanels.h \
ksmpanels.h \
kschannellist.h \
ksattrbtn.h \
ksgriddlg.h \
ksimportdlg.h \
ksexportdlg.h \
ksdatasetdlg.h \
ksexportpicturedlg.h \
ksobjecttreedlg.h \
ksconfiguredlg.h \
kswizarddlgs.h \
kssheetdlgs.h \
ksgraphwizard.h


+ 457
- 0
kmatplot/dialogs/ksattrbtn.cpp View File

@@ -0,0 +1,457 @@
/***************************************************************************
ksattrbtn.cpp
-------------------
begin : Fri Jan 7 2000
copyright : (C) 2000 by Kamil Dobkowski
email : kamildbk@friko.onet.pl
***************************************************************************/

/***************************************************************************
* *
* 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. *
* *
***************************************************************************/

#include "ksattrbtn.h"
#include "ksattrpanel.h"
#include "../widgets/qsdrvqt.h"
#include <qpainter.h>

#define BTN_HSPACE 5
#define BTN_VSPACE 3

KSAttrBtn::KSAttrBtn(QWidget *parent, const char *name )
: QPushButton(parent,name)
{
m_attr_panel = NULL;
setDefault( false );
setAutoDefault( false );
setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ) );
connect( this, SIGNAL(clicked()), this, SLOT(slot_show_panel()) );
}

//-----------------------------------------------------------//

KSAttrBtn::~KSAttrBtn()
{
delete m_attr_panel;
}

//-----------------------------------------------------------//

void KSAttrBtn::slot_show_panel()
{
delete m_attr_panel;
m_attr_panel = new KSAttrPanel( this );
//m_attr_panel->move( 0, 0 );
//m_attr_panel->resize( parentWidget()->size() );
//connect( m_attr_panel, SIGNAL(acceptValue()), this, SLOT(slot_accept_value()) );
prepare( m_attr_panel );
//m_attr_panel->show();
if ( m_attr_panel->exec() ) accept( m_attr_panel );
delete m_attr_panel;
m_attr_panel = NULL;
}

//-----------------------------------------------------------//
/*
void KSAttrBtn::slot_accept_value()
{
if ( m_attr_panel ) {
if ( m_attr_panel->result() ) accept( m_attr_panel );
delete m_attr_panel;
m_attr_panel = NULL;
}
}
*/
//-----------------------------------------------------------//
//-----------------------------------------------------------//
//-----------------------------------------------------------//

KSFillBtn::KSFillBtn( QWidget *parent, const char *name)
:KSAttrBtn(parent,name)
{
}

//-----------------------------------------------------------//

KSFillBtn::~KSFillBtn()
{
}

//-----------------------------------------------------------//

void KSFillBtn::setDialogFill( const QSGFill &new_f )
{
f = new_f;
emit attrChanged();
update();
}

//-----------------------------------------------------------//

void KSFillBtn::drawButtonLabel( QPainter *p )
{
QRect r = rect();
r.setCoords( r.left()+BTN_HSPACE,
r.top()+BTN_VSPACE,
r.right()-BTN_HSPACE,
r.bottom()-BTN_VSPACE );

if ( f.style == QSGFill::Transparent ) {
QFont fnt = font(); fnt.setPointSize( 10 );
p->setFont( fnt );
p->setPen( white );
p->fillRect( r, black );
p->drawText( 0,
0,
size().width(),
size().height(),
AlignHCenter |
AlignVCenter,
tr("Transparent") );
} else {
p->setPen( black );
QSDrvQt drv; // we use only a canvas driver so NULL is allowed
drv.setDC( p, 72, false );
drv.startDrawing();
drv.setFill( f );
drv.drawRect( QSPt2f(r.x(),r.y()), QSPt2f(r.right(),r.bottom()) );
drv.stopDrawing();
}
}

//-----------------------------------------------------------//

void KSFillBtn::prepare( KSAttrPanel *panel )
{
KSSelectFill *fpanel = new KSSelectFill( panel->subPanelPlace1() );
KSSelectColor *cpanel = new KSSelectColor( panel->subPanelPlace2() );
panel->setSubPanel1( fpanel );
panel->setSubPanel2( cpanel );
fpanel->setPanelFill( f );
cpanel->setPanelColor( f.color );
}

//-----------------------------------------------------------//

void KSFillBtn::accept( KSAttrPanel *panel )
{
QSGFill fill = ((KSSelectFill *)panel->subPanel1())->panelFill();
fill.color = ((KSSelectColor *)panel->subPanel2())->panelColor();
setDialogFill( fill );
}

//-----------------------------------------------------------//
//-----------------------------------------------------------//
//-----------------------------------------------------------//

KSFontBtn::KSFontBtn( QWidget *parent, const char *name)
:KSAttrBtn(parent,name)
{
}

//-----------------------------------------------------------//

KSFontBtn::~KSFontBtn()
{
}

//-----------------------------------------------------------//

void KSFontBtn::setDialogFont( const QSGFont &new_f )
{
f = new_f;
emit attrChanged();
update();
}

//-----------------------------------------------------------//

void KSFontBtn::drawButtonLabel( QPainter * p )
{
QFont c = QSDrvQt::toQFont( f ); c.setPointSize( 10 );

p->setPen( black );
p->setFont( c );
p->drawText( 0, 0,
size().width(),
size().height(),
AlignHCenter |
AlignVCenter,
c.family() );
}

//-----------------------------------------------------------//

void KSFontBtn::prepare( KSAttrPanel *panel )
{
KSSelectFont *fpanel = new KSSelectFont( panel->subPanelPlace1() );
KSSelectColor *cpanel = new KSSelectColor( panel->subPanelPlace2() );
panel->setSubPanel1( fpanel );
panel->setSubPanel2( cpanel );
fpanel->setPanelFont( f );
cpanel->setPanelColor( f.color );
}

//-----------------------------------------------------------//

void KSFontBtn::accept( KSAttrPanel *panel )
{
QSGFont font = ((KSSelectFont *)panel->subPanel1())->panelFont();
font.color = ((KSSelectColor *)panel->subPanel2())->panelColor();
setDialogFont( font );
}

//-----------------------------------------------------------//
//-----------------------------------------------------------//
//-----------------------------------------------------------//

KSLineBtn::KSLineBtn( QWidget *parent, const char *name)
:KSAttrBtn(parent,name)
{
}

//-----------------------------------------------------------//

KSLineBtn::~KSLineBtn()
{
}

//-----------------------------------------------------------//

void KSLineBtn::setDialogLine( const QSGLine &new_l )
{
l = new_l;
emit attrChanged();
update();
}

//-----------------------------------------------------------//

void KSLineBtn::drawButtonLabel( QPainter * p )
{
QRect r = rect();
r.setCoords( r.left()+BTN_HSPACE,
r.top()+BTN_VSPACE,
r.right()-BTN_HSPACE,
r.bottom()-BTN_VSPACE );

p->setPen( black );
p->setBrush( white );
p->drawRect( r );

p->setClipRect( r );
if ( l.style != QSGLine::Invisible ) {

p->setPen( QSDrvQt::toQPen(l) );
p->drawLine( r.left() + 4, r.center().y(),
r.right() - 4, r.center().y() );
} else {

QFont f = font();f.setPointSize( 10 );
p->setFont( f );
p->setPen( black );
p->drawText( 0, 0,
size().width(),
size().height(),
AlignHCenter |
AlignVCenter,
tr("Invisible") );
}

p->setClipping( false );
}

//-----------------------------------------------------------//

void KSLineBtn::prepare( KSAttrPanel *panel )
{
KSSelectLine *lpanel = new KSSelectLine( panel->subPanelPlace1() );
KSSelectColor *cpanel = new KSSelectColor( panel->subPanelPlace2() );
panel->setSubPanel1( lpanel );
panel->setSubPanel2( cpanel );
lpanel->setPanelLine( l );
cpanel->setPanelColor( l.color );
}

//-----------------------------------------------------------//

void KSLineBtn::accept( KSAttrPanel *panel )
{
QSGLine line = ((KSSelectLine *)panel->subPanel1())->panelLine();
line.color = ((KSSelectColor *)panel->subPanel2())->panelColor();
setDialogLine( line );
}

//-----------------------------------------------------------//
//-----------------------------------------------------------//
//-----------------------------------------------------------//

KSPointBtn::KSPointBtn(QWidget *parent, const char *name)
:KSAttrBtn(parent,name)
{
}

//-----------------------------------------------------------//

KSPointBtn::~KSPointBtn()
{
}

//-----------------------------------------------------------//

void KSPointBtn::setDialogPoint( const QSGPoint &new_p )
{
p = new_p;
attrChanged();
update();
}

//-----------------------------------------------------------//

void KSPointBtn::drawButtonLabel( QPainter *paint )
{
QRect r = rect();

r.setCoords( r.left()+BTN_HSPACE,
r.top()+BTN_VSPACE,
r.right()-BTN_HSPACE,
r.bottom()-BTN_VSPACE );

paint->setPen( black );
paint->setBrush( white );
paint->drawRect( r );

paint->setClipRect( r );
if ( p.style != QSGPoint::Invisible ) {
QSPt2f mid( r.center().x(), r.center().y() );
QSDrvQt drv; // we use only canvas driver, so NULL is allowed
drv.setDC( paint, 72, false );
drv.startDrawing();
drv.drawPoint( mid, p );
drv.stopDrawing();
} else {
QFont f = font();f.setPointSize( 10 );
paint->setFont( f );
paint->setPen( black );
paint->drawText( 0, 0,
size().width(),
size().height(),
AlignHCenter |
AlignVCenter,
tr("Invisible") );
}
}

//-----------------------------------------------------------//

void KSPointBtn::prepare( KSAttrPanel *panel )
{
KSSelectPoint *ppanel = new KSSelectPoint( panel->subPanelPlace1() );
KSSelectColor *cpanel = new KSSelectColor( panel->subPanelPlace2() );
panel->setSubPanel1( ppanel );
panel->setSubPanel2( cpanel );
ppanel->setPanelPoint( p );
cpanel->setPanelColor( p.color );
}

//-----------------------------------------------------------//

void KSPointBtn::accept( KSAttrPanel *panel )
{
QSGPoint point = ((KSSelectPoint *)panel->subPanel1())->panelPoint();
point.color = ((KSSelectColor *)panel->subPanel2())->panelColor();
setDialogPoint( point );
}