import kpasman 0.1 sources
This commit is contained in:
parent
c8ae81dfef
commit
8da6bf0752
110 changed files with 27300 additions and 0 deletions
9
AUTHORS
Normal file
9
AUTHORS
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
***Main-Developers***
|
||||
|
||||
- Troy Engel <tengel@sonic.net>
|
||||
|
||||
Kpasman contains sourcecode from the following:
|
||||
|
||||
rc2 :(c) by Matthew Palmer <mjp16@uow.edu.au>
|
||||
gpasman :(c) by Olivier Sessink <gpasman@nl.linux.org>
|
||||
|
||||
280
COPYING
Normal file
280
COPYING
Normal 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
|
||||
3
ChangeLog
Normal file
3
ChangeLog
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
1999-10-03 Troy Engel <tengel@sonic.net>
|
||||
* Kpasman 0.1 released
|
||||
|
||||
167
INSTALL
Normal file
167
INSTALL
Normal 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
|
||||
`/opt/kde/bin', `/opt/kde/man', etc. You can specify an
|
||||
installation prefix other than `/opt/kde/' 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.
|
||||
|
||||
13
Makefile.am
Normal file
13
Makefile.am
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
dist-hook:
|
||||
-perl automoc
|
||||
|
||||
SUBDIRS = kpasman po
|
||||
|
||||
EXTRA_DIST = kpasman.kdevprj AUTHORS COPYING ChangeLog INSTALL README TODO kpasman.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
|
||||
|
||||
26
Makefile.dist
Normal file
26
Makefile.dist
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
default: all
|
||||
|
||||
dist:
|
||||
@echo "This file is to make it easier for you to create all you need"
|
||||
aclocal
|
||||
autoheader
|
||||
# use --include-deps, if you want to release the stuff. Don't use it for
|
||||
# yourself
|
||||
automake --include-deps
|
||||
perl automoc
|
||||
autoconf
|
||||
touch stamp-h.in
|
||||
LIST=`find ./po -name "*.po"`; \
|
||||
for i in $$LIST; do \
|
||||
file2=`echo $$i | sed -e "s#\.po#\.gmo#"`; \
|
||||
msgfmt -o $$file2 $$i; \
|
||||
done
|
||||
rm -f Makefile.dist
|
||||
|
||||
all:
|
||||
aclocal
|
||||
autoheader
|
||||
automake
|
||||
perl automoc
|
||||
autoconf
|
||||
|
||||
456
Makefile.in
Normal file
456
Makefile.in
Normal file
|
|
@ -0,0 +1,456 @@
|
|||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = .
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_alias = @build_alias@
|
||||
build_triplet = @build@
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
target_alias = @target_alias@
|
||||
target_triplet = @target@
|
||||
CC = @CC@
|
||||
CPP = @CPP@
|
||||
CXX = @CXX@
|
||||
GLINC = @GLINC@
|
||||
GLLIB = @GLLIB@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
IDL = @IDL@
|
||||
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
|
||||
KDE_INCLUDES = @KDE_INCLUDES@
|
||||
KDE_LDFLAGS = @KDE_LDFLAGS@
|
||||
KDE_RPATH = @KDE_RPATH@
|
||||
LD = @LD@
|
||||
LIBCOMPAT = @LIBCOMPAT@
|
||||
LIBCRYPT = @LIBCRYPT@
|
||||
LIBDL = @LIBDL@
|
||||
LIBJPEG = @LIBJPEG@
|
||||
LIBMICO = @LIBMICO@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPNG = @LIBPNG@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBPYTHON = @LIBPYTHON@
|
||||
LIBQIMGIO = @LIBQIMGIO@
|
||||
LIBSOCKET = @LIBSOCKET@
|
||||
LIBTIFF = @LIBTIFF@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUCB = @LIBUCB@
|
||||
LIBUTIL = @LIBUTIL@
|
||||
LIBXDMCP = @LIBXDMCP@
|
||||
LIBZ = @LIBZ@
|
||||
LIB_KDECORE = @LIB_KDECORE@
|
||||
LIB_KDEUI = @LIB_KDEUI@
|
||||
LIB_KFILE = @LIB_KFILE@
|
||||
LIB_KFM = @LIB_KFM@
|
||||
LIB_KHTML = @LIB_KHTML@
|
||||
LIB_KHTMLW = @LIB_KHTMLW@
|
||||
LIB_KIMGIO = @LIB_KIMGIO@
|
||||
LIB_LIBS = @LIB_LIBS@
|
||||
LIB_QT = @LIB_QT@
|
||||
LIB_X11 = @LIB_X11@
|
||||
LN_S = @LN_S@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MICO_INCLUDES = @MICO_INCLUDES@
|
||||
MICO_LDFLAGS = @MICO_LDFLAGS@
|
||||
MOC = @MOC@
|
||||
MSGFMT = @MSGFMT@
|
||||
NM = @NM@
|
||||
PACKAGE = @PACKAGE@
|
||||
PAMINC = @PAMINC@
|
||||
PAMLIBPATHS = @PAMLIBPATHS@
|
||||
PAMLIBS = @PAMLIBS@
|
||||
PASSWDLIB = @PASSWDLIB@
|
||||
PYTHONINC = @PYTHONINC@
|
||||
PYTHONLIB = @PYTHONLIB@
|
||||
QT_INCLUDES = @QT_INCLUDES@
|
||||
QT_LDFLAGS = @QT_LDFLAGS@
|
||||
RANLIB = @RANLIB@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
XBINDIR = @XBINDIR@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XPMINC = @XPMINC@
|
||||
XPMLIB = @XPMLIB@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_INCLUDES = @X_INCLUDES@
|
||||
X_LDFLAGS = @X_LDFLAGS@
|
||||
X_SERVER = @X_SERVER@
|
||||
ac_xdmdir = @ac_xdmdir@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
install_root = @install_root@
|
||||
kde_appsdir = @kde_appsdir@
|
||||
kde_bindir = @kde_bindir@
|
||||
kde_cgidir = @kde_cgidir@
|
||||
kde_confdir = @kde_confdir@
|
||||
kde_datadir = @kde_datadir@
|
||||
kde_htmldir = @kde_htmldir@
|
||||
kde_icondir = @kde_icondir@
|
||||
kde_includes = @kde_includes@
|
||||
kde_libraries = @kde_libraries@
|
||||
kde_locale = @kde_locale@
|
||||
kde_mimedir = @kde_mimedir@
|
||||
kde_minidir = @kde_minidir@
|
||||
kde_partsdir = @kde_partsdir@
|
||||
kde_sounddir = @kde_sounddir@
|
||||
kde_toolbardir = @kde_toolbardir@
|
||||
kde_wallpaperdir = @kde_wallpaperdir@
|
||||
qt_includes = @qt_includes@
|
||||
qt_libraries = @qt_libraries@
|
||||
x_includes = @x_includes@
|
||||
x_libraries = @x_libraries@
|
||||
xdmconfigsubdir = @xdmconfigsubdir@
|
||||
|
||||
SUBDIRS = kpasman po
|
||||
|
||||
EXTRA_DIST = kpasman.kdevprj AUTHORS COPYING ChangeLog INSTALL README TODO kpasman.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
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
|
||||
Makefile.am Makefile.in TODO acconfig.h acinclude.m4 aclocal.m4 \
|
||||
config.guess config.h.bot config.h.in config.sub configure configure.in \
|
||||
install-sh ltconfig ltmain.sh missing mkinstalldirs
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = gtar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
$(ACLOCAL_M4): configure.in acinclude.m4
|
||||
cd $(srcdir) && $(ACLOCAL)
|
||||
|
||||
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
|
||||
config.h: stamp-h
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h; \
|
||||
$(MAKE) stamp-h; \
|
||||
else :; fi
|
||||
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
|
||||
$(SHELL) ./config.status
|
||||
@echo timestamp > stamp-h 2> /dev/null
|
||||
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
|
||||
@if test ! -f $@; then \
|
||||
rm -f $(srcdir)/stamp-h.in; \
|
||||
$(MAKE) $(srcdir)/stamp-h.in; \
|
||||
else :; fi
|
||||
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h config.h.bot
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
||||
|
||||
mostlyclean-hdr:
|
||||
|
||||
clean-hdr:
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h
|
||||
|
||||
maintainer-clean-hdr:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
all-recursive install-data-recursive install-exec-recursive \
|
||||
installdirs-recursive install-recursive uninstall-recursive \
|
||||
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
rev="$$subdir $$rev"; \
|
||||
test "$$subdir" = "." && dot_seen=yes; \
|
||||
done; \
|
||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
-rm -rf $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||
mkdir $(distdir)/=build
|
||||
mkdir $(distdir)/=inst
|
||||
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||
cd $(distdir)/=build \
|
||||
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||
-rm -rf $(distdir)
|
||||
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||
echo "$$dashes"; \
|
||||
echo "$$banner"; \
|
||||
echo "$$dashes"
|
||||
dist: distdir
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
dist-all: distdir
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
distdir: $(DISTFILES)
|
||||
-rm -rf $(distdir)
|
||||
mkdir $(distdir)
|
||||
-chmod 777 $(distdir)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
for subdir in $(SUBDIRS); do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d $(distdir)/$$subdir \
|
||||
|| mkdir $(distdir)/$$subdir \
|
||||
|| exit 1; \
|
||||
chmod 777 $(distdir)/$$subdir; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
|
||||
info-am:
|
||||
info: info-recursive
|
||||
dvi-am:
|
||||
dvi: dvi-recursive
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
installcheck-am:
|
||||
installcheck: installcheck-recursive
|
||||
all-recursive-am: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
install-exec-am:
|
||||
install-exec: install-exec-recursive
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-recursive
|
||||
uninstall-am:
|
||||
uninstall: uninstall-recursive
|
||||
all-am: Makefile config.h
|
||||
all-redirect: all-recursive-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-recursive
|
||||
|
||||
distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f config.status
|
||||
|
||||
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
|
||||
maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f config.status
|
||||
|
||||
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
|
||||
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
||||
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
|
||||
install-exec-am install-exec install-data-am install-data install-am \
|
||||
install uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
dist-hook:
|
||||
-perl automoc
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
38
README
Normal file
38
README
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
README for Kpasman
|
||||
|
||||
-------------------------------------
|
||||
|
||||
1. What is Kpasman ?
|
||||
|
||||
Kpasman is a small password manager for the K Desktop Environment, influenced
|
||||
greatly by `gpasman`, found at http://gpasman.nl.linux.org. Following the
|
||||
file format of gpasman, you can open and save the rc2-encrypted data files
|
||||
from either program transparently.
|
||||
|
||||
2. Kpasman-Homepage
|
||||
|
||||
http://www.sonic.net/~tengel/kpasman
|
||||
|
||||
|
||||
3. Requirements
|
||||
|
||||
In order to successfully compile und use Kpasman, you need following
|
||||
programs and libraries:
|
||||
|
||||
required:
|
||||
------------------
|
||||
g++ 2.8/egcs 1.0.3 (or compatible)
|
||||
GNU make
|
||||
perl 5.004
|
||||
autoconf 2.12
|
||||
automake 1.4
|
||||
Qt 1.44 NOT Qt 2.0
|
||||
KDE 1.1.2
|
||||
|
||||
4. Installation
|
||||
|
||||
see INSTALL in this directory
|
||||
|
||||
|
||||
Troy Engel
|
||||
<tengel@sonic.net>
|
||||
6
TODO
Normal file
6
TODO
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Version 0.1, 1999-10-03
|
||||
* get rid of stale C file code, port to Qt
|
||||
* docking support
|
||||
* internationalization
|
||||
* copy password to clipboard?
|
||||
* open last used file?
|
||||
36
acconfig.h
Normal file
36
acconfig.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* 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 if having libtiff */
|
||||
#undef HAVE_LIBTIFF
|
||||
|
||||
/* defines if having libpng */
|
||||
#undef HAVE_LIBPNG
|
||||
|
||||
/* 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
|
||||
2829
acinclude.m4
Normal file
2829
acinclude.m4
Normal file
File diff suppressed because it is too large
Load diff
2892
aclocal.m4
vendored
Normal file
2892
aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load diff
418
automoc
Executable file
418
automoc
Executable file
|
|
@ -0,0 +1,418 @@
|
|||
#! /usr/local/bin/perl
|
||||
|
||||
# Changes Makefile.in to work correctly with moc files. When called
|
||||
# without parameters, automoc works recursively on all Makefile.in in
|
||||
# and below the current subdirectory. When called with parameters,
|
||||
# only these Makefile.in are changed.
|
||||
# The Makefile.in should have an entry with the following syntax:
|
||||
#
|
||||
# {program}_METASOURCES = USE_AUTOMOC [{suffix}]
|
||||
#
|
||||
# Moc files will have a 'cpp' suffix unless overriden by the optional
|
||||
# {suffix} parameter.
|
||||
# Be careful not to use a suffix that isn't used by at least one
|
||||
# of the main source files in {program}_SOURCES.
|
||||
#
|
||||
# 1998-07-23 Harri Porten <porten@tu-harburg.de>
|
||||
# * small bugfixes for MOCSOURCES
|
||||
# 1998-11-08 Alex Zepeda <garbanzo@hooked.net>
|
||||
# * tweak it so it will run from a "common" directory.
|
||||
# 1998-11-11 Harri Porten <porten@tu-harburg.de> & David Faure <faure@kde.org>
|
||||
# * bug fix for invocation with arguments
|
||||
# 1998-11-16 Harri Porten <porten@kde.org>
|
||||
# * take care of "ar" object files, too.
|
||||
# (as proposed by Martin Vogt <mvogt@rhrk.uni-kl.de>)
|
||||
# 1999-01-13 Harri Porten <porten@kde.org>
|
||||
# * implemented {suffix} parameter
|
||||
# 1999-01-16 Stephan Kulow <coolo@kde.org>
|
||||
# * implemented support for included MOC files and command line
|
||||
# parameters
|
||||
|
||||
use Cwd;
|
||||
use File::Find;
|
||||
use File::Basename;
|
||||
|
||||
# TRUE if in verbose mode.
|
||||
$verbose = 0;
|
||||
|
||||
$direct_arguments = 0;
|
||||
|
||||
@arglist = @ARGV;
|
||||
|
||||
@input_files = ();
|
||||
|
||||
$errorflag = 0;
|
||||
|
||||
$printname = '';
|
||||
|
||||
$lastdirname = '';
|
||||
|
||||
@mocnames = ();
|
||||
|
||||
$callpath = "$0";
|
||||
|
||||
@header_suffixes = ("h", "H", "hh", "hxx");
|
||||
|
||||
$cxx_suffix = "";
|
||||
|
||||
while (@arglist) {
|
||||
if ($arglist[0] eq "--version")
|
||||
{
|
||||
print "\n\n";
|
||||
print "*********************************************\n";
|
||||
print "automoc - Software that makes even more sense\n";
|
||||
print "*********************************************\n\n";
|
||||
print "Welcome to the wonderful world of automoc!\n";
|
||||
print "This is really free software, unencumbered by the GPL.\n";
|
||||
print "You can do anything you like with it except sueing me.\n";
|
||||
print "Copyright 1998 Kalle Dalheimer <kalle\@kde.org>\n";
|
||||
print "Concept, design and unnecessary questions about Perl by Matthias Ettrich <ettrich\@kde.org>\n\n";
|
||||
print "Making it useful by Stephan Kulow <coolo\@kde.org> and\n";
|
||||
print "Harri Porten <porten\@kde.org>";
|
||||
|
||||
exit 0;
|
||||
}
|
||||
elsif ($arglist[0] eq '--verbose' || $arglist[0] eq '-v')
|
||||
{
|
||||
$verbose = 1;
|
||||
}
|
||||
elsif ($arglist[0] =~ /^-p(.+)$/ || $arglist[0] =~ /^--path=(.+)$/)
|
||||
{
|
||||
$callpath = "$1/" . basename($0);
|
||||
}
|
||||
elsif ($arglist[0] =~ /^--help$/ || $arglist[0] =~ /^-h$/)
|
||||
{
|
||||
print "Usage automoc [OPTION] ... [Makefile.in]...\n";
|
||||
print "\n";
|
||||
print "Patches Makefile.in generated from automake\n";
|
||||
print "\n";
|
||||
print " -v, --verbose verbosely list files processed\n";
|
||||
print " -h, --help print this help, then exit\n";
|
||||
print " --version print version number, then exit\n";
|
||||
print " -p, --path= use the path to automoc if the path\n";
|
||||
print " called from is not the one to be used\n";
|
||||
|
||||
exit 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
push (@input_files, $arglist[0]);
|
||||
$direct_arguments = 1;
|
||||
}
|
||||
|
||||
shift @arglist;
|
||||
}
|
||||
|
||||
if ($direct_arguments == 0)
|
||||
{
|
||||
find( \&add_makefile, cwd() );
|
||||
}
|
||||
|
||||
$curdir = cwd();
|
||||
while( @input_files )
|
||||
{
|
||||
$filename = $input_files[0];
|
||||
$errorflag = 0;
|
||||
undef @headersourcedirs;
|
||||
@headersourcedirs = ('$(srcdir)');
|
||||
process_makefile( $filename );
|
||||
chdir ( $curdir);
|
||||
shift @input_files;
|
||||
}
|
||||
|
||||
sub add_makefile()
|
||||
{
|
||||
if( $_ ne "Makefile.in" )
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
push (@input_files, $File::Find::name );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
sub process_automoc_makefile
|
||||
{
|
||||
# find the name of the program
|
||||
$search_use_automoc[0] =~ /^([^=]*)_METASOURCES/;
|
||||
$programname = $1;
|
||||
|
||||
$cxx_suffix = "cpp";
|
||||
|
||||
# check whether a suffix is given
|
||||
if( $search_use_automoc[0] =~ /USE_AUTOMOC\s+([^\s]+)/ )
|
||||
{
|
||||
$cxx_suffix = $1;
|
||||
}
|
||||
|
||||
$header_list = "";
|
||||
foreach $suffix (@header_suffixes) {
|
||||
$header_list .= " *.$suffix";
|
||||
}
|
||||
@mocable_files = `grep -l Q_OBJECT $header_list 2> /dev/null`;
|
||||
|
||||
foreach $mocable_file (@mocable_files) {
|
||||
chomp $mocable_file;
|
||||
print STDERR "looking for header file $mocable_file\n" if $verbose;
|
||||
$mocable_file =~ s/\.[^\.]*$//; # remove the suffix (.h etc)
|
||||
push @mocnames, $mocable_file;
|
||||
push @mocsources, "$mocable_file\.moc\.$cxx_suffix";
|
||||
}
|
||||
|
||||
$objectline = $programname . "_OBJECTS";
|
||||
|
||||
LINE: while( <FILEIN> )
|
||||
{
|
||||
if( /^#/ ) {
|
||||
print FILEOUT $_;
|
||||
next LINE;
|
||||
}
|
||||
|
||||
if( /(.*_METASOURCES\s*=\s*)(USE_AUTOMOC)/ )
|
||||
{
|
||||
print FILEOUT "$1 ";
|
||||
foreach $mocsource (@mocsources) {
|
||||
print FILEOUT $mocsource . " ";
|
||||
}
|
||||
print FILEOUT "\n";
|
||||
}
|
||||
elsif( /^$objectline/ ) # look for programs and libraries
|
||||
{
|
||||
chomp $_;
|
||||
$line = $_;
|
||||
$morelines = /\\$/ ? 1 : 0;
|
||||
$line =~ s/\\$//;
|
||||
|
||||
print FILEOUT "$line ";
|
||||
foreach $mocname (@mocnames) {
|
||||
if ( $objectline !~ /_la_OBJECTS$/ ) {
|
||||
print FILEOUT $mocname . ".moc.o ";
|
||||
}
|
||||
else {
|
||||
print FILEOUT $mocname . ".moc.lo ";
|
||||
}
|
||||
}
|
||||
if($morelines) {
|
||||
print FILEOUT "\\";
|
||||
}
|
||||
print FILEOUT "\n";
|
||||
}
|
||||
else {
|
||||
process_generell_rules($_);
|
||||
}
|
||||
}
|
||||
|
||||
print FILEOUT "\n\n";
|
||||
foreach $file (@mocnames) {
|
||||
foreach $header_suffix (@header_suffixes) {
|
||||
if (-f $file . ".$header_suffix") {
|
||||
print FILEOUT "$file.moc.$cxx_suffix: \$(srcdir)/$file.$header_suffix\n";
|
||||
print FILEOUT "\t\$(MOC) \$(srcdir)/$file.$header_suffix -o $file.moc.$cxx_suffix\n\n";
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sub process_generell_rules
|
||||
{
|
||||
if ( m+cd \$\(top_srcdir\) \&\& \$\(AUTOMAKE\)+ )
|
||||
{
|
||||
print FILEOUT $_;
|
||||
print FILEOUT "\tcd \$(top_srcdir) && perl $callpath $printname\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if (/^distclean:/)
|
||||
{
|
||||
s/^distclean: //;
|
||||
print FILEOUT "distclean: distclean-metasources ";
|
||||
}
|
||||
|
||||
if (/^[^=]*META_INCLUDES.*=(.*)/)
|
||||
{
|
||||
chomp $1;
|
||||
@list = split(' ', $1);
|
||||
for $dir (@list) {
|
||||
$realdir = $dir;
|
||||
$realdir =~ s#\$\(srcdir\)#.#;
|
||||
if (! -d $realdir) {
|
||||
print STDERR "$printname: warning $dir can't be found. Must be a relative path to \$(srcdir)\n";
|
||||
} else {
|
||||
if ($dir !~ /\$\(srcdir\)/)
|
||||
{
|
||||
$dir = "\$(srcdir)/" . $dir;
|
||||
print STDERR "addded $dir\n";
|
||||
}
|
||||
push @headersourcedirs, $dir;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
print FILEOUT $_;
|
||||
|
||||
}
|
||||
|
||||
sub process_moc_makefile()
|
||||
{
|
||||
local ($saw_bk) = 0;
|
||||
|
||||
LINE: while( <FILEIN> )
|
||||
{
|
||||
if ( /^#/ ) {
|
||||
print FILEOUT $_;
|
||||
next LINE;
|
||||
}
|
||||
|
||||
$textline = $_;
|
||||
|
||||
if ($textline =~ /^[^=]*METASOURCES.*/ || $saw_bk)
|
||||
{
|
||||
$saw_bk = /\\$/;
|
||||
$line=$textline;
|
||||
$line =~ s/\\$//;
|
||||
$line =~ s/.*METASOURCES.*=[ ]*//;
|
||||
@list = split(' ', $line);
|
||||
foreach $mocname (@list) {
|
||||
if ($mocname !~ /\.moc$/) {
|
||||
print STDERR "error: filename $lastdirname/$mocname doesn't end with .moc\n";
|
||||
$errorflag = 1;
|
||||
} else {
|
||||
$mocname =~ s/\.moc$//;
|
||||
push(@mocnames, $mocname);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
$saw_bk = 0;
|
||||
}
|
||||
|
||||
process_generell_rules($textline);
|
||||
}
|
||||
|
||||
if (@mocnames) {
|
||||
print FILEOUT "\n\n";
|
||||
}
|
||||
|
||||
foreach $mocfile (@mocnames) {
|
||||
|
||||
print STDERR "Looking for moc file $mocfile.moc\n" if $verbose;
|
||||
|
||||
$found = 0;
|
||||
|
||||
$header_suffix = "";
|
||||
|
||||
foreach $dir (@headersourcedirs) {
|
||||
|
||||
$realdir = $dir;
|
||||
$realdir =~ s/\$\(srcdir\)/./;
|
||||
|
||||
foreach $suffix (@header_suffixes) {
|
||||
|
||||
if (-f $realdir . '/' . $mocfile . ".$suffix")
|
||||
{
|
||||
$header_suffix = $suffix;
|
||||
$sourcedir = $dir;
|
||||
$found = 1;
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($found == 0) {
|
||||
print STDERR "error: no header file found for mocfile $lastdirname/$mocfile.moc\n";
|
||||
$errorflag = 1;
|
||||
}
|
||||
|
||||
@sourcenames=`grep -l "^#include[ ]*.$mocfile\.moc." *.cpp *.cc *.cxx *.C 2> /dev/null`;
|
||||
|
||||
if (@sourcenames == 1) {
|
||||
$sourcename = $sourcenames[0];
|
||||
$sourcename =~ s/\n$//;
|
||||
} else {
|
||||
if (@sourcenames == 0)
|
||||
{
|
||||
print STDERR "error: no source file found for mocfile $lastdirname/$mocfile.moc\n";
|
||||
} else {
|
||||
print STDERR "error: Multiple source files found for mocfile $lastdirname/$mocfile.moc\n";
|
||||
print STDERR "\t",join ("\t", @sourcenames),"\n";
|
||||
}
|
||||
$errorflag = 1;
|
||||
|
||||
}
|
||||
|
||||
print FILEOUT "\$(srcdir)/$sourcename: $mocfile.moc\n";
|
||||
print FILEOUT "$mocfile.moc: $sourcedir/$mocfile.$header_suffix\n";
|
||||
print FILEOUT "\t\$(MOC) $sourcedir/$mocfile.$header_suffix -o $mocfile.moc\n";
|
||||
print FILEOUT "\n";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sub process_makefile
|
||||
{
|
||||
|
||||
$printname = $filename;
|
||||
$printname = substr ($printname, length($curdir)+1);
|
||||
$lastdirname = dirname($filename);
|
||||
$lastdirname = substr ($lastdirname, length($curdir)+1);
|
||||
|
||||
print STDERR "Processing " .$printname . "\n" if $verbose;
|
||||
|
||||
chdir( dirname( $filename ) );
|
||||
|
||||
$filename = basename($filename);
|
||||
|
||||
$search = `grep '[^=#]*METASOURCES.*=' $filename`;
|
||||
return if ($search eq '');
|
||||
|
||||
$search = `grep "DO_NOT_USE_AUTOMOC" $filename`;
|
||||
return if ($search);
|
||||
|
||||
$newfilename = $filename . ".tmp";
|
||||
|
||||
open( FILEIN, "$filename" ) or die "Could not open $filename: $!\n";
|
||||
open( FILEOUT, ">$newfilename" ) or die "Could not open $filename: $!\n";
|
||||
|
||||
# search for USE_AUTOMOC
|
||||
@search_use_automoc = `grep "[^#]*USE_AUTOMOC" $filename`;
|
||||
|
||||
if( @search_use_automoc == 0 ) {
|
||||
process_moc_makefile();
|
||||
$cxx_suffix="";
|
||||
} else {
|
||||
process_automoc_makefile();
|
||||
$cxx_suffix="." . $cxx_suffix;
|
||||
}
|
||||
|
||||
print FILEOUT "distclean-metasources:\n";
|
||||
if (@mocnames)
|
||||
{
|
||||
print FILEOUT "\t-rm -f ";
|
||||
foreach $mocfile (@mocnames)
|
||||
{
|
||||
print FILEOUT $mocfile . ".moc$cxx_suffix ";
|
||||
}
|
||||
}
|
||||
print FILEOUT "\n";
|
||||
|
||||
if ($errorflag == 0) {
|
||||
print FILEOUT "\n# DO_NOT_USE_AUTOMOC\n";
|
||||
rename $newfilename, $filename;
|
||||
} else {
|
||||
system("rm $newfilename");
|
||||
exit 1; # cause the make to stop. (added 28/01/99 jbb)
|
||||
# (I've a bad feeling about this Stephan!)
|
||||
}
|
||||
|
||||
undef @mocsources;
|
||||
undef @mocnames;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
883
config.guess
vendored
Executable file
883
config.guess
vendored
Executable file
|
|
@ -0,0 +1,883 @@
|
|||
#! /bin/sh
|
||||
# Attempt to guess a canonical system name.
|
||||
# Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
#
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Written by Per Bothner <bothner@cygnus.com>.
|
||||
# The master version of this file is at the FSF in /home/gd/gnu/lib.
|
||||
#
|
||||
# This script attempts to guess a canonical system name similar to
|
||||
# config.sub. If it succeeds, it prints the system name on stdout, and
|
||||
# exits with 0. Otherwise, it exits with 1.
|
||||
#
|
||||
# The plan is that this can be called by configure scripts if you
|
||||
# don't specify an explicit system type (host/target name).
|
||||
#
|
||||
# Only a few systems have been added to this list; please add others
|
||||
# (but try to keep the structure clean).
|
||||
#
|
||||
|
||||
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
||||
# (ghazi@noc.rutgers.edu 8/24/94.)
|
||||
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
||||
PATH=$PATH:/.attbin ; export PATH
|
||||
fi
|
||||
|
||||
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
||||
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
||||
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
||||
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
||||
|
||||
trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
|
||||
|
||||
# Note: order is significant - the case branches are not exclusive.
|
||||
|
||||
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
alpha:OSF1:*:*)
|
||||
if test $UNAME_RELEASE = "V4.0"; then
|
||||
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
||||
fi
|
||||
# A Vn.n version is a released version.
|
||||
# A Tn.n version is a released field test version.
|
||||
# A Xn.n version is an unreleased experimental baselevel.
|
||||
# 1.2 uses "1.2" for uname -r.
|
||||
cat <<EOF >dummy.s
|
||||
.globl main
|
||||
.ent main
|
||||
main:
|
||||
.frame \$30,0,\$26,0
|
||||
.prologue 0
|
||||
.long 0x47e03d80 # implver $0
|
||||
lda \$2,259
|
||||
.long 0x47e20c21 # amask $2,$1
|
||||
srl \$1,8,\$2
|
||||
sll \$2,2,\$2
|
||||
sll \$0,3,\$0
|
||||
addl \$1,\$0,\$0
|
||||
addl \$2,\$0,\$0
|
||||
ret \$31,(\$26),1
|
||||
.end main
|
||||
EOF
|
||||
${CC-cc} dummy.s -o dummy 2>/dev/null
|
||||
if test "$?" = 0 ; then
|
||||
./dummy
|
||||
case "$?" in
|
||||
7)
|
||||
UNAME_MACHINE="alpha"
|
||||
;;
|
||||
15)
|
||||
UNAME_MACHINE="alphaev5"
|
||||
;;
|
||||
14)
|
||||
UNAME_MACHINE="alphaev56"
|
||||
;;
|
||||
10)
|
||||
UNAME_MACHINE="alphapca56"
|
||||
;;
|
||||
16)
|
||||
UNAME_MACHINE="alphaev6"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
rm -f dummy.s dummy
|
||||
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
|
||||
exit 0 ;;
|
||||
21064:Windows_NT:50:3)
|
||||
echo alpha-dec-winnt3.5
|
||||
exit 0 ;;
|
||||
Amiga*:UNIX_System_V:4.0:*)
|
||||
echo m68k-cbm-sysv4
|
||||
exit 0;;
|
||||
amiga:NetBSD:*:*)
|
||||
echo m68k-cbm-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
amiga:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
arc64:OpenBSD:*:*)
|
||||
echo mips64el-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
arc:OpenBSD:*:*)
|
||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
hkmips:OpenBSD:*:*)
|
||||
echo mips-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
pmax:OpenBSD:*:*)
|
||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
sgi:OpenBSD:*:*)
|
||||
echo mips-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
wgrisc:OpenBSD:*:*)
|
||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
||||
echo arm-acorn-riscix${UNAME_RELEASE}
|
||||
exit 0;;
|
||||
arm32:NetBSD:*:*)
|
||||
echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
exit 0 ;;
|
||||
SR2?01:HI-UX/MPP:*:*)
|
||||
echo hppa1.1-hitachi-hiuxmpp
|
||||
exit 0;;
|
||||
Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
|
||||
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
||||
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
||||
echo pyramid-pyramid-sysv3
|
||||
else
|
||||
echo pyramid-pyramid-bsd
|
||||
fi
|
||||
exit 0 ;;
|
||||
NILE:*:*:dcosx)
|
||||
echo pyramid-pyramid-svr4
|
||||
exit 0 ;;
|
||||
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
||||
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
i86pc:SunOS:5.*:*)
|
||||
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
sun4*:SunOS:6*:*)
|
||||
# According to config.sub, this is the proper way to canonicalize
|
||||
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
||||
# it's likely to be more like Solaris than SunOS4.
|
||||
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
sun4*:SunOS:*:*)
|
||||
case "`/usr/bin/arch -k`" in
|
||||
Series*|S4*)
|
||||
UNAME_RELEASE=`uname -v`
|
||||
;;
|
||||
esac
|
||||
# Japanese Language versions have a version number like `4.1.3-JL'.
|
||||
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
||||
exit 0 ;;
|
||||
sun3*:SunOS:*:*)
|
||||
echo m68k-sun-sunos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
sun*:*:4.2BSD:*)
|
||||
UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
||||
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
||||
case "`/bin/arch`" in
|
||||
sun3)
|
||||
echo m68k-sun-sunos${UNAME_RELEASE}
|
||||
;;
|
||||
sun4)
|
||||
echo sparc-sun-sunos${UNAME_RELEASE}
|
||||
;;
|
||||
esac
|
||||
exit 0 ;;
|
||||
aushp:SunOS:*:*)
|
||||
echo sparc-auspex-sunos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
atari*:NetBSD:*:*)
|
||||
echo m68k-atari-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
atari*:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
sun3*:NetBSD:*:*)
|
||||
echo m68k-sun-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
sun3*:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mac68k:NetBSD:*:*)
|
||||
echo m68k-apple-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mac68k:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mvme68k:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mvme88k:OpenBSD:*:*)
|
||||
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
powerpc:machten:*:*)
|
||||
echo powerpc-apple-machten${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
RISC*:Mach:*:*)
|
||||
echo mips-dec-mach_bsd4.3
|
||||
exit 0 ;;
|
||||
RISC*:ULTRIX:*:*)
|
||||
echo mips-dec-ultrix${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
VAX*:ULTRIX*:*:*)
|
||||
echo vax-dec-ultrix${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
2020:CLIX:*:*)
|
||||
echo clipper-intergraph-clix${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mips:*:*:UMIPS | mips:*:*:RISCos)
|
||||
sed 's/^ //' << EOF >dummy.c
|
||||
int main (argc, argv) int argc; char **argv; {
|
||||
#if defined (host_mips) && defined (MIPSEB)
|
||||
#if defined (SYSTYPE_SYSV)
|
||||
printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
|
||||
#endif
|
||||
#if defined (SYSTYPE_SVR4)
|
||||
printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
|
||||
#endif
|
||||
#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
|
||||
printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
exit (-1);
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy \
|
||||
&& ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
||||
&& rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
echo mips-mips-riscos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
Night_Hawk:Power_UNIX:*:*)
|
||||
echo powerpc-harris-powerunix
|
||||
exit 0 ;;
|
||||
m88k:CX/UX:7*:*)
|
||||
echo m88k-harris-cxux7
|
||||
exit 0 ;;
|
||||
m88k:*:4*:R4*)
|
||||
echo m88k-motorola-sysv4
|
||||
exit 0 ;;
|
||||
m88k:*:3*:R3*)
|
||||
echo m88k-motorola-sysv3
|
||||
exit 0 ;;
|
||||
AViiON:dgux:*:*)
|
||||
# DG/UX returns AViiON for all architectures
|
||||
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
||||
if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
|
||||
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
|
||||
-o ${TARGET_BINARY_INTERFACE}x = x ] ; then
|
||||
echo m88k-dg-dgux${UNAME_RELEASE}
|
||||
else
|
||||
echo m88k-dg-dguxbcs${UNAME_RELEASE}
|
||||
fi
|
||||
else echo i586-dg-dgux${UNAME_RELEASE}
|
||||
fi
|
||||
exit 0 ;;
|
||||
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
||||
echo m88k-dolphin-sysv3
|
||||
exit 0 ;;
|
||||
M88*:*:R3*:*)
|
||||
# Delta 88k system running SVR3
|
||||
echo m88k-motorola-sysv3
|
||||
exit 0 ;;
|
||||
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
||||
echo m88k-tektronix-sysv3
|
||||
exit 0 ;;
|
||||
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
||||
echo m68k-tektronix-bsd
|
||||
exit 0 ;;
|
||||
*:IRIX*:*:*)
|
||||
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
|
||||
exit 0 ;;
|
||||
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
||||
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
||||
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
||||
i?86:AIX:*:*)
|
||||
echo i386-ibm-aix
|
||||
exit 0 ;;
|
||||
*:AIX:2:3)
|
||||
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||
sed 's/^ //' << EOF >dummy.c
|
||||
#include <sys/systemcfg.h>
|
||||
|
||||
main()
|
||||
{
|
||||
if (!__power_pc())
|
||||
exit(1);
|
||||
puts("powerpc-ibm-aix3.2.5");
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
echo rs6000-ibm-aix3.2.5
|
||||
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||
echo rs6000-ibm-aix3.2.4
|
||||
else
|
||||
echo rs6000-ibm-aix3.2
|
||||
fi
|
||||
exit 0 ;;
|
||||
*:AIX:*:4)
|
||||
if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
|
||||
IBM_ARCH=rs6000
|
||||
else
|
||||
IBM_ARCH=powerpc
|
||||
fi
|
||||
if [ -x /usr/bin/oslevel ] ; then
|
||||
IBM_REV=`/usr/bin/oslevel`
|
||||
else
|
||||
IBM_REV=4.${UNAME_RELEASE}
|
||||
fi
|
||||
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
||||
exit 0 ;;
|
||||
*:AIX:*:*)
|
||||
echo rs6000-ibm-aix
|
||||
exit 0 ;;
|
||||
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
||||
echo romp-ibm-bsd4.4
|
||||
exit 0 ;;
|
||||
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
|
||||
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
||||
exit 0 ;; # report: romp-ibm BSD 4.3
|
||||
*:BOSX:*:*)
|
||||
echo rs6000-bull-bosx
|
||||
exit 0 ;;
|
||||
DPX/2?00:B.O.S.:*:*)
|
||||
echo m68k-bull-sysv3
|
||||
exit 0 ;;
|
||||
9000/[34]??:4.3bsd:1.*:*)
|
||||
echo m68k-hp-bsd
|
||||
exit 0 ;;
|
||||
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
||||
echo m68k-hp-bsd4.4
|
||||
exit 0 ;;
|
||||
9000/[3478]??:HP-UX:*:*)
|
||||
case "${UNAME_MACHINE}" in
|
||||
9000/31? ) HP_ARCH=m68000 ;;
|
||||
9000/[34]?? ) HP_ARCH=m68k ;;
|
||||
9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
|
||||
9000/8?? ) HP_ARCH=hppa1.0 ;;
|
||||
esac
|
||||
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
||||
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
||||
exit 0 ;;
|
||||
3050*:HI-UX:*:*)
|
||||
sed 's/^ //' << EOF >dummy.c
|
||||
#include <unistd.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
long cpu = sysconf (_SC_CPU_VERSION);
|
||||
/* The order matters, because CPU_IS_HP_MC68K erroneously returns
|
||||
true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
|
||||
results, however. */
|
||||
if (CPU_IS_PA_RISC (cpu))
|
||||
{
|
||||
switch (cpu)
|
||||
{
|
||||
case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
|
||||
case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
|
||||
case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
|
||||
default: puts ("hppa-hitachi-hiuxwe2"); break;
|
||||
}
|
||||
}
|
||||
else if (CPU_IS_HP_MC68K (cpu))
|
||||
puts ("m68k-hitachi-hiuxwe2");
|
||||
else puts ("unknown-hitachi-hiuxwe2");
|
||||
exit (0);
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
echo unknown-hitachi-hiuxwe2
|
||||
exit 0 ;;
|
||||
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
||||
echo hppa1.1-hp-bsd
|
||||
exit 0 ;;
|
||||
9000/8??:4.3bsd:*:*)
|
||||
echo hppa1.0-hp-bsd
|
||||
exit 0 ;;
|
||||
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
||||
echo hppa1.1-hp-osf
|
||||
exit 0 ;;
|
||||
hp8??:OSF1:*:*)
|
||||
echo hppa1.0-hp-osf
|
||||
exit 0 ;;
|
||||
i?86:OSF1:*:*)
|
||||
if [ -x /usr/sbin/sysversion ] ; then
|
||||
echo ${UNAME_MACHINE}-unknown-osf1mk
|
||||
else
|
||||
echo ${UNAME_MACHINE}-unknown-osf1
|
||||
fi
|
||||
exit 0 ;;
|
||||
parisc*:Lites*:*:*)
|
||||
echo hppa1.1-hp-lites
|
||||
exit 0 ;;
|
||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||
echo c1-convex-bsd
|
||||
exit 0 ;;
|
||||
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
||||
if getsysinfo -f scalar_acc
|
||||
then echo c32-convex-bsd
|
||||
else echo c2-convex-bsd
|
||||
fi
|
||||
exit 0 ;;
|
||||
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
||||
echo c34-convex-bsd
|
||||
exit 0 ;;
|
||||
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
||||
echo c38-convex-bsd
|
||||
exit 0 ;;
|
||||
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
||||
echo c4-convex-bsd
|
||||
exit 0 ;;
|
||||
CRAY*X-MP:*:*:*)
|
||||
echo xmp-cray-unicos
|
||||
exit 0 ;;
|
||||
CRAY*Y-MP:*:*:*)
|
||||
echo ymp-cray-unicos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
CRAY*[A-Z]90:*:*:*)
|
||||
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
||||
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
||||
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
|
||||
exit 0 ;;
|
||||
CRAY*TS:*:*:*)
|
||||
echo t90-cray-unicos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
CRAY-2:*:*:*)
|
||||
echo cray2-cray-unicos
|
||||
exit 0 ;;
|
||||
F300:UNIX_System_V:*:*)
|
||||
FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
|
||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
||||
echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||
exit 0 ;;
|
||||
F301:UNIX_System_V:*:*)
|
||||
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
|
||||
exit 0 ;;
|
||||
hp3[0-9][05]:NetBSD:*:*)
|
||||
echo m68k-hp-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
hp300:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
i?86:BSD/386:*:* | *:BSD/OS:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
*:FreeBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
||||
exit 0 ;;
|
||||
*:NetBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
exit 0 ;;
|
||||
*:OpenBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
exit 0 ;;
|
||||
i*:CYGWIN*:*)
|
||||
echo i386-pc-cygwin32
|
||||
exit 0 ;;
|
||||
i*:MINGW*:*)
|
||||
echo i386-pc-mingw32
|
||||
exit 0 ;;
|
||||
p*:CYGWIN*:*)
|
||||
echo powerpcle-unknown-cygwin32
|
||||
exit 0 ;;
|
||||
prep*:SunOS:5.*:*)
|
||||
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
*:GNU:*:*)
|
||||
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
||||
exit 0 ;;
|
||||
*:Linux:*:*)
|
||||
# The BFD linker knows what the default object file format is, so
|
||||
# first see if it will tell us.
|
||||
ld_help_string=`ld --help 2>&1`
|
||||
ld_supported_emulations=`echo $ld_help_string \
|
||||
| sed -ne '/supported emulations:/!d
|
||||
s/[ ][ ]*/ /g
|
||||
s/.*supported emulations: *//
|
||||
s/ .*//
|
||||
p'`
|
||||
case "$ld_supported_emulations" in
|
||||
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
|
||||
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
|
||||
sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
||||
m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
||||
elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
|
||||
esac
|
||||
|
||||
if test "${UNAME_MACHINE}" = "alpha" ; then
|
||||
sed 's/^ //' <<EOF >dummy.s
|
||||
.globl main
|
||||
.ent main
|
||||
main:
|
||||
.frame \$30,0,\$26,0
|
||||
.prologue 0
|
||||
.long 0x47e03d80 # implver $0
|
||||
lda \$2,259
|
||||
.long 0x47e20c21 # amask $2,$1
|
||||
srl \$1,8,\$2
|
||||
sll \$2,2,\$2
|
||||
sll \$0,3,\$0
|
||||
addl \$1,\$0,\$0
|
||||
addl \$2,\$0,\$0
|
||||
ret \$31,(\$26),1
|
||||
.end main
|
||||
EOF
|
||||
LIBC=""
|
||||
${CC-cc} dummy.s -o dummy 2>/dev/null
|
||||
if test "$?" = 0 ; then
|
||||
./dummy
|
||||
case "$?" in
|
||||
7)
|
||||
UNAME_MACHINE="alpha"
|
||||
;;
|
||||
15)
|
||||
UNAME_MACHINE="alphaev5"
|
||||
;;
|
||||
14)
|
||||
UNAME_MACHINE="alphaev56"
|
||||
;;
|
||||
10)
|
||||
UNAME_MACHINE="alphapca56"
|
||||
;;
|
||||
16)
|
||||
UNAME_MACHINE="alphaev6"
|
||||
;;
|
||||
esac
|
||||
|
||||
objdump --private-headers dummy | \
|
||||
grep ld.so.1 > /dev/null
|
||||
if test "$?" = 0 ; then
|
||||
LIBC="libc1"
|
||||
fi
|
||||
fi
|
||||
rm -f dummy.s dummy
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
|
||||
elif test "${UNAME_MACHINE}" = "mips" ; then
|
||||
cat >dummy.c <<EOF
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
#ifdef __MIPSEB__
|
||||
printf ("%s-unknown-linux-gnu\n", argv[1]);
|
||||
#endif
|
||||
#ifdef __MIPSEL__
|
||||
printf ("%sel-unknown-linux-gnu\n", argv[1]);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
else
|
||||
# Either a pre-BFD a.out linker (linux-gnuoldld)
|
||||
# or one that does not give us useful --help.
|
||||
# GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
|
||||
# If ld does not provide *any* "supported emulations:"
|
||||
# that means it is gnuoldld.
|
||||
echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
|
||||
test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
|
||||
|
||||
case "${UNAME_MACHINE}" in
|
||||
i?86)
|
||||
VENDOR=pc;
|
||||
;;
|
||||
*)
|
||||
VENDOR=unknown;
|
||||
;;
|
||||
esac
|
||||
# Determine whether the default compiler is a.out or elf
|
||||
cat >dummy.c <<EOF
|
||||
#include <features.h>
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
#ifdef __ELF__
|
||||
# ifdef __GLIBC__
|
||||
# if __GLIBC__ >= 2
|
||||
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
|
||||
# else
|
||||
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
||||
# endif
|
||||
# else
|
||||
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
||||
# endif
|
||||
#else
|
||||
printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
fi ;;
|
||||
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
||||
# are messed up and put the nodename in both sysname and nodename.
|
||||
i?86:DYNIX/ptx:4*:*)
|
||||
echo i386-sequent-sysv4
|
||||
exit 0 ;;
|
||||
i?86:UNIX_SV:4.2MP:2.*)
|
||||
# Unixware is an offshoot of SVR4, but it has its own version
|
||||
# number series starting with 2...
|
||||
# I am not positive that other SVR4 systems won't match this,
|
||||
# I just have to hope. -- rms.
|
||||
# Use sysv4.2uw... so that sysv4* matches it.
|
||||
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
||||
exit 0 ;;
|
||||
i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
|
||||
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
||||
echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
|
||||
else
|
||||
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
|
||||
fi
|
||||
exit 0 ;;
|
||||
i?86:*:3.2:*)
|
||||
if test -f /usr/options/cb.name; then
|
||||
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
||||
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
||||
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
||||
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
||||
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
||||
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
||||
&& UNAME_MACHINE=i586
|
||||
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
||||
else
|
||||
echo ${UNAME_MACHINE}-pc-sysv32
|
||||
fi
|
||||
exit 0 ;;
|
||||
pc:*:*:*)
|
||||
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
||||
# the processor, so we play safe by assuming i386.
|
||||
echo i386-pc-msdosdjgpp
|
||||
exit 0 ;;
|
||||
Intel:Mach:3*:*)
|
||||
echo i386-pc-mach3
|
||||
exit 0 ;;
|
||||
paragon:*:*:*)
|
||||
echo i860-intel-osf1
|
||||
exit 0 ;;
|
||||
i860:*:4.*:*) # i860-SVR4
|
||||
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
||||
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
|
||||
else # Add other i860-SVR4 vendors below as they are discovered.
|
||||
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
|
||||
fi
|
||||
exit 0 ;;
|
||||
mini*:CTIX:SYS*5:*)
|
||||
# "miniframe"
|
||||
echo m68010-convergent-sysv
|
||||
exit 0 ;;
|
||||
M68*:*:R3V[567]*:*)
|
||||
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
||||
3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
|
||||
OS_REL=''
|
||||
test -r /etc/.relid \
|
||||
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
|
||||
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
||||
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
|
||||
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||
&& echo i486-ncr-sysv4 && exit 0 ;;
|
||||
m68*:LynxOS:2.*:*)
|
||||
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mc68030:UNIX_System_V:4.*:*)
|
||||
echo m68k-atari-sysv4
|
||||
exit 0 ;;
|
||||
i?86:LynxOS:2.*:*)
|
||||
echo i386-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
TSUNAMI:LynxOS:2.*:*)
|
||||
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
|
||||
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
SM[BE]S:UNIX_SV:*:*)
|
||||
echo mips-dde-sysv${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
RM*:SINIX-*:*:*)
|
||||
echo mips-sni-sysv4
|
||||
exit 0 ;;
|
||||
*:SINIX-*:*:*)
|
||||
if uname -p 2>/dev/null >/dev/null ; then
|
||||
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
||||
echo ${UNAME_MACHINE}-sni-sysv4
|
||||
else
|
||||
echo ns32k-sni-sysv
|
||||
fi
|
||||
exit 0 ;;
|
||||
PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
||||
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
||||
echo i586-unisys-sysv4
|
||||
exit 0 ;;
|
||||
*:UNIX_System_V:4*:FTX*)
|
||||
# From Gerald Hewes <hewes@openmarket.com>.
|
||||
# How about differentiating between stratus architectures? -djm
|
||||
echo hppa1.1-stratus-sysv4
|
||||
exit 0 ;;
|
||||
*:*:*:FTX*)
|
||||
# From seanf@swdc.stratus.com.
|
||||
echo i860-stratus-sysv4
|
||||
exit 0 ;;
|
||||
mc68*:A/UX:*:*)
|
||||
echo m68k-apple-aux${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
news*:NEWS-OS:*:6*)
|
||||
echo mips-sony-newsos6
|
||||
exit 0 ;;
|
||||
R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
|
||||
if [ -d /usr/nec ]; then
|
||||
echo mips-nec-sysv${UNAME_RELEASE}
|
||||
else
|
||||
echo mips-unknown-sysv${UNAME_RELEASE}
|
||||
fi
|
||||
exit 0 ;;
|
||||
esac
|
||||
|
||||
#echo '(No uname command or uname output not recognized.)' 1>&2
|
||||
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
||||
|
||||
cat >dummy.c <<EOF
|
||||
#ifdef _SEQUENT_
|
||||
# include <sys/types.h>
|
||||
# include <sys/utsname.h>
|
||||
#endif
|
||||
main ()
|
||||
{
|
||||
#if defined (sony)
|
||||
#if defined (MIPSEB)
|
||||
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
||||
I don't know.... */
|
||||
printf ("mips-sony-bsd\n"); exit (0);
|
||||
#else
|
||||
#include <sys/param.h>
|
||||
printf ("m68k-sony-newsos%s\n",
|
||||
#ifdef NEWSOS4
|
||||
"4"
|
||||
#else
|
||||
""
|
||||
#endif
|
||||
); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (__arm) && defined (__acorn) && defined (__unix)
|
||||
printf ("arm-acorn-riscix"); exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (hp300) && !defined (hpux)
|
||||
printf ("m68k-hp-bsd\n"); exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (NeXT)
|
||||
#if !defined (__ARCHITECTURE__)
|
||||
#define __ARCHITECTURE__ "m68k"
|
||||
#endif
|
||||
int version;
|
||||
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
||||
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
||||
exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (MULTIMAX) || defined (n16)
|
||||
#if defined (UMAXV)
|
||||
printf ("ns32k-encore-sysv\n"); exit (0);
|
||||
#else
|
||||
#if defined (CMU)
|
||||
printf ("ns32k-encore-mach\n"); exit (0);
|
||||
#else
|
||||
printf ("ns32k-encore-bsd\n"); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (__386BSD__)
|
||||
printf ("i386-pc-bsd\n"); exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (sequent)
|
||||
#if defined (i386)
|
||||
printf ("i386-sequent-dynix\n"); exit (0);
|
||||
#endif
|
||||
#if defined (ns32000)
|
||||
printf ("ns32k-sequent-dynix\n"); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (_SEQUENT_)
|
||||
struct utsname un;
|
||||
|
||||
uname(&un);
|
||||
|
||||
if (strncmp(un.version, "V2", 2) == 0) {
|
||||
printf ("i386-sequent-ptx2\n"); exit (0);
|
||||
}
|
||||
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
|
||||
printf ("i386-sequent-ptx1\n"); exit (0);
|
||||
}
|
||||
printf ("i386-sequent-ptx\n"); exit (0);
|
||||
|
||||
#endif
|
||||
|
||||
#if defined (vax)
|
||||
#if !defined (ultrix)
|
||||
printf ("vax-dec-bsd\n"); exit (0);
|
||||
#else
|
||||
printf ("vax-dec-ultrix\n"); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (alliant) && defined (i860)
|
||||
printf ("i860-alliant-bsd\n"); exit (0);
|
||||
#endif
|
||||
|
||||
exit (1);
|
||||
}
|
||||
EOF
|
||||
|
||||
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
|
||||
# Apollos put the system type in the environment.
|
||||
|
||||
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
||||
|
||||
# Convex versions that predate uname can use getsysinfo(1)
|
||||
|
||||
if [ -x /usr/convex/getsysinfo ]
|
||||
then
|
||||
case `getsysinfo -f cpu_type` in
|
||||
c1*)
|
||||
echo c1-convex-bsd
|
||||
exit 0 ;;
|
||||
c2*)
|
||||
if getsysinfo -f scalar_acc
|
||||
then echo c32-convex-bsd
|
||||
else echo c2-convex-bsd
|
||||
fi
|
||||
exit 0 ;;
|
||||
c34*)
|
||||
echo c34-convex-bsd
|
||||
exit 0 ;;
|
||||
c38*)
|
||||
echo c38-convex-bsd
|
||||
exit 0 ;;
|
||||
c4*)
|
||||
echo c4-convex-bsd
|
||||
exit 0 ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
#echo '(Unable to guess system type)' 1>&2
|
||||
|
||||
exit 1
|
||||
7
config.h.bot
Normal file
7
config.h.bot
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
#ifndef HAVE_BOOL
|
||||
#define HAVE_BOOL
|
||||
typedef int bool;
|
||||
const bool false = 0;
|
||||
const bool true = 1;
|
||||
#endif
|
||||
24
config.h.in
Normal file
24
config.h.in
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* config.h.in. Generated automatically from configure.in by autoheader. */
|
||||
|
||||
/* Define if the C++ compiler supports BOOL */
|
||||
#undef HAVE_BOOL
|
||||
|
||||
/* defines which to take for ksize_t */
|
||||
#undef ksize_t
|
||||
|
||||
/* Define to 1 if NLS is requested. */
|
||||
#undef ENABLE_NLS
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
|
||||
#ifndef HAVE_BOOL
|
||||
#define HAVE_BOOL
|
||||
typedef int bool;
|
||||
const bool false = 0;
|
||||
const bool true = 1;
|
||||
#endif
|
||||
954
config.sub
vendored
Executable file
954
config.sub
vendored
Executable file
|
|
@ -0,0 +1,954 @@
|
|||
#! /bin/sh
|
||||
# Configuration validation subroutine script, version 1.1.
|
||||
# Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
|
||||
# This file is (in principle) common to ALL GNU software.
|
||||
# The presence of a machine in this file suggests that SOME GNU software
|
||||
# can handle that machine. It does not imply ALL GNU software can.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||
# Supply the specified configuration type as an argument.
|
||||
# If it is invalid, we print an error message on stderr and exit with code 1.
|
||||
# Otherwise, we print the canonical config type on stdout and succeed.
|
||||
|
||||
# This file is supposed to be the same for all GNU packages
|
||||
# and recognize all the CPU types, system types and aliases
|
||||
# that are meaningful with *any* GNU software.
|
||||
# Each package is responsible for reporting which valid configurations
|
||||
# it does not support. The user should be able to distinguish
|
||||
# a failure to support a valid configuration from a meaningless
|
||||
# configuration.
|
||||
|
||||
# The goal of this file is to map all the various variations of a given
|
||||
# machine specification into a single specification in the form:
|
||||
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
||||
# or in some cases, the newer four-part form:
|
||||
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
||||
# It is wrong to echo any other type of specification.
|
||||
|
||||
if [ x$1 = x ]
|
||||
then
|
||||
echo Configuration name missing. 1>&2
|
||||
echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
|
||||
echo "or $0 ALIAS" 1>&2
|
||||
echo where ALIAS is a recognized configuration type. 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# First pass through any local machine types.
|
||||
case $1 in
|
||||
*local*)
|
||||
echo $1
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
|
||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||
case $maybe_os in
|
||||
linux-gnu*)
|
||||
os=-$maybe_os
|
||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||
;;
|
||||
*)
|
||||
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
||||
if [ $basic_machine != $1 ]
|
||||
then os=`echo $1 | sed 's/.*-/-/'`
|
||||
else os=; fi
|
||||
;;
|
||||
esac
|
||||
|
||||
### Let's recognize common machines as not being operating systems so
|
||||
### that things like config.sub decstation-3100 work. We also
|
||||
### recognize some manufacturers as not being operating systems, so we
|
||||
### can provide default operating systems below.
|
||||
case $os in
|
||||
-sun*os*)
|
||||
# Prevent following clause from handling this invalid input.
|
||||
;;
|
||||
-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
|
||||
-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
|
||||
-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
|
||||
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
||||
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
||||
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
||||
-apple)
|
||||
os=
|
||||
basic_machine=$1
|
||||
;;
|
||||
-hiux*)
|
||||
os=-hiuxwe2
|
||||
;;
|
||||
-sco5)
|
||||
os=sco3.2v5
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco4)
|
||||
os=-sco3.2v4
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco3.2.[4-9]*)
|
||||
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco3.2v[4-9]*)
|
||||
# Don't forget version if it is 3.2v4 or newer.
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco*)
|
||||
os=-sco3.2v2
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-isc)
|
||||
os=-isc2.2
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-clix*)
|
||||
basic_machine=clipper-intergraph
|
||||
;;
|
||||
-isc*)
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-lynx*)
|
||||
os=-lynxos
|
||||
;;
|
||||
-ptx*)
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
|
||||
;;
|
||||
-windowsnt*)
|
||||
os=`echo $os | sed -e 's/windowsnt/winnt/'`
|
||||
;;
|
||||
-psos*)
|
||||
os=-psos
|
||||
;;
|
||||
esac
|
||||
|
||||
# Decode aliases for certain CPU-COMPANY combinations.
|
||||
case $basic_machine in
|
||||
# Recognize the basic CPU types without company name.
|
||||
# Some are omitted here because they have special meanings below.
|
||||
tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
|
||||
| arme[lb] | pyramid | mn10200 | mn10300 \
|
||||
| tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
|
||||
| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
|
||||
| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
|
||||
| mips64 | mipsel | mips64el | mips64orion | mips64orionel \
|
||||
| mipstx39 | mipstx39el \
|
||||
| sparc | sparclet | sparclite | sparc64 | v850)
|
||||
basic_machine=$basic_machine-unknown
|
||||
;;
|
||||
# We use `pc' rather than `unknown'
|
||||
# because (1) that's what they normally are, and
|
||||
# (2) the word "unknown" tends to confuse beginning users.
|
||||
i[3456]86)
|
||||
basic_machine=$basic_machine-pc
|
||||
;;
|
||||
# Object if more than one company name word.
|
||||
*-*-*)
|
||||
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
||||
exit 1
|
||||
;;
|
||||
# Recognize the basic CPU types with company name.
|
||||
vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
|
||||
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
|
||||
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
|
||||
| power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
|
||||
| xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
|
||||
| alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
|
||||
| ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
|
||||
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
|
||||
| sparc64-* | mips64-* | mipsel-* \
|
||||
| mips64el-* | mips64orion-* | mips64orionel-* \
|
||||
| mipstx39-* | mipstx39el-* \
|
||||
| f301-*)
|
||||
;;
|
||||
# Recognize the various machine names and aliases which stand
|
||||
# for a CPU type and a company and sometimes even an OS.
|
||||
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
|
||||
basic_machine=m68000-att
|
||||
;;
|
||||
3b*)
|
||||
basic_machine=we32k-att
|
||||
;;
|
||||
alliant | fx80)
|
||||
basic_machine=fx80-alliant
|
||||
;;
|
||||
altos | altos3068)
|
||||
basic_machine=m68k-altos
|
||||
;;
|
||||
am29k)
|
||||
basic_machine=a29k-none
|
||||
os=-bsd
|
||||
;;
|
||||
amdahl)
|
||||
basic_machine=580-amdahl
|
||||
os=-sysv
|
||||
;;
|
||||
amiga | amiga-*)
|
||||
basic_machine=m68k-cbm
|
||||
;;
|
||||
amigaos | amigados)
|
||||
basic_machine=m68k-cbm
|
||||
os=-amigaos
|
||||
;;
|
||||
amigaunix | amix)
|
||||
basic_machine=m68k-cbm
|
||||
os=-sysv4
|
||||
;;
|
||||
apollo68)
|
||||
basic_machine=m68k-apollo
|
||||
os=-sysv
|
||||
;;
|
||||
aux)
|
||||
basic_machine=m68k-apple
|
||||
os=-aux
|
||||
;;
|
||||
balance)
|
||||
basic_machine=ns32k-sequent
|
||||
os=-dynix
|
||||
;;
|
||||
convex-c1)
|
||||
basic_machine=c1-convex
|
||||
os=-bsd
|
||||
;;
|
||||
convex-c2)
|
||||
basic_machine=c2-convex
|
||||
os=-bsd
|
||||
;;
|
||||
convex-c32)
|
||||
basic_machine=c32-convex
|
||||
os=-bsd
|
||||
;;
|
||||
convex-c34)
|
||||
basic_machine=c34-convex
|
||||
os=-bsd
|
||||
;;
|
||||
convex-c38)
|
||||
basic_machine=c38-convex
|
||||
os=-bsd
|
||||
;;
|
||||
cray | ymp)
|
||||
basic_machine=ymp-cray
|
||||
os=-unicos
|
||||
;;
|
||||
cray2)
|
||||
basic_machine=cray2-cray
|
||||
os=-unicos
|
||||
;;
|
||||
[ctj]90-cray)
|
||||
basic_machine=c90-cray
|
||||
os=-unicos
|
||||
;;
|
||||
crds | unos)
|
||||
basic_machine=m68k-crds
|
||||
;;
|
||||
da30 | da30-*)
|
||||
basic_machine=m68k-da30
|
||||
;;
|
||||
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
||||
basic_machine=mips-dec
|
||||
;;
|
||||
delta | 3300 | motorola-3300 | motorola-delta \
|
||||
| 3300-motorola | delta-motorola)
|
||||
basic_machine=m68k-motorola
|
||||
;;
|
||||
delta88)
|
||||
basic_machine=m88k-motorola
|
||||
os=-sysv3
|
||||
;;
|
||||
dpx20 | dpx20-*)
|
||||
basic_machine=rs6000-bull
|
||||
os=-bosx
|
||||
;;
|
||||
dpx2* | dpx2*-bull)
|
||||
basic_machine=m68k-bull
|
||||
os=-sysv3
|
||||
;;
|
||||
ebmon29k)
|
||||
basic_machine=a29k-amd
|
||||
os=-ebmon
|
||||
;;
|
||||
elxsi)
|
||||
basic_machine=elxsi-elxsi
|
||||
os=-bsd
|
||||
;;
|
||||
encore | umax | mmax)
|
||||
basic_machine=ns32k-encore
|
||||
;;
|
||||
fx2800)
|
||||
basic_machine=i860-alliant
|
||||
;;
|
||||
genix)
|
||||
basic_machine=ns32k-ns
|
||||
;;
|
||||
gmicro)
|
||||
basic_machine=tron-gmicro
|
||||
os=-sysv
|
||||
;;
|
||||
h3050r* | hiux*)
|
||||
basic_machine=hppa1.1-hitachi
|
||||
os=-hiuxwe2
|
||||
;;
|
||||
h8300hms)
|
||||
basic_machine=h8300-hitachi
|
||||
os=-hms
|
||||
;;
|
||||
harris)
|
||||
basic_machine=m88k-harris
|
||||
os=-sysv3
|
||||
;;
|
||||
hp300-*)
|
||||
basic_machine=m68k-hp
|
||||
;;
|
||||
hp300bsd)
|
||||
basic_machine=m68k-hp
|
||||
os=-bsd
|
||||
;;
|
||||
hp300hpux)
|
||||
basic_machine=m68k-hp
|
||||
os=-hpux
|
||||
;;
|
||||
hp9k2[0-9][0-9] | hp9k31[0-9])
|
||||
basic_machine=m68000-hp
|
||||
;;
|
||||
hp9k3[2-9][0-9])
|
||||
basic_machine=m68k-hp
|
||||
;;
|
||||
hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
|
||||
basic_machine=hppa1.1-hp
|
||||
;;
|
||||
hp9k8[0-9][0-9] | hp8[0-9][0-9])
|
||||
basic_machine=hppa1.0-hp
|
||||
;;
|
||||
hppa-next)
|
||||
os=-nextstep3
|
||||
;;
|
||||
i370-ibm* | ibm*)
|
||||
basic_machine=i370-ibm
|
||||
os=-mvs
|
||||
;;
|
||||
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
||||
i[3456]86v32)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-sysv32
|
||||
;;
|
||||
i[3456]86v4*)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-sysv4
|
||||
;;
|
||||
i[3456]86v)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-sysv
|
||||
;;
|
||||
i[3456]86sol2)
|
||||
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
||||
os=-solaris2
|
||||
;;
|
||||
iris | iris4d)
|
||||
basic_machine=mips-sgi
|
||||
case $os in
|
||||
-irix*)
|
||||
;;
|
||||
*)
|
||||
os=-irix4
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
isi68 | isi)
|
||||
basic_machine=m68k-isi
|
||||
os=-sysv
|
||||
;;
|
||||
m88k-omron*)
|
||||
basic_machine=m88k-omron
|
||||
;;
|
||||
magnum | m3230)
|
||||
basic_machine=mips-mips
|
||||
os=-sysv
|
||||
;;
|
||||
merlin)
|
||||
basic_machine=ns32k-utek
|
||||
os=-sysv
|
||||
;;
|
||||
miniframe)
|
||||
basic_machine=m68000-convergent
|
||||
;;
|
||||
mipsel*-linux*)
|
||||
basic_machine=mipsel-unknown
|
||||
os=-linux-gnu
|
||||
;;
|
||||
mips*-linux*)
|
||||
basic_machine=mips-unknown
|
||||
os=-linux-gnu
|
||||
;;
|
||||
mips3*-*)
|
||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||
;;
|
||||
mips3*)
|
||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
||||
;;
|
||||
ncr3000)
|
||||
basic_machine=i486-ncr
|
||||
os=-sysv4
|
||||
;;
|
||||
news | news700 | news800 | news900)
|
||||
basic_machine=m68k-sony
|
||||
os=-newsos
|
||||
;;
|
||||
news1000)
|
||||
basic_machine=m68030-sony
|
||||
os=-newsos
|
||||
;;
|
||||
news-3600 | risc-news)
|
||||
basic_machine=mips-sony
|
||||
os=-newsos
|
||||
;;
|
||||
next | m*-next )
|
||||
basic_machine=m68k-next
|
||||
case $os in
|
||||
-nextstep* )
|
||||
;;
|
||||
-ns2*)
|
||||
os=-nextstep2
|
||||
;;
|
||||
*)
|
||||
os=-nextstep3
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
nh3000)
|
||||
basic_machine=m68k-harris
|
||||
os=-cxux
|
||||
;;
|
||||
nh[45]000)
|
||||
basic_machine=m88k-harris
|
||||
os=-cxux
|
||||
;;
|
||||
nindy960)
|
||||
basic_machine=i960-intel
|
||||
os=-nindy
|
||||
;;
|
||||
np1)
|
||||
basic_machine=np1-gould
|
||||
;;
|
||||
pa-hitachi)
|
||||
basic_machine=hppa1.1-hitachi
|
||||
os=-hiuxwe2
|
||||
;;
|
||||
paragon)
|
||||
basic_machine=i860-intel
|
||||
os=-osf
|
||||
;;
|
||||
pbd)
|
||||
basic_machine=sparc-tti
|
||||
;;
|
||||
pbb)
|
||||
basic_machine=m68k-tti
|
||||
;;
|
||||
pc532 | pc532-*)
|
||||
basic_machine=ns32k-pc532
|
||||
;;
|
||||
pentium | p5)
|
||||
basic_machine=i586-intel
|
||||
;;
|
||||
pentiumpro | p6)
|
||||
basic_machine=i686-intel
|
||||
;;
|
||||
pentium-* | p5-*)
|
||||
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
pentiumpro-* | p6-*)
|
||||
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
k5)
|
||||
# We don't have specific support for AMD's K5 yet, so just call it a Pentium
|
||||
basic_machine=i586-amd
|
||||
;;
|
||||
nexen)
|
||||
# We don't have specific support for Nexgen yet, so just call it a Pentium
|
||||
basic_machine=i586-nexgen
|
||||
;;
|
||||
pn)
|
||||
basic_machine=pn-gould
|
||||
;;
|
||||
power) basic_machine=rs6000-ibm
|
||||
;;
|
||||
ppc) basic_machine=powerpc-unknown
|
||||
;;
|
||||
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
ppcle | powerpclittle | ppc-le | powerpc-little)
|
||||
basic_machine=powerpcle-unknown
|
||||
;;
|
||||
ppcle-* | powerpclittle-*)
|
||||
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
ps2)
|
||||
basic_machine=i386-ibm
|
||||
;;
|
||||
rm[46]00)
|
||||
basic_machine=mips-siemens
|
||||
;;
|
||||
rtpc | rtpc-*)
|
||||
basic_machine=romp-ibm
|
||||
;;
|
||||
sequent)
|
||||
basic_machine=i386-sequent
|
||||
;;
|
||||
sh)
|
||||
basic_machine=sh-hitachi
|
||||
os=-hms
|
||||
;;
|
||||
sps7)
|
||||
basic_machine=m68k-bull
|
||||
os=-sysv2
|
||||
;;
|
||||
spur)
|
||||
basic_machine=spur-unknown
|
||||
;;
|
||||
sun2)
|
||||
basic_machine=m68000-sun
|
||||
;;
|
||||
sun2os3)
|
||||
basic_machine=m68000-sun
|
||||
os=-sunos3
|
||||
;;
|
||||
sun2os4)
|
||||
basic_machine=m68000-sun
|
||||
os=-sunos4
|
||||
;;
|
||||
sun3os3)
|
||||
basic_machine=m68k-sun
|
||||
os=-sunos3
|
||||
;;
|
||||
sun3os4)
|
||||
basic_machine=m68k-sun
|
||||
os=-sunos4
|
||||
;;
|
||||
sun4os3)
|
||||
basic_machine=sparc-sun
|
||||
os=-sunos3
|
||||
;;
|
||||
sun4os4)
|
||||
basic_machine=sparc-sun
|
||||
os=-sunos4
|
||||
;;
|
||||
sun4sol2)
|
||||
basic_machine=sparc-sun
|
||||
os=-solaris2
|
||||
;;
|
||||
sun3 | sun3-*)
|
||||
basic_machine=m68k-sun
|
||||
;;
|
||||
sun4)
|
||||
basic_machine=sparc-sun
|
||||
;;
|
||||
sun386 | sun386i | roadrunner)
|
||||
basic_machine=i386-sun
|
||||
;;
|
||||
symmetry)
|
||||
basic_machine=i386-sequent
|
||||
os=-dynix
|
||||
;;
|
||||
tx39)
|
||||
basic_machine=mipstx39-unknown
|
||||
;;
|
||||
tx39el)
|
||||
basic_machine=mipstx39el-unknown
|
||||
;;
|
||||
tower | tower-32)
|
||||
basic_machine=m68k-ncr
|
||||
;;
|
||||
udi29k)
|
||||
basic_machine=a29k-amd
|
||||
os=-udi
|
||||
;;
|
||||
ultra3)
|
||||
basic_machine=a29k-nyu
|
||||
os=-sym1
|
||||
;;
|
||||
vaxv)
|
||||
basic_machine=vax-dec
|
||||
os=-sysv
|
||||
;;
|
||||
vms)
|
||||
basic_machine=vax-dec
|
||||
os=-vms
|
||||
;;
|
||||
vpp*|vx|vx-*)
|
||||
basic_machine=f301-fujitsu
|
||||
;;
|
||||
vxworks960)
|
||||
basic_machine=i960-wrs
|
||||
os=-vxworks
|
||||
;;
|
||||
vxworks68)
|
||||
basic_machine=m68k-wrs
|
||||
os=-vxworks
|
||||
;;
|
||||
vxworks29k)
|
||||
basic_machine=a29k-wrs
|
||||
os=-vxworks
|
||||
;;
|
||||
xmp)
|
||||
basic_machine=xmp-cray
|
||||
os=-unicos
|
||||
;;
|
||||
xps | xps100)
|
||||
basic_machine=xps100-honeywell
|
||||
;;
|
||||
none)
|
||||
basic_machine=none-none
|
||||
os=-none
|
||||
;;
|
||||
|
||||
# Here we handle the default manufacturer of certain CPU types. It is in
|
||||
# some cases the only manufacturer, in others, it is the most popular.
|
||||
mips)
|
||||
if [ x$os = x-linux-gnu ]; then
|
||||
basic_machine=mips-unknown
|
||||
else
|
||||
basic_machine=mips-mips
|
||||
fi
|
||||
;;
|
||||
romp)
|
||||
basic_machine=romp-ibm
|
||||
;;
|
||||
rs6000)
|
||||
basic_machine=rs6000-ibm
|
||||
;;
|
||||
vax)
|
||||
basic_machine=vax-dec
|
||||
;;
|
||||
pdp11)
|
||||
basic_machine=pdp11-dec
|
||||
;;
|
||||
we32k)
|
||||
basic_machine=we32k-att
|
||||
;;
|
||||
sparc)
|
||||
basic_machine=sparc-sun
|
||||
;;
|
||||
cydra)
|
||||
basic_machine=cydra-cydrome
|
||||
;;
|
||||
orion)
|
||||
basic_machine=orion-highlevel
|
||||
;;
|
||||
orion105)
|
||||
basic_machine=clipper-highlevel
|
||||
;;
|
||||
*)
|
||||
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# Here we canonicalize certain aliases for manufacturers.
|
||||
case $basic_machine in
|
||||
*-digital*)
|
||||
basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
|
||||
;;
|
||||
*-commodore*)
|
||||
basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# Decode manufacturer-specific aliases for certain operating systems.
|
||||
|
||||
if [ x"$os" != x"" ]
|
||||
then
|
||||
case $os in
|
||||
# First match some system type aliases
|
||||
# that might get confused with valid system types.
|
||||
# -solaris* is a basic system type, with this one exception.
|
||||
-solaris1 | -solaris1.*)
|
||||
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
||||
;;
|
||||
-solaris)
|
||||
os=-solaris2
|
||||
;;
|
||||
-svr4*)
|
||||
os=-sysv4
|
||||
;;
|
||||
-unixware*)
|
||||
os=-sysv4.2uw
|
||||
;;
|
||||
-gnu/linux*)
|
||||
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
|
||||
;;
|
||||
# First accept the basic system types.
|
||||
# The portable systems comes first.
|
||||
# Each alternative MUST END IN A *, to match a version number.
|
||||
# -sysv* is not here because it comes later, after sysvr4.
|
||||
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
||||
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
||||
| -aos* \
|
||||
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
||||
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
|
||||
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
|
||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||
| -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||
| -mingw32* | -linux-gnu* | -uxpv*)
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
-linux*)
|
||||
os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
||||
;;
|
||||
-sunos5*)
|
||||
os=`echo $os | sed -e 's|sunos5|solaris2|'`
|
||||
;;
|
||||
-sunos6*)
|
||||
os=`echo $os | sed -e 's|sunos6|solaris3|'`
|
||||
;;
|
||||
-osfrose*)
|
||||
os=-osfrose
|
||||
;;
|
||||
-osf*)
|
||||
os=-osf
|
||||
;;
|
||||
-utek*)
|
||||
os=-bsd
|
||||
;;
|
||||
-dynix*)
|
||||
os=-bsd
|
||||
;;
|
||||
-acis*)
|
||||
os=-aos
|
||||
;;
|
||||
-ctix* | -uts*)
|
||||
os=-sysv
|
||||
;;
|
||||
-ns2 )
|
||||
os=-nextstep2
|
||||
;;
|
||||
# Preserve the version number of sinix5.
|
||||
-sinix5.*)
|
||||
os=`echo $os | sed -e 's|sinix|sysv|'`
|
||||
;;
|
||||
-sinix*)
|
||||
os=-sysv4
|
||||
;;
|
||||
-triton*)
|
||||
os=-sysv3
|
||||
;;
|
||||
-oss*)
|
||||
os=-sysv3
|
||||
;;
|
||||
-svr4)
|
||||
os=-sysv4
|
||||
;;
|
||||
-svr3)
|
||||
os=-sysv3
|
||||
;;
|
||||
-sysvr4)
|
||||
os=-sysv4
|
||||
;;
|
||||
# This must come after -sysvr4.
|
||||
-sysv*)
|
||||
;;
|
||||
-xenix)
|
||||
os=-xenix
|
||||
;;
|
||||
-none)
|
||||
;;
|
||||
*)
|
||||
# Get rid of the `-' at the beginning of $os.
|
||||
os=`echo $os | sed 's/[^-]*-//'`
|
||||
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
else
|
||||
|
||||
# Here we handle the default operating systems that come with various machines.
|
||||
# The value should be what the vendor currently ships out the door with their
|
||||
# machine or put another way, the most popular os provided with the machine.
|
||||
|
||||
# Note that if you're going to try to match "-MANUFACTURER" here (say,
|
||||
# "-sun"), then you have to tell the case statement up towards the top
|
||||
# that MANUFACTURER isn't an operating system. Otherwise, code above
|
||||
# will signal an error saying that MANUFACTURER isn't an operating
|
||||
# system, and we'll never get to this point.
|
||||
|
||||
case $basic_machine in
|
||||
*-acorn)
|
||||
os=-riscix1.2
|
||||
;;
|
||||
arm*-semi)
|
||||
os=-aout
|
||||
;;
|
||||
pdp11-*)
|
||||
os=-none
|
||||
;;
|
||||
*-dec | vax-*)
|
||||
os=-ultrix4.2
|
||||
;;
|
||||
m68*-apollo)
|
||||
os=-domain
|
||||
;;
|
||||
i386-sun)
|
||||
os=-sunos4.0.2
|
||||
;;
|
||||
m68000-sun)
|
||||
os=-sunos3
|
||||
# This also exists in the configure program, but was not the
|
||||
# default.
|
||||
# os=-sunos4
|
||||
;;
|
||||
*-tti) # must be before sparc entry or we get the wrong os.
|
||||
os=-sysv3
|
||||
;;
|
||||
sparc-* | *-sun)
|
||||
os=-sunos4.1.1
|
||||
;;
|
||||
*-ibm)
|
||||
os=-aix
|
||||
;;
|
||||
*-hp)
|
||||
os=-hpux
|
||||
;;
|
||||
*-hitachi)
|
||||
os=-hiux
|
||||
;;
|
||||
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
|
||||
os=-sysv
|
||||
;;
|
||||
*-cbm)
|
||||
os=-amigaos
|
||||
;;
|
||||
*-dg)
|
||||
os=-dgux
|
||||
;;
|
||||
*-dolphin)
|
||||
os=-sysv3
|
||||
;;
|
||||
m68k-ccur)
|
||||
os=-rtu
|
||||
;;
|
||||
m88k-omron*)
|
||||
os=-luna
|
||||
;;
|
||||
*-next )
|
||||
os=-nextstep
|
||||
;;
|
||||
*-sequent)
|
||||
os=-ptx
|
||||
;;
|
||||
*-crds)
|
||||
os=-unos
|
||||
;;
|
||||
*-ns)
|
||||
os=-genix
|
||||
;;
|
||||
i370-*)
|
||||
os=-mvs
|
||||
;;
|
||||
*-next)
|
||||
os=-nextstep3
|
||||
;;
|
||||
*-gould)
|
||||
os=-sysv
|
||||
;;
|
||||
*-highlevel)
|
||||
os=-bsd
|
||||
;;
|
||||
*-encore)
|
||||
os=-bsd
|
||||
;;
|
||||
*-sgi)
|
||||
os=-irix
|
||||
;;
|
||||
*-siemens)
|
||||
os=-sysv4
|
||||
;;
|
||||
*-masscomp)
|
||||
os=-rtu
|
||||
;;
|
||||
f301-fujitsu)
|
||||
os=-uxpv
|
||||
;;
|
||||
*)
|
||||
os=-none
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Here we handle the case where we know the os, and the CPU type, but not the
|
||||
# manufacturer. We pick the logical manufacturer.
|
||||
vendor=unknown
|
||||
case $basic_machine in
|
||||
*-unknown)
|
||||
case $os in
|
||||
-riscix*)
|
||||
vendor=acorn
|
||||
;;
|
||||
-sunos*)
|
||||
vendor=sun
|
||||
;;
|
||||
-aix*)
|
||||
vendor=ibm
|
||||
;;
|
||||
-hpux*)
|
||||
vendor=hp
|
||||
;;
|
||||
-hiux*)
|
||||
vendor=hitachi
|
||||
;;
|
||||
-unos*)
|
||||
vendor=crds
|
||||
;;
|
||||
-dgux*)
|
||||
vendor=dg
|
||||
;;
|
||||
-luna*)
|
||||
vendor=omron
|
||||
;;
|
||||
-genix*)
|
||||
vendor=ns
|
||||
;;
|
||||
-mvs*)
|
||||
vendor=ibm
|
||||
;;
|
||||
-ptx*)
|
||||
vendor=sequent
|
||||
;;
|
||||
-vxsim* | -vxworks*)
|
||||
vendor=wrs
|
||||
;;
|
||||
-aux*)
|
||||
vendor=apple
|
||||
;;
|
||||
esac
|
||||
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
|
||||
;;
|
||||
esac
|
||||
|
||||
echo $basic_machine$os
|
||||
20
configure.in
Normal file
20
configure.in
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
dnl without this order in this file, autoconf will not work!
|
||||
dnl the argument is a source file out of your sources. But
|
||||
dnl acinclude.m4 makes the job for all programs ;-)
|
||||
AC_INIT(acinclude.m4)
|
||||
|
||||
dnl without this order in this file, automake will be confused!
|
||||
dnl the argument
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl insert here your program name and version number
|
||||
AC_PROG_CC
|
||||
KDE_DO_IT_ALL(kpasman,0.1)
|
||||
|
||||
dnl in this space add everything you want to check for
|
||||
dnl examples are specific headers, libraries, etc.
|
||||
dnl everything to compile and run a KDE program is already checked
|
||||
|
||||
dnl add here all your Makefiles. This are created by configure
|
||||
AC_OUTPUT(Makefile kpasman/Makefile kpasman/docs/Makefile kpasman/docs/en/Makefile po/Makefile )
|
||||
238
install-sh
Executable file
238
install-sh
Executable file
|
|
@ -0,0 +1,238 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# install - install a program, script, or datafile
|
||||
# This comes from X11R5.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch.
|
||||
#
|
||||
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit="${DOITPROG-}"
|
||||
|
||||
|
||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||
|
||||
mvprog="${MVPROG-mv}"
|
||||
cpprog="${CPPROG-cp}"
|
||||
chmodprog="${CHMODPROG-chmod}"
|
||||
chownprog="${CHOWNPROG-chown}"
|
||||
chgrpprog="${CHGRPPROG-chgrp}"
|
||||
stripprog="${STRIPPROG-strip}"
|
||||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
transformbasename=""
|
||||
transform_arg=""
|
||||
instcmd="$mvprog"
|
||||
chmodcmd="$chmodprog 0755"
|
||||
chowncmd=""
|
||||
chgrpcmd=""
|
||||
stripcmd=""
|
||||
rmcmd="$rmprog -f"
|
||||
mvcmd="$mvprog"
|
||||
src=""
|
||||
dst=""
|
||||
dir_arg=""
|
||||
|
||||
while [ x"$1" != x ]; do
|
||||
case $1 in
|
||||
-c) instcmd="$cpprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-d) dir_arg=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-m) chmodcmd="$chmodprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-s) stripcmd="$stripprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
*) if [ x"$src" = x ]
|
||||
then
|
||||
src=$1
|
||||
else
|
||||
# this colon is to work around a 386BSD /bin/sh bug
|
||||
:
|
||||
dst=$1
|
||||
fi
|
||||
shift
|
||||
continue;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ x"$src" = x ]
|
||||
then
|
||||
echo "install: no input file specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]; then
|
||||
dst=$src
|
||||
src=""
|
||||
|
||||
if [ -d $dst ]; then
|
||||
instcmd=:
|
||||
else
|
||||
instcmd=mkdir
|
||||
fi
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
|
||||
if [ -f $src -o -d $src ]
|
||||
then
|
||||
true
|
||||
else
|
||||
echo "install: $src does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ x"$dst" = x ]
|
||||
then
|
||||
echo "install: no destination specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# If destination is a directory, append the input filename; if your system
|
||||
# does not like double slashes in filenames, you may need to add some logic
|
||||
|
||||
if [ -d $dst ]
|
||||
then
|
||||
dst="$dst"/`basename $src`
|
||||
else
|
||||
true
|
||||
fi
|
||||
fi
|
||||
|
||||
## this sed command emulates the dirname command
|
||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
||||
|
||||
# Make sure that the destination directory exists.
|
||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
||||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if [ ! -d "$dstdir" ]; then
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-${defaultIFS}}"
|
||||
|
||||
oIFS="${IFS}"
|
||||
# Some sh's can't handle IFS=/ for some reason.
|
||||
IFS='%'
|
||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||
IFS="${oIFS}"
|
||||
|
||||
pathcomp=''
|
||||
|
||||
while [ $# -ne 0 ] ; do
|
||||
pathcomp="${pathcomp}${1}"
|
||||
shift
|
||||
|
||||
if [ ! -d "${pathcomp}" ] ;
|
||||
then
|
||||
$mkdirprog "${pathcomp}"
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
pathcomp="${pathcomp}/"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]
|
||||
then
|
||||
$doit $instcmd $dst &&
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
||||
else
|
||||
|
||||
# If we're going to rename the final executable, determine the name now.
|
||||
|
||||
if [ x"$transformarg" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
dstfile=`basename $dst $transformbasename |
|
||||
sed $transformarg`$transformbasename
|
||||
fi
|
||||
|
||||
# don't allow the sed command to completely eliminate the filename
|
||||
|
||||
if [ x"$dstfile" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# Make a temp file name in the proper directory.
|
||||
|
||||
dsttmp=$dstdir/#inst.$$#
|
||||
|
||||
# Move or copy the file name to the temp name
|
||||
|
||||
$doit $instcmd $src $dsttmp &&
|
||||
|
||||
trap "rm -f ${dsttmp}" 0 &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits
|
||||
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
|
||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
||||
|
||||
fi &&
|
||||
|
||||
|
||||
exit 0
|
||||
293
kpasman.kdevprj
Normal file
293
kpasman.kdevprj
Normal file
|
|
@ -0,0 +1,293 @@
|
|||
# KDE Config File
|
||||
[kpasman/kpasmandoc.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
[kpasman/docs/en/index-4.html]
|
||||
install_location=$$(kde_htmldir)/en/kpasman/index-4.html
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[Workspace_1]
|
||||
openfiles=Untitled.h,Untitled.cpp,/home/tengel/projects/kpasman/kpasman/kpasman.h,/home/tengel/projects/kpasman/kpasman/main.cpp,
|
||||
show_outputview=false
|
||||
show_treeview=true
|
||||
header_file=/home/tengel/projects/kpasman/kpasman/kpasman.h
|
||||
cpp_file=/home/tengel/projects/kpasman/kpasman/main.cpp
|
||||
browser_file=/home/tengel/projects/kpasman/kpasman/docs/en/index.html
|
||||
[kpasman/kpasentrydlg.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
[COPYING]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/kpasman.xpm]
|
||||
install_location=$$(kde_icondir)/kpasman.xpm
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[kpasman/resource.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
[kpasman/kpasmandoc.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[Config for BinMakefileAm]
|
||||
ldflags=
|
||||
addcxxflags=
|
||||
ldadd=-lkfile -lkfm -lkdeui -lkdecore -lqt -lXext -lX11
|
||||
cxxflags=-O2 -g3 -Wall
|
||||
bin_program=kpasman
|
||||
[kpasman/docs/en/index-5.html]
|
||||
install_location=$$(kde_htmldir)/en/kpasman/index-5.html
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[po/Makefile.am]
|
||||
sub_dirs=
|
||||
type=po
|
||||
[README]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/kpasentry.kdevdlg]
|
||||
widget_files=
|
||||
data_file=kpasman/kpasentrydlgdata.cpp
|
||||
install_location=
|
||||
classname=KpasentryDlg
|
||||
baseclass=QDialog
|
||||
header_file=kpasman/kpasentrydlg.h
|
||||
dist=true
|
||||
cpp_file=kpasman/kpasentrydlg.h
|
||||
install=false
|
||||
is_toplevel_dialog=true
|
||||
type=KDEV_DIALOG
|
||||
[kpasman.kdevprj]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[rc2-1.1.0/rc2.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/kpasmasterdlgdata.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[LFV Groups]
|
||||
Dialogs=*.kdevdlg,
|
||||
GNU=AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,NEWS,
|
||||
Others=*,
|
||||
Translations=*.po,
|
||||
groups=Headers,Sources,Dialogs,Translations,GNU,Others,
|
||||
Sources=*.cpp,*.c,*.cc,*.C,*.cxx,*.ec,*.ecpp,*.lxx,*.l++,*.ll,*.l,
|
||||
Headers=*.h,*.hxx,*.hpp,*.H,
|
||||
[kpasman.lsm]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/docs/en/Makefile.am]
|
||||
files=kpasman/docs/en/index-1.html,kpasman/docs/en/index-2.html,kpasman/docs/en/index-3.html,kpasman/docs/en/index-4.html,kpasman/docs/en/index-5.html,kpasman/docs/en/index-6.html,kpasman/docs/en/index.html,
|
||||
sub_dirs=
|
||||
type=normal
|
||||
[kpasman/kpassword.kdevdlg]
|
||||
widget_files=
|
||||
data_file=kpasman/kpassworddlgdata.cpp
|
||||
install_location=
|
||||
classname=KPasswordDlg
|
||||
baseclass=QDialog
|
||||
header_file=kpasman/kpassworddlg.h
|
||||
dist=true
|
||||
cpp_file=kpasman/kpassworddlg.h
|
||||
install=false
|
||||
is_toplevel_dialog=true
|
||||
type=KDEV_DIALOG
|
||||
[kpasman/kpassworddlg.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/kpasentrydlg.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/kpasmaster.kdevdlg]
|
||||
widget_files=
|
||||
data_file=kpasman/kpasmasterdlgdata.cpp
|
||||
install_location=
|
||||
classname=KpasmasterDlg
|
||||
baseclass=QDialog
|
||||
header_file=kpasman/kpasmasterdlg.h
|
||||
dist=true
|
||||
cpp_file=kpasman/kpasmasterdlg.h
|
||||
install=false
|
||||
is_toplevel_dialog=true
|
||||
type=KDEV_DIALOG
|
||||
[kpasman/kpasman.spec]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/Makefile.am]
|
||||
files=kpasman/main.cpp,kpasman/kpasman.cpp,kpasman/kpasman.h,kpasman/kpasmandoc.cpp,kpasman/kpasmandoc.h,kpasman/kpasmanview.cpp,kpasman/kpasmanview.h,kpasman/resource.h,kpasman/kpasman.kdelnk,kpasman/kpasman.xpm,kpasman/mini-kpasman.xpm,kpasman/krc2.h,kpasman/krc2.cpp,kpasman/kpassword.kdevdlg,kpasman/kpassworddlg.h,kpasman/kpassworddlg.cpp,kpasman/kpassworddlgdata.cpp,kpasman/kpasentry.kdevdlg,kpasman/kpasentrydlg.h,kpasman/kpasentrydlg.cpp,kpasman/kpasentrydlgdata.cpp,kpasman/kpasmaster.kdevdlg,kpasman/kpasmasterdlg.h,kpasman/kpasmasterdlg.cpp,kpasman/kpasmasterdlgdata.cpp,kpasman/kpasman.spec,
|
||||
sub_dirs=docs,
|
||||
type=prog_main
|
||||
[kpasman/kpassworddlgdata.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/kpasentrydlgdata.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/docs/en/index-6.html]
|
||||
install_location=$$(kde_htmldir)/en/kpasman/index-6.html
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[kpasman/kpassworddlg.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
[kpasman/main.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/kpasmasterdlg.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
[rc2-1.1.0/INSTALL]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/docs/en/index.html]
|
||||
install_location=$$(kde_htmldir)/en/kpasman/index.html
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[kpasman/kpasmanview.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/kpasman.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
[kpasman/docs/en/index-1.html]
|
||||
install_location=$$(kde_htmldir)/en/kpasman/index-1.html
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[ChangeLog]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/kpasman.kdelnk]
|
||||
install_location=$$(kde_appsdir)/Applications/kpasman.kdelnk
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[General]
|
||||
make_options=-j1
|
||||
makefiles=Makefile.am,kpasman/Makefile.am,kpasman/docs/Makefile.am,kpasman/docs/en/Makefile.am,po/Makefile.am,
|
||||
version_control=None
|
||||
author=Troy Engel
|
||||
project_type=normal_kde
|
||||
sub_dir=kpasman/
|
||||
lfv_open_groups=
|
||||
workspace=1
|
||||
version=0.1
|
||||
project_name=Kpasman
|
||||
sgml_file=/home/tengel/projects/kpasman/kpasman/docs/en/index.sgml
|
||||
short_info=A small password manager which saves the data file in rc2-encrypted format,,
|
||||
email=tengel@sonic.net
|
||||
kdevprj_version=1.0beta2
|
||||
configure_args=
|
||||
modifyMakefiles=true
|
||||
[TODO]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[INSTALL]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/docs/Makefile.am]
|
||||
sub_dirs=en,
|
||||
type=normal
|
||||
[kpasman/krc2.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
[kpasman/docs/en/index-2.html]
|
||||
install_location=$$(kde_htmldir)/en/kpasman/index-2.html
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[kpasman/kpasman.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/kpasmasterdlg.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/krc2.cpp]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=SOURCE
|
||||
[kpasman/mini-kpasman.xpm]
|
||||
install_location=$$(kde_minidir)/kpasman.xpm
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[Makefile.am]
|
||||
files=kpasman.kdevprj,AUTHORS,COPYING,ChangeLog,INSTALL,README,TODO,kpasman.lsm,
|
||||
sub_dirs=kpasman,po,
|
||||
type=normal
|
||||
[kpasman/docs/en/index-3.html]
|
||||
install_location=$$(kde_htmldir)/en/kpasman/index-3.html
|
||||
dist=true
|
||||
install=true
|
||||
type=DATA
|
||||
[AUTHORS]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=DATA
|
||||
[kpasman/kpasmanview.h]
|
||||
install_location=
|
||||
dist=true
|
||||
install=false
|
||||
type=HEADER
|
||||
14
kpasman.lsm
Normal file
14
kpasman.lsm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Begin3
|
||||
Title: Kpasman
|
||||
Version: 0.1
|
||||
Entered-date: 03 October 1999
|
||||
Description: A small password manager, data file in rc2-encrypted format
|
||||
Keywords: KDE, X11, Qt, password manager
|
||||
Author: Troy Engel <tengel@sonic.net>
|
||||
Maintained-by: Troy Engel <tengel@sonic.net>
|
||||
Primary-site: http://www.sonic.net/~tengel/kpasman/kpasman-0.1.tar.gz
|
||||
Home-page: http://www.sonic.net/~tengel/kpasman
|
||||
Original-site:
|
||||
Platform: Linux and other Unices, needs Qt 1.4x and the KDE 1.x libs
|
||||
Copying-policy: GNU Public License
|
||||
End
|
||||
55
kpasman/Makefile.am
Normal file
55
kpasman/Makefile.am
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
bin_PROGRAMS = kpasman
|
||||
kpasman_SOURCES = kpasmasterdlgdata.cpp kpasmasterdlg.cpp kpasentrydlgdata.cpp kpasentrydlg.cpp kpassworddlgdata.cpp kpassworddlg.cpp krc2.cpp kpasmanview.cpp kpasmandoc.cpp kpasman.cpp main.cpp
|
||||
kpasman_LDADD = -lkfile -lkfm -lkdeui -lkdecore -lqt -lXext -lX11 $(LIBSOCKET)
|
||||
|
||||
SUBDIRS = docs
|
||||
|
||||
EXTRA_DIST = main.cpp kpasman.cpp kpasman.h kpasmandoc.cpp kpasmandoc.h kpasmanview.cpp kpasmanview.h resource.h kpasman.kdelnk kpasman.xpm mini-kpasman.xpm krc2.h krc2.cpp kpassword.kdevdlg kpassworddlg.h kpassworddlg.cpp kpassworddlgdata.cpp kpasentry.kdevdlg kpasentrydlg.h kpasentrydlg.cpp kpasentrydlgdata.cpp kpasmaster.kdevdlg kpasmasterdlg.h kpasmasterdlg.cpp kpasmasterdlgdata.cpp kpasman.spec
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(kde_appsdir)/Applications/
|
||||
$(INSTALL_DATA) kpasman.kdelnk $(kde_appsdir)/Applications/kpasman.kdelnk
|
||||
$(mkinstalldirs) $(kde_icondir)/
|
||||
$(INSTALL_DATA) kpasman.xpm $(kde_icondir)/kpasman.xpm
|
||||
$(mkinstalldirs) $(kde_minidir)/
|
||||
$(INSTALL_DATA) mini-kpasman.xpm $(kde_minidir)/kpasman.xpm
|
||||
|
||||
uninstall-local:
|
||||
-rm -f $(kde_appsdir)/Applications/kpasman.kdelnk
|
||||
-rm -f $(kde_icondir)/kpasman.xpm
|
||||
-rm -f $(kde_minidir)/kpasman.xpm
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
# this 10 paths are KDE specific. Use them:
|
||||
# kde_htmldir Where your docs should go to. (contains lang subdirs)
|
||||
# kde_appsdir Where your application file (.kdelnk) should go to.
|
||||
# kde_icondir Where your icon should go to.
|
||||
# kde_minidir Where your mini icon should go to.
|
||||
# kde_datadir Where you install application data. (Use a subdir)
|
||||
# kde_locale Where translation files should go to.(contains lang subdirs)
|
||||
# kde_cgidir Where cgi-bin executables should go to.
|
||||
# kde_confdir Where config files should go to.
|
||||
# kde_mimedir Where mimetypes should go to.
|
||||
# kde_toolbardir Where general toolbar icons should go to.
|
||||
# kde_wallpaperdir Where general wallpapers should go to.
|
||||
|
||||
# set the include path for X, qt and KDE
|
||||
INCLUDES= $(all_includes)
|
||||
# claim, which subdirectories you want to install
|
||||
# you can add here more. This one gets installed
|
||||
bin_PROGRAMS = kpasman
|
||||
|
||||
kpasman_METASOURCES = USE_AUTOMOC
|
||||
|
||||
# the library search path.
|
||||
kpasman_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||
|
||||
# them while "make clean", use CLEANFILES
|
||||
DISTCLEANFILES = $(kpasman_METASOURCES)
|
||||
|
||||
# make messages.po. Move this one to ../po/ and "make merge" in po
|
||||
# the -x is for skipping messages already translated in kdelibs
|
||||
messages:
|
||||
$(XGETTEXT) -C -ki18n -x $(KDEDIR)/include/kde.pot `find . -name \*.h -o -name \*.cpp -o -name \*.cc` -o ../po/kpasman.pot
|
||||
|
||||
548
kpasman/Makefile.in
Normal file
548
kpasman/Makefile.in
Normal file
|
|
@ -0,0 +1,548 @@
|
|||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_alias = @build_alias@
|
||||
build_triplet = @build@
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
target_alias = @target_alias@
|
||||
target_triplet = @target@
|
||||
CC = @CC@
|
||||
CPP = @CPP@
|
||||
CXX = @CXX@
|
||||
GLINC = @GLINC@
|
||||
GLLIB = @GLLIB@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
IDL = @IDL@
|
||||
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
|
||||
KDE_INCLUDES = @KDE_INCLUDES@
|
||||
KDE_LDFLAGS = @KDE_LDFLAGS@
|
||||
KDE_RPATH = @KDE_RPATH@
|
||||
LD = @LD@
|
||||
LIBCOMPAT = @LIBCOMPAT@
|
||||
LIBCRYPT = @LIBCRYPT@
|
||||
LIBDL = @LIBDL@
|
||||
LIBJPEG = @LIBJPEG@
|
||||
LIBMICO = @LIBMICO@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPNG = @LIBPNG@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBPYTHON = @LIBPYTHON@
|
||||
LIBQIMGIO = @LIBQIMGIO@
|
||||
LIBSOCKET = @LIBSOCKET@
|
||||
LIBTIFF = @LIBTIFF@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUCB = @LIBUCB@
|
||||
LIBUTIL = @LIBUTIL@
|
||||
LIBXDMCP = @LIBXDMCP@
|
||||
LIBZ = @LIBZ@
|
||||
LIB_KDECORE = @LIB_KDECORE@
|
||||
LIB_KDEUI = @LIB_KDEUI@
|
||||
LIB_KFILE = @LIB_KFILE@
|
||||
LIB_KFM = @LIB_KFM@
|
||||
LIB_KHTML = @LIB_KHTML@
|
||||
LIB_KHTMLW = @LIB_KHTMLW@
|
||||
LIB_KIMGIO = @LIB_KIMGIO@
|
||||
LIB_LIBS = @LIB_LIBS@
|
||||
LIB_QT = @LIB_QT@
|
||||
LIB_X11 = @LIB_X11@
|
||||
LN_S = @LN_S@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MICO_INCLUDES = @MICO_INCLUDES@
|
||||
MICO_LDFLAGS = @MICO_LDFLAGS@
|
||||
MOC = @MOC@
|
||||
MSGFMT = @MSGFMT@
|
||||
NM = @NM@
|
||||
PACKAGE = @PACKAGE@
|
||||
PAMINC = @PAMINC@
|
||||
PAMLIBPATHS = @PAMLIBPATHS@
|
||||
PAMLIBS = @PAMLIBS@
|
||||
PASSWDLIB = @PASSWDLIB@
|
||||
PYTHONINC = @PYTHONINC@
|
||||
PYTHONLIB = @PYTHONLIB@
|
||||
QT_INCLUDES = @QT_INCLUDES@
|
||||
QT_LDFLAGS = @QT_LDFLAGS@
|
||||
RANLIB = @RANLIB@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
XBINDIR = @XBINDIR@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XPMINC = @XPMINC@
|
||||
XPMLIB = @XPMLIB@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_INCLUDES = @X_INCLUDES@
|
||||
X_LDFLAGS = @X_LDFLAGS@
|
||||
X_SERVER = @X_SERVER@
|
||||
ac_xdmdir = @ac_xdmdir@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
install_root = @install_root@
|
||||
kde_appsdir = @kde_appsdir@
|
||||
kde_bindir = @kde_bindir@
|
||||
kde_cgidir = @kde_cgidir@
|
||||
kde_confdir = @kde_confdir@
|
||||
kde_datadir = @kde_datadir@
|
||||
kde_htmldir = @kde_htmldir@
|
||||
kde_icondir = @kde_icondir@
|
||||
kde_includes = @kde_includes@
|
||||
kde_libraries = @kde_libraries@
|
||||
kde_locale = @kde_locale@
|
||||
kde_mimedir = @kde_mimedir@
|
||||
kde_minidir = @kde_minidir@
|
||||
kde_partsdir = @kde_partsdir@
|
||||
kde_sounddir = @kde_sounddir@
|
||||
kde_toolbardir = @kde_toolbardir@
|
||||
kde_wallpaperdir = @kde_wallpaperdir@
|
||||
qt_includes = @qt_includes@
|
||||
qt_libraries = @qt_libraries@
|
||||
x_includes = @x_includes@
|
||||
x_libraries = @x_libraries@
|
||||
xdmconfigsubdir = @xdmconfigsubdir@
|
||||
# claim, which subdirectories you want to install
|
||||
# you can add here more. This one gets installed
|
||||
bin_PROGRAMS = kpasman
|
||||
kpasman_SOURCES = kpasmasterdlgdata.cpp kpasmasterdlg.cpp kpasentrydlgdata.cpp kpasentrydlg.cpp kpassworddlgdata.cpp kpassworddlg.cpp krc2.cpp kpasmanview.cpp kpasmandoc.cpp kpasman.cpp main.cpp
|
||||
kpasman_LDADD = -lkfile -lkfm -lkdeui -lkdecore -lqt -lXext -lX11 $(LIBSOCKET)
|
||||
|
||||
SUBDIRS = docs
|
||||
|
||||
EXTRA_DIST = main.cpp kpasman.cpp kpasman.h kpasmandoc.cpp kpasmandoc.h kpasmanview.cpp kpasmanview.h resource.h kpasman.kdelnk kpasman.xpm mini-kpasman.xpm krc2.h krc2.cpp kpassword.kdevdlg kpassworddlg.h kpassworddlg.cpp kpassworddlgdata.cpp kpasentry.kdevdlg kpasentrydlg.h kpasentrydlg.cpp kpasentrydlgdata.cpp kpasmaster.kdevdlg kpasmasterdlg.h kpasmasterdlg.cpp kpasmasterdlgdata.cpp kpasman.spec
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
# this 10 paths are KDE specific. Use them:
|
||||
# kde_htmldir Where your docs should go to. (contains lang subdirs)
|
||||
# kde_appsdir Where your application file (.kdelnk) should go to.
|
||||
# kde_icondir Where your icon should go to.
|
||||
# kde_minidir Where your mini icon should go to.
|
||||
# kde_datadir Where you install application data. (Use a subdir)
|
||||
# kde_locale Where translation files should go to.(contains lang subdirs)
|
||||
# kde_cgidir Where cgi-bin executables should go to.
|
||||
# kde_confdir Where config files should go to.
|
||||
# kde_mimedir Where mimetypes should go to.
|
||||
# kde_toolbardir Where general toolbar icons should go to.
|
||||
# kde_wallpaperdir Where general wallpapers should go to.
|
||||
|
||||
# set the include path for X, qt and KDE
|
||||
INCLUDES = $(all_includes)
|
||||
|
||||
kpasman_METASOURCES = kpasentrydlg.moc.cpp kpasman.moc.cpp kpasmandoc.moc.cpp kpasmanview.moc.cpp kpasmasterdlg.moc.cpp kpassworddlg.moc.cpp
|
||||
|
||||
# the library search path.
|
||||
kpasman_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||
|
||||
# them while "make clean", use CLEANFILES
|
||||
DISTCLEANFILES = $(kpasman_METASOURCES)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
|
||||
|
||||
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
kpasman_OBJECTS = kpasmasterdlgdata.o kpasmasterdlg.o kpasentrydlg.moc.o kpasman.moc.o kpasmandoc.moc.o kpasmanview.moc.o kpasmasterdlg.moc.o kpassworddlg.moc.o \
|
||||
kpasentrydlgdata.o kpasentrydlg.o kpassworddlgdata.o kpassworddlg.o \
|
||||
krc2.o kpasmanview.o kpasmandoc.o kpasman.o main.o
|
||||
kpasman_DEPENDENCIES =
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
CXXLD = $(CXX)
|
||||
CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = gtar
|
||||
GZIP_ENV = --best
|
||||
SOURCES = $(kpasman_SOURCES)
|
||||
OBJECTS = $(kpasman_OBJECTS)
|
||||
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .S .c .cpp .lo .o .s
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps kpasman/Makefile
|
||||
cd $(top_srcdir) && perl automoc kpasman-0.1/kpasman/Makefile.in
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
mostlyclean-binPROGRAMS:
|
||||
|
||||
clean-binPROGRAMS:
|
||||
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||
|
||||
distclean-binPROGRAMS:
|
||||
|
||||
maintainer-clean-binPROGRAMS:
|
||||
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
||||
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-binPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||
done
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.s.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.S.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.o core *.core
|
||||
|
||||
clean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
maintainer-clean-compile:
|
||||
|
||||
.c.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
.s.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
.S.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
|
||||
maintainer-clean-libtool:
|
||||
|
||||
kpasman: $(kpasman_OBJECTS) $(kpasman_DEPENDENCIES)
|
||||
@rm -f kpasman
|
||||
$(CXXLINK) $(kpasman_LDFLAGS) $(kpasman_OBJECTS) $(kpasman_LDADD) $(LIBS)
|
||||
.cpp.o:
|
||||
$(CXXCOMPILE) -c $<
|
||||
.cpp.lo:
|
||||
$(LTCXXCOMPILE) -c $<
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
all-recursive install-data-recursive install-exec-recursive \
|
||||
installdirs-recursive install-recursive uninstall-recursive \
|
||||
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
rev="$$subdir $$rev"; \
|
||||
test "$$subdir" = "." && dot_seen=yes; \
|
||||
done; \
|
||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = kpasman
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
for subdir in $(SUBDIRS); do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d $(distdir)/$$subdir \
|
||||
|| mkdir $(distdir)/$$subdir \
|
||||
|| exit 1; \
|
||||
chmod 777 $(distdir)/$$subdir; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
info-am:
|
||||
info: info-recursive
|
||||
dvi-am:
|
||||
dvi: dvi-recursive
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
installcheck-am:
|
||||
installcheck: installcheck-recursive
|
||||
install-exec-am: install-binPROGRAMS
|
||||
install-exec: install-exec-recursive
|
||||
|
||||
install-data-am: install-data-local
|
||||
install-data: install-data-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-recursive
|
||||
uninstall-am: uninstall-binPROGRAMS uninstall-local
|
||||
uninstall: uninstall-recursive
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
all-redirect: all-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
|
||||
mostlyclean-libtool mostlyclean-tags \
|
||||
mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-compile clean-libtool clean-tags \
|
||||
clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-recursive
|
||||
|
||||
distclean-am: distclean-binPROGRAMS distclean-compile distclean-libtool \
|
||||
distclean-tags distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-metasources distclean-recursive
|
||||
|
||||
maintainer-clean-am: maintainer-clean-binPROGRAMS \
|
||||
maintainer-clean-compile maintainer-clean-libtool \
|
||||
maintainer-clean-tags maintainer-clean-generic \
|
||||
distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
|
||||
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
|
||||
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
|
||||
mostlyclean-compile distclean-compile clean-compile \
|
||||
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
|
||||
clean-libtool maintainer-clean-libtool install-data-recursive \
|
||||
uninstall-data-recursive install-exec-recursive \
|
||||
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||
install-exec install-data-local install-data-am install-data install-am \
|
||||
install uninstall-local uninstall-am uninstall all-redirect all-am all \
|
||||
installdirs-am installdirs mostlyclean-generic distclean-generic \
|
||||
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||
maintainer-clean
|
||||
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(kde_appsdir)/Applications/
|
||||
$(INSTALL_DATA) kpasman.kdelnk $(kde_appsdir)/Applications/kpasman.kdelnk
|
||||
$(mkinstalldirs) $(kde_icondir)/
|
||||
$(INSTALL_DATA) kpasman.xpm $(kde_icondir)/kpasman.xpm
|
||||
$(mkinstalldirs) $(kde_minidir)/
|
||||
$(INSTALL_DATA) mini-kpasman.xpm $(kde_minidir)/kpasman.xpm
|
||||
|
||||
uninstall-local:
|
||||
-rm -f $(kde_appsdir)/Applications/kpasman.kdelnk
|
||||
-rm -f $(kde_icondir)/kpasman.xpm
|
||||
-rm -f $(kde_minidir)/kpasman.xpm
|
||||
|
||||
# make messages.po. Move this one to ../po/ and "make merge" in po
|
||||
# the -x is for skipping messages already translated in kdelibs
|
||||
messages:
|
||||
$(XGETTEXT) -C -ki18n -x $(KDEDIR)/include/kde.pot `find . -name \*.h -o -name \*.cpp -o -name \*.cc` -o ../po/kpasman.pot
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
||||
|
||||
kpasentrydlg.moc.cpp: $(srcdir)/kpasentrydlg.h
|
||||
$(MOC) $(srcdir)/kpasentrydlg.h -o kpasentrydlg.moc.cpp
|
||||
|
||||
kpasman.moc.cpp: $(srcdir)/kpasman.h
|
||||
$(MOC) $(srcdir)/kpasman.h -o kpasman.moc.cpp
|
||||
|
||||
kpasmandoc.moc.cpp: $(srcdir)/kpasmandoc.h
|
||||
$(MOC) $(srcdir)/kpasmandoc.h -o kpasmandoc.moc.cpp
|
||||
|
||||
kpasmanview.moc.cpp: $(srcdir)/kpasmanview.h
|
||||
$(MOC) $(srcdir)/kpasmanview.h -o kpasmanview.moc.cpp
|
||||
|
||||
kpasmasterdlg.moc.cpp: $(srcdir)/kpasmasterdlg.h
|
||||
$(MOC) $(srcdir)/kpasmasterdlg.h -o kpasmasterdlg.moc.cpp
|
||||
|
||||
kpassworddlg.moc.cpp: $(srcdir)/kpassworddlg.h
|
||||
$(MOC) $(srcdir)/kpassworddlg.h -o kpassworddlg.moc.cpp
|
||||
|
||||
distclean-metasources:
|
||||
-rm -f kpasentrydlg.moc.cpp kpasman.moc.cpp kpasmandoc.moc.cpp kpasmanview.moc.cpp kpasmasterdlg.moc.cpp kpassworddlg.moc.cpp
|
||||
|
||||
# DO_NOT_USE_AUTOMOC
|
||||
62
kpasman/api/KPasswordDlg.html
Normal file
62
kpasman/api/KPasswordDlg.html
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KPasswordDlg</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KPasswordDlg</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1">
|
||||
<small><A HREF="#longdesc">More...</A></small></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TH>Definition</TH><TD><code>#include <<A HREF="kpassworddlg_h.html">kpassworddlg.h</A>></code></TD></TR>
|
||||
<TR><TH>Inherits</TH><TD>QDialog</TD></TR>
|
||||
<TR><TH><A HREF="full-list-KPasswordDlg.html">List of all Methods</A></TH></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<H2>Public Members</H2>
|
||||
<UL>
|
||||
<LI> <b>KPasswordDlg</b> (QWidget *parent=0, const char *name=0)
|
||||
</LI>
|
||||
<LI> <b>~KPasswordDlg</b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref3">setFilename</A></b> (const char *name)
|
||||
</LI>
|
||||
<LI>const char* <b><A HREF="#ref4">getPassword</A></b> ()
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Protected Members</H2>
|
||||
<UL>
|
||||
<LI>void <b>initDialog</b> ()
|
||||
</LI>
|
||||
<LI> QPushButton * <b>m_btOK</b>
|
||||
</LI>
|
||||
<LI> QPushButton * <b>m_btCancel</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edPassword</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbPassword</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbFile</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbFilename</b>
|
||||
</LI>
|
||||
</UL>
|
||||
<HR><A NAME="longdesc"><H2>Detailed Description</H2><p>
|
||||
</p><A NAME=setFilename></A><A NAME=ref3></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>setFilename</b> (const char *name)
|
||||
</strong></td></tr></table></p><p> allows parent to set visible filename </p><A NAME=getPassword></A><A NAME=ref4></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>const char* <b>getPassword</b> ()
|
||||
</strong></td></tr></table></p><p> allows parent to retrieve password </p><HR><UL><LI><i>Author</i>: Troy Engel
|
||||
</LI><LI><i>Generated</i>: tengel@bugsy on Thu Nov 18 10:33:52 199.</LI></UL></BODY></HTML>
|
||||
72
kpasman/api/KpasentryDlg.html
Normal file
72
kpasman/api/KpasentryDlg.html
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasentryDlg</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasentryDlg</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1">
|
||||
<small><A HREF="#longdesc">More...</A></small></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TH>Definition</TH><TD><code>#include <<A HREF="kpasentrydlg_h.html">kpasentrydlg.h</A>></code></TD></TR>
|
||||
<TR><TH>Inherits</TH><TD>QDialog</TD></TR>
|
||||
<TR><TH><A HREF="full-list-KpasentryDlg.html">List of all Methods</A></TH></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<H2>Public Members</H2>
|
||||
<UL>
|
||||
<LI> <b>KpasentryDlg</b> (QWidget *parent=0, const char *name=0)
|
||||
</LI>
|
||||
<LI> <b>~KpasentryDlg</b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref3">getData</A></b> (QString& location, QString& username, QString& password, QString& comment)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref4">setData</A></b> (QString location, QString username, QString password, QString comment)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Protected Members</H2>
|
||||
<UL>
|
||||
<LI>void <b>initDialog</b> ()
|
||||
</LI>
|
||||
<LI> QGroupBox * <b>m_bgMain</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbLocation</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edLocation</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbUsername</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edUsername</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbPassword</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edPassword</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbComment</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edComment</b>
|
||||
</LI>
|
||||
<LI> QPushButton * <b>m_btOK</b>
|
||||
</LI>
|
||||
<LI> QPushButton * <b>m_btCancel</b>
|
||||
</LI>
|
||||
</UL>
|
||||
<HR><A NAME="longdesc"><H2>Detailed Description</H2><p>
|
||||
</p><A NAME=getData></A><A NAME=ref3></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>getData</b> (QString& location, QString& username, QString& password, QString& comment)
|
||||
</strong></td></tr></table></p><p> a way to retrieve our dialog data </p><A NAME=setData></A><A NAME=ref4></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>setData</b> (QString location, QString username, QString password, QString comment)
|
||||
</strong></td></tr></table></p><p> a way to set our dialog data </p><HR><UL><LI><i>Author</i>: Troy Engel
|
||||
</LI><LI><i>Generated</i>: tengel@bugsy on Thu Nov 18 10:33:52 199.</LI></UL></BODY></HTML>
|
||||
264
kpasman/api/KpasmanApp.html
Normal file
264
kpasman/api/KpasmanApp.html
Normal file
|
|
@ -0,0 +1,264 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmanApp</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmanApp</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1">
|
||||
The base class for Kpasman application windows. <small><A HREF="#longdesc">More...</A></small></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TH>Definition</TH><TD><code>#include <<A HREF="kpasmandoc_h.html">kpasmandoc.h</A>></code></TD></TR>
|
||||
<TR><TH>Inherits</TH><TD>KTMainWindow</TD></TR>
|
||||
<TR><TH><A HREF="full-list-KpasmanApp.html">List of all Methods</A></TH></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<H2>Public Members</H2>
|
||||
<UL>
|
||||
<LI> <b><A HREF="#ref2">KpasmanApp</A></b> ()
|
||||
</LI>
|
||||
<LI> <b>~KpasmanApp</b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref4">enableCommand</A></b> (int id_)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref5">disableCommand</A></b> (int id_)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref6">addRecentFile</A></b> (const char* file)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref7">openDocumentFile</A></b> (const char* _cmdl)
|
||||
</LI>
|
||||
<LI>KpasmanDoc* <b><A HREF="#ref8">getDocument</A></b> () const
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref9">setModified</A></b> (bool modified = true)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Public Slots</H2>
|
||||
<UL>
|
||||
<LI>void <b><A HREF="#ref22">commandCallback</A></b> (int id_)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref23">statusCallback</A></b> (int id_)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref24">slotFileNewWindow</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref25">slotFileNew</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref26">slotFileOpen</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref27">slotFileOpenRecent</A></b> (int id_)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref28">slotFileSave</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref29">slotFileSaveAs</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref30">slotFileClose</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref31">slotFileQuit</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref32">slotEditAdd</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref33">slotEditEdit</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref34">slotEditDelete</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref35">slotEditPassword</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref36">slotUpdateDocMenu</A></b> (bool bdirty)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref37">slotUpdateViewMenu</A></b> (QListViewItem* item)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref38">slotViewToolBar</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref39">slotViewStatusBar</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref40">slotViewPasswords</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref41">slotLockWindow</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref42">slotStatusMsg</A></b> (const char *text)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref43">slotStatusHelpMsg</A></b> (const char *text)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Protected Members</H2>
|
||||
<UL>
|
||||
<LI>void <b><A HREF="#ref10">saveOptions</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref11">readOptions</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref12">initKeyAccel</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref13">initMenuBar</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref14">initToolBar</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref15">initStatusBar</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref16">initDocument</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref17">initView</A></b> ()
|
||||
</LI>
|
||||
<LI>virtual bool <b><A HREF="#ref18">queryClose</A></b> ()
|
||||
</LI>
|
||||
<LI>virtual bool <b><A HREF="#ref19">queryExit</A></b> ()
|
||||
</LI>
|
||||
<LI>virtual void <b><A HREF="#ref20">saveProperties</A></b> (KConfig* )
|
||||
</LI>
|
||||
<LI>virtual void <b><A HREF="#ref21">readProperties</A></b> (KConfig* )
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Private Members</H2>
|
||||
<UL>
|
||||
<LI> friend class <b>KpasmanView</b>
|
||||
</LI>
|
||||
<LI> KConfig* <b><A HREF="#ref44">config</A></b>
|
||||
</LI>
|
||||
<LI> KAccel* <b><A HREF="#ref45">key_accel</A></b>
|
||||
</LI>
|
||||
<LI> QPopupMenu * <b><A HREF="#ref46">file_menu</A></b>
|
||||
</LI>
|
||||
<LI> QPopupMenu * <b><A HREF="#ref47">recent_files_menu</A></b>
|
||||
</LI>
|
||||
<LI> QStrList <b><A HREF="#ref48">recent_files</A></b>
|
||||
</LI>
|
||||
<LI> QPopupMenu * <b><A HREF="#ref49">edit_menu</A></b>
|
||||
</LI>
|
||||
<LI> QPopupMenu * <b><A HREF="#ref50">view_menu</A></b>
|
||||
</LI>
|
||||
<LI> QPopupMenu * <b><A HREF="#ref51">window_menu</A></b>
|
||||
</LI>
|
||||
<LI> QPopupMenu * <b><A HREF="#ref52">help_menu</A></b>
|
||||
</LI>
|
||||
<LI> KpasmanView * <b><A HREF="#ref53">view</A></b>
|
||||
</LI>
|
||||
<LI> KpasmanDoc * <b><A HREF="#ref54">doc</A></b>
|
||||
</LI>
|
||||
</UL>
|
||||
<HR><A NAME="longdesc"><H2>Detailed Description</H2><p>
|
||||
The base class for Kpasman application windows. It sets up the main
|
||||
window and reads the config file as well as providing a menubar, toolbar
|
||||
and statusbar. An instance of KpasmanView creates your center view, which is connected
|
||||
to the window's Doc object.
|
||||
KpasmanApp reimplements the methods that KTMainWindow provides for main window handling and supports
|
||||
full session management as well as keyboard accelerator configuration by using KAccel.
|
||||
</p><p></p><p><b>See also</b>: KTMainWindow, KApplication, KConfig, KAccel</p>
|
||||
<A NAME=KpasmanApp></A><A NAME=ref2></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <b>KpasmanApp</b> ()
|
||||
</strong></td></tr></table></p><p> construtor of KpasmanApp, calls all init functions to create the application.
|
||||
</p><p><b>See also</b>: initMenuBar, initToolBar</p>
|
||||
<A NAME=enableCommand></A><A NAME=ref4></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>enableCommand</b> (int id_)
|
||||
</strong></td></tr></table></p><p> enables menuentries/toolbar items
|
||||
</p><A NAME=disableCommand></A><A NAME=ref5></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>disableCommand</b> (int id_)
|
||||
</strong></td></tr></table></p><p> disables menuentries/toolbar items
|
||||
</p><A NAME=addRecentFile></A><A NAME=ref6></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>addRecentFile</b> (const char* file)
|
||||
</strong></td></tr></table></p><p> add a opened file to the recent file list and update recent_file_menu
|
||||
</p><A NAME=openDocumentFile></A><A NAME=ref7></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>openDocumentFile</b> (const char* _cmdl)
|
||||
</strong></td></tr></table></p><p> opens a file specified by commandline option
|
||||
</p><A NAME=getDocument></A><A NAME=ref8></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong><A HREF="KpasmanDoc.html">KpasmanDoc</A>* <b>getDocument</b> ()
|
||||
</strong></td></tr></table> <small>[const]</small></p><p> returns a pointer to the current document connected to the KTMainWindow instance and is used by
|
||||
the View class to access the document object's methods
|
||||
</p><A NAME=setModified></A><A NAME=ref9></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>setModified</b> (bool modified = true)
|
||||
</strong></td></tr></table></p><p> handy way to flip all the flags at once </p><A NAME=saveOptions></A><A NAME=ref10></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>saveOptions</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration
|
||||
file
|
||||
</p><A NAME=readOptions></A><A NAME=ref11></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>readOptions</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> read general Options again and initialize all variables like the recent file list
|
||||
</p><A NAME=initKeyAccel></A><A NAME=ref12></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>initKeyAccel</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> initKeyAccel creates the keyboard accelerator items for the available slots and changes the menu accelerators.
|
||||
</p><p><b>See also</b>: KAccel</p>
|
||||
<A NAME=initMenuBar></A><A NAME=ref13></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>initMenuBar</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> initMenuBar creates the menubar and inserts the menupopups as well as creating the helpMenu.
|
||||
</p><p><b>See also</b>: KApplication#getHelpMenu</p>
|
||||
<A NAME=initToolBar></A><A NAME=ref14></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>initToolBar</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> this creates the toolbars.
|
||||
</p><A NAME=initStatusBar></A><A NAME=ref15></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>initStatusBar</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> sets up the statusbar for the main window by initialzing a statuslabel.
|
||||
</p><A NAME=initDocument></A><A NAME=ref16></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>initDocument</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> initializes the document object of the main window that is connected to the view in initView().
|
||||
</p><p><b>See also</b>: initView();</p>
|
||||
<A NAME=initView></A><A NAME=ref17></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>initView</b> ()
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> creates the centerwidget of the KTMainWindow instance and sets it as the view
|
||||
</p><A NAME=queryClose></A><A NAME=ref18></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> bool <b>queryClose</b> ()
|
||||
</strong></td></tr></table> <small>[protected virtual]</small></p><p> queryClose is called by KTMainWindow on each closeEvent of a window. Against the
|
||||
default implementation (only returns true), this calles saveModified() on the document object to ask if the document shall
|
||||
be saved if Modified; on cancel the closeEvent is rejected.
|
||||
</p><p><b>See also</b>: KTMainWindow#queryClose, KTMainWindow#closeEvent</p>
|
||||
<A NAME=queryExit></A><A NAME=ref19></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> bool <b>queryExit</b> ()
|
||||
</strong></td></tr></table> <small>[protected virtual]</small></p><p> queryExit is called by KTMainWindow when the last window of the application is going to be closed during the closeEvent().
|
||||
Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's
|
||||
properties.
|
||||
</p><p><b>See also</b>: KTMainWindow#queryExit, KTMainWindow#closeEvent</p>
|
||||
<A NAME=saveProperties></A><A NAME=ref20></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> void <b>saveProperties</b> (KConfig* )
|
||||
</strong></td></tr></table> <small>[protected virtual]</small></p><p> saves the window properties for each open window during session end to the session config file, including saving the currently
|
||||
opened file by a temporary filename provided by KApplication.
|
||||
</p><p><b>See also</b>: KTMainWindow#saveProperties</p>
|
||||
<A NAME=readProperties></A><A NAME=ref21></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> void <b>readProperties</b> (KConfig* )
|
||||
</strong></td></tr></table> <small>[protected virtual]</small></p><p> reads the session config file and restores the application's state including the last opened files and documents by reading the
|
||||
temporary files saved by saveProperties()
|
||||
</p><p><b>See also</b>: KTMainWindow#readProperties</p>
|
||||
<A NAME=commandCallback></A><A NAME=ref22></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>commandCallback</b> (int id_)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> switch argument for slot selection by menu or toolbar ID </p><A NAME=statusCallback></A><A NAME=ref23></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>statusCallback</b> (int id_)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> switch argument for Statusbar help entries on slot selection. Add your ID's help here for toolbars and menubar entries. </p><A NAME=slotFileNewWindow></A><A NAME=ref24></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileNewWindow</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> open a new application window by creating a new instance of KpasmanApp </p><A NAME=slotFileNew></A><A NAME=ref25></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileNew</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> clears the document in the actual view to reuse it as the new document </p><A NAME=slotFileOpen></A><A NAME=ref26></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileOpen</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> open a file and load it into the document</p><A NAME=slotFileOpenRecent></A><A NAME=ref27></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileOpenRecent</b> (int id_)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> opens a file from the recent files menu </p><A NAME=slotFileSave></A><A NAME=ref28></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileSave</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> save a document </p><A NAME=slotFileSaveAs></A><A NAME=ref29></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileSaveAs</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> save a document by a new filename</p><A NAME=slotFileClose></A><A NAME=ref30></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileClose</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> asks for saving if the file is modified, then closes the actual file and window</p><A NAME=slotFileQuit></A><A NAME=ref31></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotFileQuit</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> closes all open windows by calling close() on each memberList item until the list is empty, then quits the application.
|
||||
If queryClose() returns false because the user canceled the saveModified() dialog, the closing breaks.
|
||||
</p><A NAME=slotEditAdd></A><A NAME=ref32></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotEditAdd</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> adds a new entry </p><A NAME=slotEditEdit></A><A NAME=ref33></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotEditEdit</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> edits current entry </p><A NAME=slotEditDelete></A><A NAME=ref34></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotEditDelete</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> deletes current entry </p><A NAME=slotEditPassword></A><A NAME=ref35></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotEditPassword</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> changes master password </p><A NAME=slotUpdateDocMenu></A><A NAME=ref36></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotUpdateDocMenu</b> (bool bdirty)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> changes menus based on doc status </p><A NAME=slotUpdateViewMenu></A><A NAME=ref37></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotUpdateViewMenu</b> (QListViewItem* item)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> changes menus based on item selection status </p><A NAME=slotViewToolBar></A><A NAME=ref38></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotViewToolBar</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> toggles the toolbar </p><A NAME=slotViewStatusBar></A><A NAME=ref39></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotViewStatusBar</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> toggles the statusbar </p><A NAME=slotViewPasswords></A><A NAME=ref40></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotViewPasswords</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> toggles the passwords </p><A NAME=slotLockWindow></A><A NAME=ref41></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotLockWindow</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> locks / unlocks the window </p><A NAME=slotStatusMsg></A><A NAME=ref42></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotStatusMsg</b> (const char *text)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> changes the statusbar contents for the standard label permanently, used to indicate current actions.
|
||||
</p><p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
|
||||
<TR><TD align="left" valign="top"><i>text</i></TD><TD align="left" valign="top">the text that is displayed in the statusbar
|
||||
</TD></TR>
|
||||
</TABLE></P>
|
||||
<A NAME=slotStatusHelpMsg></A><A NAME=ref43></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotStatusHelpMsg</b> (const char *text)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> changes the status message of the whole statusbar for two seconds, then restores the last status. This is used to display
|
||||
statusbar messages that give information about actions for toolbar icons and menuentries.
|
||||
</p><p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
|
||||
<TR><TD align="left" valign="top"><i>text</i></TD><TD align="left" valign="top">the text that is displayed in the statusbar
|
||||
</TD></TR>
|
||||
</TABLE></P>
|
||||
<A NAME=config></A><A NAME=ref44></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> KConfig* <b>config</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> the configuration object of the application </p><A NAME=key_accel></A><A NAME=ref45></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> KAccel* <b>key_accel</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> the key accelerator container </p><A NAME=file_menu></A><A NAME=ref46></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QPopupMenu * <b>file_menu</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> file_menu contains all items of the menubar entry "File" </p><A NAME=recent_files_menu></A><A NAME=ref47></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QPopupMenu * <b>recent_files_menu</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> the recent file menu containing the last five opened files </p><A NAME=recent_files></A><A NAME=ref48></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QStrList <b>recent_files</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> contains the recently used filenames </p><A NAME=edit_menu></A><A NAME=ref49></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QPopupMenu * <b>edit_menu</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> edit_menu contains all items of the menubar entry "Edit" </p><A NAME=view_menu></A><A NAME=ref50></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QPopupMenu * <b>view_menu</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> view_menu contains all items of the menubar entry "View" </p><A NAME=window_menu></A><A NAME=ref51></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QPopupMenu * <b>window_menu</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> window_menu contains all items of the menubar entry "Window" </p><A NAME=help_menu></A><A NAME=ref52></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QPopupMenu * <b>help_menu</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> help_menu contains all items of the menubar entry "Help" </p><A NAME=view></A><A NAME=ref53></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <A HREF="KpasmanView.html">KpasmanView</A> * <b>view</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> view is the main widget which represents your working area. The View
|
||||
class should handle all events of the view widget. It is kept empty so
|
||||
you can create your view according to your application's needs by
|
||||
changing the view class. </p><A NAME=doc></A><A NAME=ref54></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <A HREF="KpasmanDoc.html">KpasmanDoc</A> * <b>doc</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> doc represents your actual document and is created only once. It keeps
|
||||
information such as filename and does the serialization of your files.
|
||||
</p><HR><UL><LI><i>Version</i>: KDevelop version 0.4 code generation
|
||||
</LI><LI><i>Author</i>: Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
</LI><LI><i>Generated</i>: tengel@bugsy on Thu Nov 18 10:33:52 199.</LI></UL></BODY></HTML>
|
||||
171
kpasman/api/KpasmanDoc.html
Normal file
171
kpasman/api/KpasmanDoc.html
Normal file
|
|
@ -0,0 +1,171 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmanDoc</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmanDoc</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"> KpasmanDoc provides a document object for a document-view model. <small><A HREF="#longdesc">More...</A></small></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TH>Definition</TH><TD><code>#include <<A HREF="kpasmanview_h.html">kpasmanview.h</A>></code></TD></TR>
|
||||
<TR><TH>Inherits</TH><TD>QObject</TD></TR>
|
||||
<TR><TH><A HREF="full-list-KpasmanDoc.html">List of all Methods</A></TH></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<H2>Public Members</H2>
|
||||
<UL>
|
||||
<LI> <b><A HREF="#ref1">KpasmanDoc</A></b> (QWidget* parent, const char *name=0)
|
||||
</LI>
|
||||
<LI> <b><A HREF="#ref2">~KpasmanDoc</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref3">addView</A></b> (KpasmanView* m_pView)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref4">removeView</A></b> (KpasmanView* m_pView)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref5">setModified</A></b> (bool modified=true)
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref6">isModified</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref7">saveModified</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref8">deleteContents</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref9">newDocument</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref10">closeDocument</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref11">openDocument</A></b> (const char* filename, const char* format=0)
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref12">saveDocument</A></b> (const char* filename, const char* format=0)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref13">pathName</A></b> (const char* path_name)
|
||||
</LI>
|
||||
<LI>const QString& <b><A HREF="#ref14">getPathName</A></b> () const
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref15">title</A></b> (const char* title)
|
||||
</LI>
|
||||
<LI>const QString& <b><A HREF="#ref16">getTitle</A></b> () const
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref17">changeDocPassword</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref18">lock</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref19">unlock</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref20">isLocked</A></b> ()
|
||||
</LI>
|
||||
<LI> QList<KpasmanView>* <b><A HREF="#ref23">viewList</A></b>
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Public Slots</H2>
|
||||
<UL>
|
||||
<LI>void <b><A HREF="#ref22">slotUpdateAllViews</A></b> (KpasmanView* pSender)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Signals</H2>
|
||||
<UL>
|
||||
<LI>void <b>docDirty</b> (bool bdirty)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Private Members</H2>
|
||||
<UL>
|
||||
<LI> bool <b><A HREF="#ref24">b_modified</A></b>
|
||||
</LI>
|
||||
<LI> QString <b>m_title</b>
|
||||
</LI>
|
||||
<LI> QString <b>m_path</b>
|
||||
</LI>
|
||||
<LI> QString <b><A HREF="#ref27">m_password</A></b>
|
||||
</LI>
|
||||
<LI> KpasmanApp* <b><A HREF="#ref28">m_parent</A></b>
|
||||
</LI>
|
||||
<LI> bool <b><A HREF="#ref29">m_bLocked</A></b>
|
||||
</LI>
|
||||
<LI>int <b><A HREF="#ref30">saveInit</A></b> (const char *filename, const char *password)
|
||||
</LI>
|
||||
<LI>int <b><A HREF="#ref31">saveEntry</A></b> (char *entry[4])
|
||||
</LI>
|
||||
<LI>int <b><A HREF="#ref32">saveFinalize</A></b> (void)
|
||||
</LI>
|
||||
<LI>int <b><A HREF="#ref33">loadInit</A></b> (const char* filename, const char *password)
|
||||
</LI>
|
||||
<LI>int <b><A HREF="#ref34">loadEntry</A></b> (char *entry[4])
|
||||
</LI>
|
||||
<LI>int <b><A HREF="#ref35">loadFinalize</A></b> (void)
|
||||
</LI>
|
||||
<LI>enum <b> </b> {PWERR_GOOD, PWERR_OPEN, PWERR_PERM, PWERR_SYML, PWERR_STAT, PWERR_DATA }
|
||||
</LI>
|
||||
<LI>int <b>checkFile</b> (const char *filename)
|
||||
</LI>
|
||||
<LI>void <b>getDocPassword</b> (const char *filename)
|
||||
</LI>
|
||||
<LI>void <b>showError</b> (int type)
|
||||
</LI>
|
||||
<LI> FILE * <b><A HREF="#ref40">fd</A></b>
|
||||
</LI>
|
||||
<LI> unsigned short [4] <b>iv</b>
|
||||
</LI>
|
||||
<LI> char * <b>buffer</b>
|
||||
</LI>
|
||||
<LI> int <b><A HREF="#ref43">bufferIndex</A></b>
|
||||
</LI>
|
||||
<LI> unsigned short [4] <b>plaintext</b>
|
||||
</LI>
|
||||
</UL>
|
||||
<HR><A NAME="longdesc"><H2>Detailed Description</H2><p> KpasmanDoc provides a document object for a document-view model.
|
||||
</p><p> The KpasmanDoc class provides a document object that can be used in conjunction with the classes KpasmanApp and KpasmanView
|
||||
to create a document-view model for standard KDE applications based on KApplication and KTMainWindow. Thereby, the document object
|
||||
is created by the KpasmanApp instance and contains the document structure with the according methods for manipulation of the document
|
||||
data by KpasmanView objects. Also, KpasmanDoc contains the methods for serialization of the document data from and to files.
|
||||
</p><p></p><A NAME=KpasmanDoc></A><A NAME=ref1></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <b>KpasmanDoc</b> (QWidget* parent, const char *name=0)
|
||||
</strong></td></tr></table></p><p> Constructor for the fileclass of the application </p><A NAME=~KpasmanDoc></A><A NAME=ref2></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <b>~KpasmanDoc</b> ()
|
||||
</strong></td></tr></table></p><p> Destructor for the fileclass of the application </p><A NAME=addView></A><A NAME=ref3></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>addView</b> (<A HREF="KpasmanView.html">KpasmanView</A>* m_pView)
|
||||
</strong></td></tr></table></p><p> adds a view to the document which represents the document contents. Usually this is your main view. </p><A NAME=removeView></A><A NAME=ref4></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>removeView</b> (<A HREF="KpasmanView.html">KpasmanView</A>* m_pView)
|
||||
</strong></td></tr></table></p><p> removes a view from the list of currently connected views </p><A NAME=setModified></A><A NAME=ref5></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>setModified</b> (bool modified=true)
|
||||
</strong></td></tr></table></p><p> sets the modified flag for the document after a modifying action on the view connected to the document.</p><A NAME=isModified></A><A NAME=ref6></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>isModified</b> ()
|
||||
</strong></td></tr></table></p><p> returns if the document is modified or not. Use this to determine if your document needs saving by the user on closing.</p><A NAME=saveModified></A><A NAME=ref7></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>saveModified</b> ()
|
||||
</strong></td></tr></table></p><p> "save modified" - asks the user for saving if the document is modified </p><A NAME=deleteContents></A><A NAME=ref8></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>deleteContents</b> ()
|
||||
</strong></td></tr></table></p><p> deletes the document's contents </p><A NAME=newDocument></A><A NAME=ref9></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>newDocument</b> ()
|
||||
</strong></td></tr></table></p><p> initializes the document generally </p><A NAME=closeDocument></A><A NAME=ref10></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>closeDocument</b> ()
|
||||
</strong></td></tr></table></p><p> closes the acutal document </p><A NAME=openDocument></A><A NAME=ref11></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>openDocument</b> (const char* filename, const char* format=0)
|
||||
</strong></td></tr></table></p><p> loads the document by filename and format and emits the updateViews() signal </p><A NAME=saveDocument></A><A NAME=ref12></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>saveDocument</b> (const char* filename, const char* format=0)
|
||||
</strong></td></tr></table></p><p> saves the document under filename and format.</p><A NAME=pathName></A><A NAME=ref13></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>pathName</b> (const char* path_name)
|
||||
</strong></td></tr></table></p><p> sets the path to the file connected with the document </p><A NAME=getPathName></A><A NAME=ref14></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>const QString& <b>getPathName</b> ()
|
||||
</strong></td></tr></table> <small>[const]</small></p><p> returns the pathname of the current document file</p><A NAME=title></A><A NAME=ref15></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>title</b> (const char* title)
|
||||
</strong></td></tr></table></p><p> sets the filename of the document </p><A NAME=getTitle></A><A NAME=ref16></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>const QString& <b>getTitle</b> ()
|
||||
</strong></td></tr></table> <small>[const]</small></p><p> returns the title of the document </p><A NAME=changeDocPassword></A><A NAME=ref17></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>changeDocPassword</b> ()
|
||||
</strong></td></tr></table></p><p> allows changing of document password </p><A NAME=lock></A><A NAME=ref18></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>lock</b> ()
|
||||
</strong></td></tr></table></p><p> lock the document </p><A NAME=unlock></A><A NAME=ref19></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>unlock</b> ()
|
||||
</strong></td></tr></table></p><p> unlock the document </p><A NAME=isLocked></A><A NAME=ref20></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>isLocked</b> ()
|
||||
</strong></td></tr></table></p><p> return locked status </p><A NAME=slotUpdateAllViews></A><A NAME=ref22></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>slotUpdateAllViews</b> (<A HREF="KpasmanView.html">KpasmanView</A>* pSender)
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> calls repaint() on all views connected to the document object and is called by the view by which the document has been changed.
|
||||
As this view normally repaints itself, it is excluded from the paintEvent. </p><A NAME=viewList></A><A NAME=ref23></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QList<<A HREF="KpasmanView.html">KpasmanView</A>>* <b>viewList</b>
|
||||
</strong></td></tr></table></p><p> the list of the views currently connected to the document </p><A NAME=b_modified></A><A NAME=ref24></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> bool <b>b_modified</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> the modified flag of the current document </p><A NAME=m_password></A><A NAME=ref27></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> QString <b>m_password</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> password for the file </p><A NAME=m_parent></A><A NAME=ref28></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <A HREF="KpasmanApp.html">KpasmanApp</A>* <b>m_parent</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> save our parent </p><A NAME=m_bLocked></A><A NAME=ref29></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> bool <b>m_bLocked</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> document locked status </p><A NAME=saveInit></A><A NAME=ref30></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>int <b>saveInit</b> (const char *filename, const char *password)
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> initializes savefile, writes header </p><A NAME=saveEntry></A><A NAME=ref31></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>int <b>saveEntry</b> (char *entry[4])
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> called for each entry to write </p><A NAME=saveFinalize></A><A NAME=ref32></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>int <b>saveFinalize</b> (void)
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> closes and cleans up </p><A NAME=loadInit></A><A NAME=ref33></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>int <b>loadInit</b> (const char* filename, const char *password)
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> initializes loadfile, reads header </p><A NAME=loadEntry></A><A NAME=ref34></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>int <b>loadEntry</b> (char *entry[4])
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> called for each entry to load </p><A NAME=loadFinalize></A><A NAME=ref35></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>int <b>loadFinalize</b> (void)
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> closes and cleans up </p><A NAME=fd></A><A NAME=ref40></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> FILE * <b>fd</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> these three are needed in all save functions and initialized in save_init() </p><A NAME=bufferIndex></A><A NAME=ref43></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> int <b>bufferIndex</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> these two are global because save_entry() and save_finalize() both need them </p><HR><UL><LI><i>Version</i>: KDevelop version 0.4 code generation
|
||||
</LI><LI><i>Author</i>: Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
</LI><LI><i>Generated</i>: tengel@bugsy on Thu Nov 18 10:33:52 199.</LI></UL></BODY></HTML>
|
||||
113
kpasman/api/KpasmanView.html
Normal file
113
kpasman/api/KpasmanView.html
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmanView</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmanView</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"> The KpasmanView class provides the view widget for the KpasmanApp instance. <small><A HREF="#longdesc">More...</A></small></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TH>Definition</TH><TD><code>#include <<A HREF="kpasmanview_h.html">kpasmanview.h</A>></code></TD></TR>
|
||||
<TR><TH>Inherits</TH><TD>QListView</TD></TR>
|
||||
<TR><TH><A HREF="full-list-KpasmanView.html">List of all Methods</A></TH></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<H2>Public Members</H2>
|
||||
<UL>
|
||||
<LI> <b><A HREF="#ref1">KpasmanView</A></b> (QWidget* parent = 0, const char* name=0)
|
||||
</LI>
|
||||
<LI> <b><A HREF="#ref2">~KpasmanView</A></b> ()
|
||||
</LI>
|
||||
<LI>KpasmanDoc* <b><A HREF="#ref3">getDocument</A></b> () const
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref4">setDocDirty</A></b> (bool dirty)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref5">hidePassword</A></b> (bool mode)
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref6">isPasswordHidden</A></b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref7">lockWindow</A></b> (bool mode)
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref8">isLocked</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref9">addEntry</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref10">editEntry</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref11">deleteEntry</A></b> ()
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Public Slots</H2>
|
||||
<UL>
|
||||
<LI>bool <b><A HREF="#ref12">slotAddEntry</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref13">slotEditEntry</A></b> ()
|
||||
</LI>
|
||||
<LI>bool <b><A HREF="#ref14">slotDeleteEntry</A></b> ()
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Protected Members</H2>
|
||||
<UL>
|
||||
<LI>void <b><A HREF="#ref15">mouseDoubleClickEvent</A></b> (QMouseEvent* event)
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref16">mousePressEvent</A></b> (QMouseEvent* event)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Private Members</H2>
|
||||
<UL>
|
||||
<LI> int <b><A HREF="#ref17">m_iPWColumn</A></b>
|
||||
</LI>
|
||||
<LI> bool <b><A HREF="#ref18">m_bPWHidden</A></b>
|
||||
</LI>
|
||||
<LI> int <b><A HREF="#ref19">m_iPWSize</A></b>
|
||||
</LI>
|
||||
<LI> bool <b><A HREF="#ref20">m_bLocked</A></b>
|
||||
</LI>
|
||||
<LI> bool <b><A HREF="#ref21">m_bLockPasswords</A></b>
|
||||
</LI>
|
||||
</UL>
|
||||
<HR><A NAME="longdesc"><H2>Detailed Description</H2><p> The KpasmanView class provides the view widget for the KpasmanApp instance.
|
||||
The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As KpasmanView is part of the
|
||||
docuement-view model, it needs a reference to the document object connected with it by the KpasmanApp class to manipulate and display
|
||||
the document structure provided by the KpasmanDoc class.
|
||||
</p><p></p><A NAME=KpasmanView></A><A NAME=ref1></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <b>KpasmanView</b> (QWidget* parent = 0, const char* name=0)
|
||||
</strong></td></tr></table></p><p> Constructor for the main view </p><A NAME=~KpasmanView></A><A NAME=ref2></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> <b>~KpasmanView</b> ()
|
||||
</strong></td></tr></table></p><p> Destructor for the main view </p><A NAME=getDocument></A><A NAME=ref3></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong><A HREF="KpasmanDoc.html">KpasmanDoc</A>* <b>getDocument</b> ()
|
||||
</strong></td></tr></table> <small>[const]</small></p><p> returns a pointer to the document connected to the view instance. Mind that this method requires a KpasmanApp instance as a parent
|
||||
widget to get to the window document pointer by calling the KpasmanApp::getDocument() method.
|
||||
</p><p></p><p><b>See also</b>: <A HREF="KpasmanApp.html#getDocument">getDocument</A></p>
|
||||
<A NAME=setDocDirty></A><A NAME=ref4></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>setDocDirty</b> (bool dirty)
|
||||
</strong></td></tr></table></p><p> handy helper to flag the doc when things change </p><A NAME=hidePassword></A><A NAME=ref5></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>hidePassword</b> (bool mode)
|
||||
</strong></td></tr></table></p><p> hides or unhides the password column </p><A NAME=isPasswordHidden></A><A NAME=ref6></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>isPasswordHidden</b> ()
|
||||
</strong></td></tr></table></p><p> returns password column state </p><A NAME=lockWindow></A><A NAME=ref7></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>lockWindow</b> (bool mode)
|
||||
</strong></td></tr></table></p><p> locks/unlocks the window </p><A NAME=isLocked></A><A NAME=ref8></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>isLocked</b> ()
|
||||
</strong></td></tr></table></p><p> returns if window is locked </p><A NAME=addEntry></A><A NAME=ref9></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>addEntry</b> ()
|
||||
</strong></td></tr></table></p><p> adds a new entry, returns true if something added </p><A NAME=editEntry></A><A NAME=ref10></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>editEntry</b> ()
|
||||
</strong></td></tr></table></p><p> edits an entry, returns true if something changed </p><A NAME=deleteEntry></A><A NAME=ref11></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>deleteEntry</b> ()
|
||||
</strong></td></tr></table></p><p> deletes an entry, returns true if something deleted </p><A NAME=slotAddEntry></A><A NAME=ref12></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>slotAddEntry</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> adds a new entry, returns true if something added </p><A NAME=slotEditEntry></A><A NAME=ref13></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>slotEditEntry</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> edits an entry, returns true if something changed </p><A NAME=slotDeleteEntry></A><A NAME=ref14></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>bool <b>slotDeleteEntry</b> ()
|
||||
</strong></td></tr></table> <small>[slot]</small></p><p> deletes an entry, returns true if something deleted </p><A NAME=mouseDoubleClickEvent></A><A NAME=ref15></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>mouseDoubleClickEvent</b> (QMouseEvent* event)
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> catches our doubleclick to edit an entry </p><A NAME=mousePressEvent></A><A NAME=ref16></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>mousePressEvent</b> (QMouseEvent* event)
|
||||
</strong></td></tr></table> <small>[protected]</small></p><p> catches our rightmouse click </p><A NAME=m_iPWColumn></A><A NAME=ref17></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> int <b>m_iPWColumn</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> stores password column number </p><A NAME=m_bPWHidden></A><A NAME=ref18></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> bool <b>m_bPWHidden</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> stores whether or not the password column is "hidden" </p><A NAME=m_iPWSize></A><A NAME=ref19></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> int <b>m_iPWSize</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> stores password column sizing for "unhiding" </p><A NAME=m_bLocked></A><A NAME=ref20></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> bool <b>m_bLocked</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> stores if the window is locked </p><A NAME=m_bLockPasswords></A><A NAME=ref21></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong> bool <b>m_bLockPasswords</b>
|
||||
</strong></td></tr></table> <small>[private]</small></p><p> stores if passwords were visible before we locked </p><HR><UL><LI><i>Version</i>: KDevelop version 0.4 code generation
|
||||
</LI><LI><i>Author</i>: Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
</LI><LI><i>Generated</i>: tengel@bugsy on Thu Nov 18 10:33:52 199.</LI></UL></BODY></HTML>
|
||||
63
kpasman/api/KpasmasterDlg.html
Normal file
63
kpasman/api/KpasmasterDlg.html
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmasterDlg</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmasterDlg</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1">
|
||||
<small><A HREF="#longdesc">More...</A></small></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TH>Definition</TH><TD><code>#include <<A HREF="kpasmasterdlg_h.html">kpasmasterdlg.h</A>></code></TD></TR>
|
||||
<TR><TH>Inherits</TH><TD>QDialog</TD></TR>
|
||||
<TR><TH><A HREF="full-list-KpasmasterDlg.html">List of all Methods</A></TH></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<H2>Public Members</H2>
|
||||
<UL>
|
||||
<LI> <b>KpasmasterDlg</b> (QWidget *parent=0, const char *name=0)
|
||||
</LI>
|
||||
<LI> <b>~KpasmasterDlg</b> ()
|
||||
</LI>
|
||||
<LI>void <b><A HREF="#ref3">getData</A></b> (QString& oldp, QString& newp, QString& verp)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Protected Members</H2>
|
||||
<UL>
|
||||
<LI>void <b>initDialog</b> ()
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbOld</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edOld</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbNew</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edNew</b>
|
||||
</LI>
|
||||
<LI> QLabel * <b>m_lbVerify</b>
|
||||
</LI>
|
||||
<LI> QLineEdit * <b>m_edVerify</b>
|
||||
</LI>
|
||||
<LI> QPushButton * <b>m_btOK</b>
|
||||
</LI>
|
||||
<LI> QPushButton * <b>m_btCancel</b>
|
||||
</LI>
|
||||
</UL>
|
||||
<HR><A NAME="longdesc"><H2>Detailed Description</H2><p>
|
||||
</p><A NAME=getData></A><A NAME=ref3></A><table width="100%"><tr bgcolor="#eeeeee"><td><strong>void <b>getData</b> (QString& oldp, QString& newp, QString& verp)
|
||||
</strong></td></tr></table></p><p> a way to retrieve our dialog data </p><HR><UL><LI><i>Author</i>: Troy Engel
|
||||
</LI><LI><i>Generated</i>: tengel@bugsy on Thu Nov 18 10:33:52 199.</LI></UL></BODY></HTML>
|
||||
63
kpasman/api/Krc2.html
Normal file
63
kpasman/api/Krc2.html
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class Krc2</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class Krc2</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TH>Definition</TH><TD><code>#include <<A HREF="krc2_h.html">krc2.h</A>></code></TD></TR>
|
||||
<TR><TH><A HREF="full-list-Krc2.html">List of all Methods</A></TH></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<H2>Public Members</H2>
|
||||
<UL>
|
||||
<LI> <b>Krc2</b> ()
|
||||
</LI>
|
||||
<LI> <b>~Krc2</b> ()
|
||||
</LI>
|
||||
<LI>void <b>rc2_expandkey</b> (char key[], int length, int ekl)
|
||||
</LI>
|
||||
<LI>void <b>rc2_encrypt</b> (unsigned short *input)
|
||||
</LI>
|
||||
<LI>void <b>rc2_decrypt</b> (unsigned short *input)
|
||||
</LI>
|
||||
</UL>
|
||||
<H2>Private Members</H2>
|
||||
<UL>
|
||||
<LI>void <b>_rc2_mix</b> (unsigned short *input)
|
||||
</LI>
|
||||
<LI>void <b>_rc2_mash</b> (unsigned short *input)
|
||||
</LI>
|
||||
<LI>void <b>_rc2_rmix</b> (unsigned short *input)
|
||||
</LI>
|
||||
<LI>void <b>_rc2_rmash</b> (unsigned short *input)
|
||||
</LI>
|
||||
<LI>int <b>_rc2_pow</b> (int base, int exponent)
|
||||
</LI>
|
||||
<LI>unsigned short <b>_rc2_ror</b> (unsigned short input, int places)
|
||||
</LI>
|
||||
<LI>unsigned short <b>_rc2_rol</b> (unsigned short input, int places)
|
||||
</LI>
|
||||
</UL>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
32
kpasman/api/all-globals.html
Normal file
32
kpasman/api/all-globals.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> Globals</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1> Globals</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
37
kpasman/api/full-list-KPasswordDlg.html
Normal file
37
kpasman/api/full-list-KPasswordDlg.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KPasswordDlg: All methods</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KPasswordDlg: All methods</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE><TR ><TD><A HREF="KPasswordDlg.html#KPasswordDlg">KPasswordDlg</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KPasswordDlg.html#getPassword">getPassword</A></TR></TD>
|
||||
<TR ><TD><A HREF="KPasswordDlg.html#initDialog">initDialog</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KPasswordDlg.html#setFilename">setFilename</A></TR></TD>
|
||||
<TR ><TD><A HREF="KPasswordDlg.html#~KPasswordDlg">~KPasswordDlg</A></TR></TD>
|
||||
</TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
37
kpasman/api/full-list-KpasentryDlg.html
Normal file
37
kpasman/api/full-list-KpasentryDlg.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasentryDlg: All methods</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasentryDlg: All methods</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE><TR ><TD><A HREF="KpasentryDlg.html#KpasentryDlg">KpasentryDlg</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasentryDlg.html#getData">getData</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasentryDlg.html#initDialog">initDialog</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasentryDlg.html#setData">setData</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasentryDlg.html#~KpasentryDlg">~KpasentryDlg</A></TR></TD>
|
||||
</TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
74
kpasman/api/full-list-KpasmanApp.html
Normal file
74
kpasman/api/full-list-KpasmanApp.html
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmanApp: All methods</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmanApp: All methods</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE><TR ><TD><A HREF="KpasmanApp.html#KpasmanApp">KpasmanApp</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#addRecentFile">addRecentFile</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#commandCallback">commandCallback</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#disableCommand">disableCommand</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#enableCommand">enableCommand</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#getDocument">getDocument</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#initDocument">initDocument</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#initKeyAccel">initKeyAccel</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#initMenuBar">initMenuBar</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#initStatusBar">initStatusBar</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#initToolBar">initToolBar</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#initView">initView</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#openDocumentFile">openDocumentFile</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#queryClose">queryClose</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#queryExit">queryExit</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#readOptions">readOptions</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#readProperties">readProperties</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#saveOptions">saveOptions</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#saveProperties">saveProperties</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#setModified">setModified</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotEditAdd">slotEditAdd</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotEditDelete">slotEditDelete</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotEditEdit">slotEditEdit</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotEditPassword">slotEditPassword</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotFileClose">slotFileClose</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotFileNew">slotFileNew</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotFileNewWindow">slotFileNewWindow</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotFileOpen">slotFileOpen</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotFileOpenRecent">slotFileOpenRecent</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotFileQuit">slotFileQuit</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotFileSave">slotFileSave</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotFileSaveAs">slotFileSaveAs</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotLockWindow">slotLockWindow</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotStatusHelpMsg">slotStatusHelpMsg</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotStatusMsg">slotStatusMsg</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotUpdateDocMenu">slotUpdateDocMenu</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotUpdateViewMenu">slotUpdateViewMenu</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotViewPasswords">slotViewPasswords</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#slotViewStatusBar">slotViewStatusBar</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#slotViewToolBar">slotViewToolBar</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanApp.html#statusCallback">statusCallback</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanApp.html#~KpasmanApp">~KpasmanApp</A></TR></TD>
|
||||
</TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
63
kpasman/api/full-list-KpasmanDoc.html
Normal file
63
kpasman/api/full-list-KpasmanDoc.html
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmanDoc: All methods</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmanDoc: All methods</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE><TR ><TD><A HREF="KpasmanDoc.html#KpasmanDoc">KpasmanDoc</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#addView">addView</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#changeDocPassword">changeDocPassword</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#checkFile">checkFile</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#closeDocument">closeDocument</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#deleteContents">deleteContents</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#docDirty">docDirty</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#getDocPassword">getDocPassword</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#getPathName">getPathName</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#getTitle">getTitle</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#isLocked">isLocked</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#isModified">isModified</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#loadEntry">loadEntry</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#loadFinalize">loadFinalize</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#loadInit">loadInit</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#lock">lock</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#newDocument">newDocument</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#openDocument">openDocument</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#pathName">pathName</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#removeView">removeView</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#saveDocument">saveDocument</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#saveEntry">saveEntry</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#saveFinalize">saveFinalize</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#saveInit">saveInit</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#saveModified">saveModified</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#setModified">setModified</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#showError">showError</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#slotUpdateAllViews">slotUpdateAllViews</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#title">title</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html#unlock">unlock</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanDoc.html#~KpasmanDoc">~KpasmanDoc</A></TR></TD>
|
||||
</TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
48
kpasman/api/full-list-KpasmanView.html
Normal file
48
kpasman/api/full-list-KpasmanView.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmanView: All methods</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmanView: All methods</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE><TR ><TD><A HREF="KpasmanView.html#KpasmanView">KpasmanView</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#addEntry">addEntry</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanView.html#deleteEntry">deleteEntry</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#editEntry">editEntry</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanView.html#getDocument">getDocument</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#hidePassword">hidePassword</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanView.html#isLocked">isLocked</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#isPasswordHidden">isPasswordHidden</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanView.html#lockWindow">lockWindow</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#mouseDoubleClickEvent">mouseDoubleClickEvent</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanView.html#mousePressEvent">mousePressEvent</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#setDocDirty">setDocDirty</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanView.html#slotAddEntry">slotAddEntry</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#slotDeleteEntry">slotDeleteEntry</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmanView.html#slotEditEntry">slotEditEntry</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanView.html#~KpasmanView">~KpasmanView</A></TR></TD>
|
||||
</TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
36
kpasman/api/full-list-KpasmasterDlg.html
Normal file
36
kpasman/api/full-list-KpasmasterDlg.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class KpasmasterDlg: All methods</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class KpasmasterDlg: All methods</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE><TR ><TD><A HREF="KpasmasterDlg.html#KpasmasterDlg">KpasmasterDlg</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmasterDlg.html#getData">getData</A></TR></TD>
|
||||
<TR ><TD><A HREF="KpasmasterDlg.html#initDialog">initDialog</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmasterDlg.html#~KpasmasterDlg">~KpasmasterDlg</A></TR></TD>
|
||||
</TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
44
kpasman/api/full-list-Krc2.html
Normal file
44
kpasman/api/full-list-Krc2.html
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>class Krc2: All methods</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>class Krc2: All methods</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE><TR ><TD><A HREF="Krc2.html#Krc2">Krc2</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="Krc2.html#_rc2_mash">_rc2_mash</A></TR></TD>
|
||||
<TR ><TD><A HREF="Krc2.html#_rc2_mix">_rc2_mix</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="Krc2.html#_rc2_pow">_rc2_pow</A></TR></TD>
|
||||
<TR ><TD><A HREF="Krc2.html#_rc2_rmash">_rc2_rmash</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="Krc2.html#_rc2_rmix">_rc2_rmix</A></TR></TD>
|
||||
<TR ><TD><A HREF="Krc2.html#_rc2_rol">_rc2_rol</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="Krc2.html#_rc2_ror">_rc2_ror</A></TR></TD>
|
||||
<TR ><TD><A HREF="Krc2.html#rc2_decrypt">rc2_decrypt</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="Krc2.html#rc2_encrypt">rc2_encrypt</A></TR></TD>
|
||||
<TR ><TD><A HREF="Krc2.html#rc2_expandkey">rc2_expandkey</A></TR></TD>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="Krc2.html#~Krc2">~Krc2</A></TR></TD>
|
||||
</TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
41
kpasman/api/header-list.html
Normal file
41
kpasman/api/header-list.html
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> File Index</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1> File Index</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<LI><A HREF="kpasentrydlg_h.html">kpasentrydlg.h</A></LI>
|
||||
<LI><A HREF="kpasman_h.html">kpasman.h</A></LI>
|
||||
<LI><A HREF="kpasmandoc_h.html">kpasmandoc.h</A></LI>
|
||||
<LI><A HREF="kpasmanview_h.html">kpasmanview.h</A></LI>
|
||||
<LI><A HREF="kpasmasterdlg_h.html">kpasmasterdlg.h</A></LI>
|
||||
<LI><A HREF="kpassworddlg_h.html">kpassworddlg.h</A></LI>
|
||||
<LI><A HREF="krc2_h.html">krc2.h</A></LI>
|
||||
<LI><A HREF="resource_h.html">resource.h</A></LI>
|
||||
</UL>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
41
kpasman/api/hier.html
Normal file
41
kpasman/api/hier.html
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> Class Hierarchy</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1> Class Hierarchy</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<UL>
|
||||
<LI><A HREF="KPasswordDlg.html">KPasswordDlg</A> </LI>
|
||||
<LI><A HREF="KpasentryDlg.html">KpasentryDlg</A> </LI>
|
||||
<LI><A HREF="KpasmanApp.html">KpasmanApp</A> </LI>
|
||||
<LI><A HREF="KpasmanDoc.html">KpasmanDoc</A> </LI>
|
||||
<LI><A HREF="KpasmanView.html">KpasmanView</A> </LI>
|
||||
<LI><A HREF="KpasmasterDlg.html">KpasmasterDlg</A> </LI>
|
||||
<LI><A HREF="Krc2.html">Krc2</A> </LI>
|
||||
</UL>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
36
kpasman/api/index-long.html
Normal file
36
kpasman/api/index-long.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> Annotated List</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1> Annotated List</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE WIDTH="100%" BORDER=\"0\"><TR ><TD><A HREF="KPasswordDlg.html">KPasswordDlg</A></TD><TD>
|
||||
</TD></TR><TR bgcolor="#eeeeee"><TD><A HREF="KpasentryDlg.html">KpasentryDlg</A></TD><TD>
|
||||
</TD></TR><TR ><TD><A HREF="KpasmanApp.html">KpasmanApp</A></TD><TD>
|
||||
The base class for Kpasman application windows.</TD></TR><TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html">KpasmanDoc</A></TD><TD> KpasmanDoc provides a document object for a document-view model.</TD></TR><TR ><TD><A HREF="KpasmanView.html">KpasmanView</A></TD><TD> The KpasmanView class provides the view widget for the KpasmanApp instance.</TD></TR><TR bgcolor="#eeeeee"><TD><A HREF="KpasmasterDlg.html">KpasmasterDlg</A></TD><TD>
|
||||
</TD></TR><TR ><TD><A HREF="Krc2.html">Krc2</A></TD><TD></TD></TR></TABLE><HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
42
kpasman/api/index.html
Normal file
42
kpasman/api/index.html
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE> Class Index</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1> Class Index</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<TABLE WIDTH="100%" BORDER="0"><TR><TD><TABLE BORDER="0"><TR bgcolor="b0b0b0"><TH>KPasswordDlg - KpasentryDlg</TH></TR><TR ><TD><A HREF="KPasswordDlg.html">KPasswordDlg</A></TD></TR>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasentryDlg.html">KpasentryDlg</A></TD></TR>
|
||||
</TABLE></TD><TD><TABLE BORDER="0"><TR bgcolor="b0b0b0"><TH>KpasmanApp - KpasmanDoc</TH></TR><TR ><TD><A HREF="KpasmanApp.html">KpasmanApp</A></TD></TR>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmanDoc.html">KpasmanDoc</A></TD></TR>
|
||||
</TABLE></TD><TD><TABLE BORDER="0"><TR bgcolor="b0b0b0"><TH>KpasmanView - Krc2</TH></TR><TR ><TD><A HREF="KpasmanView.html">KpasmanView</A></TD></TR>
|
||||
<TR bgcolor="#eeeeee"><TD><A HREF="KpasmasterDlg.html">KpasmasterDlg</A></TD></TR>
|
||||
<TR ><TD><A HREF="Krc2.html">Krc2</A></TD></TR>
|
||||
</TABLE></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
104
kpasman/api/kpasentrydlg_h.html
Normal file
104
kpasman/api/kpasentrydlg_h.html
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: kpasentrydlg.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: kpasentrydlg.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
/***************************************************************************
|
||||
kpasentrydlg.h - description
|
||||
-------------------
|
||||
begin : Tue Sep 21 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef KPASENTRYDLG_H
|
||||
#define KPASENTRYDLG_H
|
||||
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
#include <qwidget.h>
|
||||
#include <qgroupbox.h>
|
||||
#include <qlabel.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qpushbutton.h>
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
#include <qdialog.h>
|
||||
|
||||
/**
|
||||
*@author Troy Engel
|
||||
*/
|
||||
|
||||
class KpasentryDlg : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
KpasentryDlg(QWidget *parent=0, const char *name=0);
|
||||
~KpasentryDlg();
|
||||
|
||||
/** a way to retrieve our dialog data */
|
||||
void getData(QString& location, QString& username, QString& password, QString& comment);
|
||||
/** a way to set our dialog data */
|
||||
void setData(QString location, QString username, QString password, QString comment);
|
||||
|
||||
protected:
|
||||
void initDialog();
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
QGroupBox *m_bgMain;
|
||||
QLabel *m_lbLocation;
|
||||
QLineEdit *m_edLocation;
|
||||
QLabel *m_lbUsername;
|
||||
QLineEdit *m_edUsername;
|
||||
QLabel *m_lbPassword;
|
||||
QLineEdit *m_edPassword;
|
||||
QLabel *m_lbComment;
|
||||
QLineEdit *m_edComment;
|
||||
QPushButton *m_btOK;
|
||||
QPushButton *m_btCancel;
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
260
kpasman/api/kpasman_h.html
Normal file
260
kpasman/api/kpasman_h.html
Normal file
|
|
@ -0,0 +1,260 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: kpasman.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: kpasman.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
|
||||
#ifndef KPASMAN_H
|
||||
#define KPASMAN_H
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
// include files for Qt
|
||||
#include <qlistview.h>
|
||||
|
||||
// include files for KDE
|
||||
#include <kapp.h>
|
||||
#include <ktmainwindow.h>
|
||||
#include <kaccel.h>
|
||||
|
||||
// forward declaration of the Kpasman classes
|
||||
class KpasmanDoc;
|
||||
class KpasmanView;
|
||||
|
||||
/**
|
||||
* The base class for Kpasman application windows. It sets up the main
|
||||
* window and reads the config file as well as providing a menubar, toolbar
|
||||
* and statusbar. An instance of KpasmanView creates your center view, which is connected
|
||||
* to the window's Doc object.
|
||||
* KpasmanApp reimplements the methods that KTMainWindow provides for main window handling and supports
|
||||
* full session management as well as keyboard accelerator configuration by using KAccel.
|
||||
* @see KTMainWindow
|
||||
* @see KApplication
|
||||
* @see KConfig
|
||||
* @see KAccel
|
||||
*
|
||||
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
* @version KDevelop version 0.4 code generation
|
||||
*/
|
||||
class KpasmanApp : public KTMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
friend class KpasmanView;
|
||||
|
||||
public:
|
||||
/** construtor of KpasmanApp, calls all init functions to create the application.
|
||||
* @see initMenuBar initToolBar
|
||||
*/
|
||||
KpasmanApp();
|
||||
|
||||
~KpasmanApp();
|
||||
/** enables menuentries/toolbar items
|
||||
*/
|
||||
void enableCommand(int id_);
|
||||
/** disables menuentries/toolbar items
|
||||
*/
|
||||
void disableCommand(int id_);
|
||||
/** add a opened file to the recent file list and update recent_file_menu
|
||||
*/
|
||||
void addRecentFile(const char* file);
|
||||
/** opens a file specified by commandline option
|
||||
*/
|
||||
void openDocumentFile(const char* _cmdl);
|
||||
/** returns a pointer to the current document connected to the KTMainWindow instance and is used by
|
||||
* the View class to access the document object's methods
|
||||
*/
|
||||
KpasmanDoc* getDocument() const;
|
||||
|
||||
/** handy way to flip all the flags at once */
|
||||
void setModified(bool modified = true);
|
||||
|
||||
protected:
|
||||
/** save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration
|
||||
* file
|
||||
*/
|
||||
void saveOptions();
|
||||
/** read general Options again and initialize all variables like the recent file list
|
||||
*/
|
||||
void readOptions();
|
||||
/** initKeyAccel creates the keyboard accelerator items for the available slots and changes the menu accelerators.
|
||||
* @see KAccel
|
||||
*/
|
||||
void initKeyAccel();
|
||||
/** initMenuBar creates the menubar and inserts the menupopups as well as creating the helpMenu.
|
||||
* @see KApplication#getHelpMenu
|
||||
*/
|
||||
void initMenuBar();
|
||||
/** this creates the toolbars.
|
||||
*/
|
||||
void initToolBar();
|
||||
/** sets up the statusbar for the main window by initialzing a statuslabel.
|
||||
*/
|
||||
void initStatusBar();
|
||||
/** initializes the document object of the main window that is connected to the view in initView().
|
||||
* @see initView();
|
||||
*/
|
||||
void initDocument();
|
||||
/** creates the centerwidget of the KTMainWindow instance and sets it as the view
|
||||
*/
|
||||
void initView();
|
||||
/** queryClose is called by KTMainWindow on each closeEvent of a window. Against the
|
||||
* default implementation (only returns true), this calles saveModified() on the document object to ask if the document shall
|
||||
* be saved if Modified; on cancel the closeEvent is rejected.
|
||||
* @see KTMainWindow#queryClose
|
||||
* @see KTMainWindow#closeEvent
|
||||
*/
|
||||
virtual bool queryClose();
|
||||
/** queryExit is called by KTMainWindow when the last window of the application is going to be closed during the closeEvent().
|
||||
* Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's
|
||||
* properties.
|
||||
* @see KTMainWindow#queryExit
|
||||
* @see KTMainWindow#closeEvent
|
||||
*/
|
||||
virtual bool queryExit();
|
||||
/** saves the window properties for each open window during session end to the session config file, including saving the currently
|
||||
* opened file by a temporary filename provided by KApplication.
|
||||
* @see KTMainWindow#saveProperties
|
||||
*/
|
||||
virtual void saveProperties(KConfig* );
|
||||
/** reads the session config file and restores the application's state including the last opened files and documents by reading the
|
||||
* temporary files saved by saveProperties()
|
||||
* @see KTMainWindow#readProperties
|
||||
*/
|
||||
virtual void readProperties(KConfig* );
|
||||
|
||||
public slots:
|
||||
/** switch argument for slot selection by menu or toolbar ID */
|
||||
void commandCallback(int id_);
|
||||
/** switch argument for Statusbar help entries on slot selection. Add your ID's help here for toolbars and menubar entries. */
|
||||
void statusCallback(int id_);
|
||||
/** open a new application window by creating a new instance of KpasmanApp */
|
||||
void slotFileNewWindow();
|
||||
/** clears the document in the actual view to reuse it as the new document */
|
||||
void slotFileNew();
|
||||
/** open a file and load it into the document*/
|
||||
void slotFileOpen();
|
||||
/** opens a file from the recent files menu */
|
||||
void slotFileOpenRecent(int id_);
|
||||
/** save a document */
|
||||
void slotFileSave();
|
||||
/** save a document by a new filename*/
|
||||
void slotFileSaveAs();
|
||||
/** asks for saving if the file is modified, then closes the actual file and window*/
|
||||
void slotFileClose();
|
||||
/** closes all open windows by calling close() on each memberList item until the list is empty, then quits the application.
|
||||
* If queryClose() returns false because the user canceled the saveModified() dialog, the closing breaks.
|
||||
*/
|
||||
void slotFileQuit();
|
||||
/** adds a new entry */
|
||||
void slotEditAdd();
|
||||
/** edits current entry */
|
||||
void slotEditEdit();
|
||||
/** deletes current entry */
|
||||
void slotEditDelete();
|
||||
/** changes master password */
|
||||
void slotEditPassword();
|
||||
/** changes menus based on doc status */
|
||||
void slotUpdateDocMenu(bool bdirty);
|
||||
/** changes menus based on item selection status */
|
||||
void slotUpdateViewMenu(QListViewItem* item);
|
||||
/** toggles the toolbar */
|
||||
void slotViewToolBar();
|
||||
/** toggles the statusbar */
|
||||
void slotViewStatusBar();
|
||||
/** toggles the passwords */
|
||||
void slotViewPasswords();
|
||||
/** locks / unlocks the window */
|
||||
void slotLockWindow();
|
||||
/** changes the statusbar contents for the standard label permanently, used to indicate current actions.
|
||||
* @param text the text that is displayed in the statusbar
|
||||
*/
|
||||
void slotStatusMsg(const char *text);
|
||||
/** changes the status message of the whole statusbar for two seconds, then restores the last status. This is used to display
|
||||
* statusbar messages that give information about actions for toolbar icons and menuentries.
|
||||
* @param text the text that is displayed in the statusbar
|
||||
*/
|
||||
void slotStatusHelpMsg(const char *text);
|
||||
|
||||
private:
|
||||
/** the configuration object of the application */
|
||||
KConfig* config;
|
||||
/** the key accelerator container */
|
||||
KAccel* key_accel;
|
||||
/** file_menu contains all items of the menubar entry "File" */
|
||||
QPopupMenu *file_menu;
|
||||
/** the recent file menu containing the last five opened files */
|
||||
QPopupMenu *recent_files_menu;
|
||||
/** contains the recently used filenames */
|
||||
QStrList recent_files;
|
||||
/** edit_menu contains all items of the menubar entry "Edit" */
|
||||
QPopupMenu *edit_menu;
|
||||
/** view_menu contains all items of the menubar entry "View" */
|
||||
QPopupMenu *view_menu;
|
||||
/** window_menu contains all items of the menubar entry "Window" */
|
||||
QPopupMenu *window_menu;
|
||||
/** help_menu contains all items of the menubar entry "Help" */
|
||||
QPopupMenu *help_menu;
|
||||
/** view is the main widget which represents your working area. The View
|
||||
* class should handle all events of the view widget. It is kept empty so
|
||||
* you can create your view according to your application's needs by
|
||||
* changing the view class. */
|
||||
KpasmanView *view;
|
||||
/** doc represents your actual document and is created only once. It keeps
|
||||
* information such as filename and does the serialization of your files.
|
||||
*/
|
||||
KpasmanDoc *doc;
|
||||
|
||||
};
|
||||
|
||||
#endif // KPASMAN_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
179
kpasman/api/kpasmandoc_h.html
Normal file
179
kpasman/api/kpasmandoc_h.html
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: kpasmandoc.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: kpasmandoc.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
|
||||
#ifndef KPASMANDOC_H
|
||||
#define KPASMANDOC_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
// include files for QT
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qlist.h>
|
||||
|
||||
// for FILE
|
||||
#include <stdio.h>
|
||||
|
||||
// forward declaration of the Kpasman classes
|
||||
class KpasmanApp;
|
||||
class KpasmanView;
|
||||
|
||||
/** KpasmanDoc provides a document object for a document-view model.
|
||||
*
|
||||
* The KpasmanDoc class provides a document object that can be used in conjunction with the classes KpasmanApp and KpasmanView
|
||||
* to create a document-view model for standard KDE applications based on KApplication and KTMainWindow. Thereby, the document object
|
||||
* is created by the KpasmanApp instance and contains the document structure with the according methods for manipulation of the document
|
||||
* data by KpasmanView objects. Also, KpasmanDoc contains the methods for serialization of the document data from and to files.
|
||||
*
|
||||
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
* @version KDevelop version 0.4 code generation
|
||||
*/
|
||||
class KpasmanDoc : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Constructor for the fileclass of the application */
|
||||
KpasmanDoc(QWidget* parent, const char *name=0);
|
||||
/** Destructor for the fileclass of the application */
|
||||
~KpasmanDoc();
|
||||
/** adds a view to the document which represents the document contents. Usually this is your main view. */
|
||||
void addView(KpasmanView* m_pView);
|
||||
/** removes a view from the list of currently connected views */
|
||||
void removeView(KpasmanView* m_pView);
|
||||
/** sets the modified flag for the document after a modifying action on the view connected to the document.*/
|
||||
void setModified(bool modified=true);
|
||||
/** returns if the document is modified or not. Use this to determine if your document needs saving by the user on closing.*/
|
||||
bool isModified(){ return b_modified;}
|
||||
/** "save modified" - asks the user for saving if the document is modified */
|
||||
bool saveModified();
|
||||
/** deletes the document's contents */
|
||||
void deleteContents();
|
||||
/** initializes the document generally */
|
||||
bool newDocument();
|
||||
/** closes the acutal document */
|
||||
void closeDocument();
|
||||
/** loads the document by filename and format and emits the updateViews() signal */
|
||||
bool openDocument(const char* filename, const char* format=0);
|
||||
/** saves the document under filename and format.*/
|
||||
bool saveDocument(const char* filename, const char* format=0);
|
||||
/** sets the path to the file connected with the document */
|
||||
void pathName(const char* path_name);
|
||||
/** returns the pathname of the current document file*/
|
||||
const QString& getPathName() const;
|
||||
/** sets the filename of the document */
|
||||
void title(const char* title);
|
||||
/** returns the title of the document */
|
||||
const QString& getTitle() const;
|
||||
/** allows changing of document password */
|
||||
void changeDocPassword();
|
||||
/** lock the document */
|
||||
bool lock();
|
||||
/** unlock the document */
|
||||
bool unlock();
|
||||
/** return locked status */
|
||||
bool isLocked() {return m_bLocked;};
|
||||
|
||||
signals:
|
||||
void docDirty(bool bdirty);
|
||||
|
||||
public slots:
|
||||
/** calls repaint() on all views connected to the document object and is called by the view by which the document has been changed.
|
||||
* As this view normally repaints itself, it is excluded from the paintEvent. */
|
||||
void slotUpdateAllViews(KpasmanView* pSender);
|
||||
|
||||
public:
|
||||
/** the list of the views currently connected to the document */
|
||||
static QList<KpasmanView>* viewList;
|
||||
|
||||
private:
|
||||
/** the modified flag of the current document */
|
||||
bool b_modified;
|
||||
QString m_title;
|
||||
QString m_path;
|
||||
/** password for the file */
|
||||
QString m_password;
|
||||
/** save our parent */
|
||||
KpasmanApp* m_parent;
|
||||
/** document locked status */
|
||||
bool m_bLocked;
|
||||
|
||||
/** initializes savefile, writes header */
|
||||
int saveInit(const char *filename, const char *password);
|
||||
/** called for each entry to write */
|
||||
int saveEntry(char *entry[4]);
|
||||
/** closes and cleans up */
|
||||
int saveFinalize(void);
|
||||
|
||||
/** initializes loadfile, reads header */
|
||||
int loadInit(const char* filename, const char *password);
|
||||
/** called for each entry to load */
|
||||
int loadEntry(char *entry[4]);
|
||||
/** closes and cleans up */
|
||||
int loadFinalize(void);
|
||||
|
||||
enum {
|
||||
PWERR_GOOD, // success
|
||||
PWERR_OPEN, // can't open filedescriptor / can't create file
|
||||
PWERR_PERM, // permissions are bad
|
||||
PWERR_SYML, // is a symlink
|
||||
PWERR_STAT, // can't get file status
|
||||
PWERR_DATA // can't read correct data
|
||||
};
|
||||
|
||||
int checkFile (const char *filename);
|
||||
void getDocPassword(const char *filename);
|
||||
void showError(int type);
|
||||
|
||||
/** globals needed for file loading */
|
||||
int lastcount, size;
|
||||
/** these three are needed in all save functions and initialized in save_init() */
|
||||
FILE *fd;
|
||||
unsigned short iv[4];
|
||||
char *buffer;
|
||||
/** these two are global because save_entry() and save_finalize() both need them */
|
||||
int bufferIndex;
|
||||
unsigned short plaintext[4];
|
||||
|
||||
};
|
||||
|
||||
#endif // KPASMANDOC_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
122
kpasman/api/kpasmanview_h.html
Normal file
122
kpasman/api/kpasmanview_h.html
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: kpasmanview.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: kpasmanview.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
|
||||
#ifndef KPASMANVIEW_H
|
||||
#define KPASMANVIEW_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
// include files for Qt
|
||||
#include <qlistview.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
class KpasmanDoc;
|
||||
|
||||
/** The KpasmanView class provides the view widget for the KpasmanApp instance.
|
||||
* The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As KpasmanView is part of the
|
||||
* docuement-view model, it needs a reference to the document object connected with it by the KpasmanApp class to manipulate and display
|
||||
* the document structure provided by the KpasmanDoc class.
|
||||
*
|
||||
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
* @version KDevelop version 0.4 code generation
|
||||
*/
|
||||
class KpasmanView : public QListView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Constructor for the main view */
|
||||
KpasmanView(QWidget* parent = 0, const char* name=0);
|
||||
/** Destructor for the main view */
|
||||
~KpasmanView();
|
||||
|
||||
/** returns a pointer to the document connected to the view instance. Mind that this method requires a KpasmanApp instance as a parent
|
||||
* widget to get to the window document pointer by calling the KpasmanApp::getDocument() method.
|
||||
*
|
||||
* @see KpasmanApp#getDocument
|
||||
*/
|
||||
KpasmanDoc* getDocument() const;
|
||||
|
||||
/** handy helper to flag the doc when things change */
|
||||
void setDocDirty(bool dirty);
|
||||
|
||||
/** hides or unhides the password column */
|
||||
void hidePassword(bool mode);
|
||||
/** returns password column state */
|
||||
bool isPasswordHidden() {return m_bPWHidden;};
|
||||
|
||||
/** locks/unlocks the window */
|
||||
void lockWindow(bool mode);
|
||||
/** returns if window is locked */
|
||||
bool isLocked() {return m_bLocked;};
|
||||
|
||||
/** adds a new entry, returns true if something added */
|
||||
bool addEntry();
|
||||
/** edits an entry, returns true if something changed */
|
||||
bool editEntry();
|
||||
/** deletes an entry, returns true if something deleted */
|
||||
bool deleteEntry();
|
||||
|
||||
public slots:
|
||||
/** adds a new entry, returns true if something added */
|
||||
bool slotAddEntry() {return addEntry();};
|
||||
/** edits an entry, returns true if something changed */
|
||||
bool slotEditEntry() {return editEntry();};
|
||||
/** deletes an entry, returns true if something deleted */
|
||||
bool slotDeleteEntry() {return deleteEntry();};
|
||||
|
||||
protected:
|
||||
/** catches our doubleclick to edit an entry */
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
/** catches our rightmouse click */
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
|
||||
private:
|
||||
/** stores password column number */
|
||||
int m_iPWColumn;
|
||||
/** stores whether or not the password column is "hidden" */
|
||||
bool m_bPWHidden;
|
||||
/** stores password column sizing for "unhiding" */
|
||||
int m_iPWSize;
|
||||
/** stores if the window is locked */
|
||||
bool m_bLocked;
|
||||
/** stores if passwords were visible before we locked */
|
||||
bool m_bLockPasswords;
|
||||
};
|
||||
|
||||
#endif // KPASMANVIEW_H
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
96
kpasman/api/kpasmasterdlg_h.html
Normal file
96
kpasman/api/kpasmasterdlg_h.html
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: kpasmasterdlg.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: kpasmasterdlg.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
/***************************************************************************
|
||||
kpasmasterdlg.h - description
|
||||
-------------------
|
||||
begin : Sun Sep 26 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef KPASMASTERDLG_H
|
||||
#define KPASMASTERDLG_H
|
||||
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
#include <qwidget.h>
|
||||
#include <qlabel.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qpushbutton.h>
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
#include <qdialog.h>
|
||||
|
||||
/**
|
||||
*@author Troy Engel
|
||||
*/
|
||||
|
||||
class KpasmasterDlg : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
KpasmasterDlg(QWidget *parent=0, const char *name=0);
|
||||
~KpasmasterDlg();
|
||||
|
||||
/** a way to retrieve our dialog data */
|
||||
void getData(QString& oldp, QString& newp, QString& verp);
|
||||
|
||||
protected:
|
||||
void initDialog();
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
QLabel *m_lbOld;
|
||||
QLineEdit *m_edOld;
|
||||
QLabel *m_lbNew;
|
||||
QLineEdit *m_edNew;
|
||||
QLabel *m_lbVerify;
|
||||
QLineEdit *m_edVerify;
|
||||
QPushButton *m_btOK;
|
||||
QPushButton *m_btCancel;
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
96
kpasman/api/kpassworddlg_h.html
Normal file
96
kpasman/api/kpassworddlg_h.html
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: kpassworddlg.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: kpassworddlg.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
/***************************************************************************
|
||||
kpassworddlg.h - description
|
||||
-------------------
|
||||
begin : Sun Sep 19 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef KPASSWORDDLG_H
|
||||
#define KPASSWORDDLG_H
|
||||
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
#include <qwidget.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qlabel.h>
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
#include <qdialog.h>
|
||||
|
||||
/**
|
||||
*@author Troy Engel
|
||||
*/
|
||||
|
||||
class KPasswordDlg : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
KPasswordDlg(QWidget *parent=0, const char *name=0);
|
||||
~KPasswordDlg();
|
||||
|
||||
/** allows parent to set visible filename */
|
||||
void setFilename(const char *name);
|
||||
/** allows parent to retrieve password */
|
||||
const char* getPassword();
|
||||
|
||||
protected:
|
||||
void initDialog();
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
QPushButton *m_btOK;
|
||||
QPushButton *m_btCancel;
|
||||
QLineEdit *m_edPassword;
|
||||
QLabel *m_lbPassword;
|
||||
QLabel *m_lbFile;
|
||||
QLabel *m_lbFilename;
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
65
kpasman/api/krc2_h.html
Normal file
65
kpasman/api/krc2_h.html
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: krc2.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: krc2.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
#ifndef _KRC2_H_
|
||||
#define _KRC2_H_
|
||||
|
||||
/* Header file for rc2 implementation by Matthew Palmer <mjp16@uow.edu.au> */
|
||||
|
||||
class Krc2
|
||||
{
|
||||
public:
|
||||
Krc2();
|
||||
~Krc2();
|
||||
|
||||
/* Externally worked functions */
|
||||
void rc2_expandkey(char key[], int length, int ekl);
|
||||
void rc2_encrypt(unsigned short *input);
|
||||
void rc2_decrypt(unsigned short *input);
|
||||
|
||||
private:
|
||||
/* The internals */
|
||||
void _rc2_mix(unsigned short *input);
|
||||
void _rc2_mash(unsigned short *input);
|
||||
void _rc2_rmix(unsigned short *input);
|
||||
void _rc2_rmash(unsigned short *input);
|
||||
int _rc2_pow(int base, int exponent);
|
||||
unsigned short _rc2_ror(unsigned short input, int places);
|
||||
unsigned short _rc2_rol(unsigned short input, int places);
|
||||
|
||||
};
|
||||
#endif // _KRC2_H_
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
93
kpasman/api/resource_h.html
Normal file
93
kpasman/api/resource_h.html
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Source: resource.h</TITLE>
|
||||
<META NAME="Generator" CONTENT="KDOC ">
|
||||
</HEAD>
|
||||
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
|
||||
<TABLE WIDTH="100%" BORDER="0">
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER="0">
|
||||
<TR><TD valign="top" align="left" cellspacing="10">
|
||||
<h1>Source: resource.h</h1>
|
||||
</TD>
|
||||
<TD valign="top" align="right" colspan="1"></TD></TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
<TABLE BORDER="0">
|
||||
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</small></TD></TR>
|
||||
<TR><TD><small><A HREF="header-list.html">Files</small></TD></TR>
|
||||
<TR><TD><small><A HREF="all-globals.html">Globals</small></TD></TR>
|
||||
<TR><TD><small><A HREF="hier.html">Hierarchy</small></TD></TR>
|
||||
<TR><TD><small><A HREF="index.html">Index</small></TD></TR>
|
||||
</TABLE></TD></TR></TABLE>
|
||||
<pre>
|
||||
|
||||
#ifndef RESOURCE_H
|
||||
#define RESOURCE_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// resource.h -- contains macros used for commands
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// COMMAND VALUES FOR MENUBAR AND TOOLBAR ENTRIES
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// File-menu entries
|
||||
#define ID_FILE_NEW_WINDOW 10010
|
||||
#define ID_FILE_NEW 10020
|
||||
#define ID_FILE_OPEN 10030
|
||||
#define ID_FILE_OPEN_RECENT 10040
|
||||
#define ID_FILE_CLOSE 10050
|
||||
|
||||
#define ID_FILE_SAVE 10060
|
||||
#define ID_FILE_SAVE_AS 10070
|
||||
|
||||
#define ID_FILE_QUIT 10090
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Edit-menu entries
|
||||
#define ID_EDIT_ADD 11010
|
||||
#define ID_EDIT_EDIT 11020
|
||||
#define ID_EDIT_DELETE 11030
|
||||
#define ID_EDIT_PASSWORD 11040
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// View-menu entries
|
||||
#define ID_VIEW_TOOLBAR 12010
|
||||
#define ID_VIEW_STATUSBAR 12020
|
||||
#define ID_VIEW_PASSWORDS 12030
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Window-menu entries
|
||||
#define ID_WINDOW_LOCK 13010
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Help-menu entries
|
||||
#define ID_HELP_CONTENTS 1002
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// General application values
|
||||
#define ID_STATUS_MSG 1001
|
||||
|
||||
#endif // RESOURCE_H
|
||||
|
||||
|
||||
</pre>
|
||||
<HR>
|
||||
<table>
|
||||
<tr><td><small>Generated by: tengel@bugsy on Thu Nov 18 10:33:52 199.</small></td></tr>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
5
kpasman/docs/Makefile.am
Normal file
5
kpasman/docs/Makefile.am
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
|
||||
SUBDIRS = en
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
370
kpasman/docs/Makefile.in
Normal file
370
kpasman/docs/Makefile.in
Normal file
|
|
@ -0,0 +1,370 @@
|
|||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ../..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_alias = @build_alias@
|
||||
build_triplet = @build@
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
target_alias = @target_alias@
|
||||
target_triplet = @target@
|
||||
CC = @CC@
|
||||
CPP = @CPP@
|
||||
CXX = @CXX@
|
||||
GLINC = @GLINC@
|
||||
GLLIB = @GLLIB@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
IDL = @IDL@
|
||||
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
|
||||
KDE_INCLUDES = @KDE_INCLUDES@
|
||||
KDE_LDFLAGS = @KDE_LDFLAGS@
|
||||
KDE_RPATH = @KDE_RPATH@
|
||||
LD = @LD@
|
||||
LIBCOMPAT = @LIBCOMPAT@
|
||||
LIBCRYPT = @LIBCRYPT@
|
||||
LIBDL = @LIBDL@
|
||||
LIBJPEG = @LIBJPEG@
|
||||
LIBMICO = @LIBMICO@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPNG = @LIBPNG@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBPYTHON = @LIBPYTHON@
|
||||
LIBQIMGIO = @LIBQIMGIO@
|
||||
LIBSOCKET = @LIBSOCKET@
|
||||
LIBTIFF = @LIBTIFF@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUCB = @LIBUCB@
|
||||
LIBUTIL = @LIBUTIL@
|
||||
LIBXDMCP = @LIBXDMCP@
|
||||
LIBZ = @LIBZ@
|
||||
LIB_KDECORE = @LIB_KDECORE@
|
||||
LIB_KDEUI = @LIB_KDEUI@
|
||||
LIB_KFILE = @LIB_KFILE@
|
||||
LIB_KFM = @LIB_KFM@
|
||||
LIB_KHTML = @LIB_KHTML@
|
||||
LIB_KHTMLW = @LIB_KHTMLW@
|
||||
LIB_KIMGIO = @LIB_KIMGIO@
|
||||
LIB_LIBS = @LIB_LIBS@
|
||||
LIB_QT = @LIB_QT@
|
||||
LIB_X11 = @LIB_X11@
|
||||
LN_S = @LN_S@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MICO_INCLUDES = @MICO_INCLUDES@
|
||||
MICO_LDFLAGS = @MICO_LDFLAGS@
|
||||
MOC = @MOC@
|
||||
MSGFMT = @MSGFMT@
|
||||
NM = @NM@
|
||||
PACKAGE = @PACKAGE@
|
||||
PAMINC = @PAMINC@
|
||||
PAMLIBPATHS = @PAMLIBPATHS@
|
||||
PAMLIBS = @PAMLIBS@
|
||||
PASSWDLIB = @PASSWDLIB@
|
||||
PYTHONINC = @PYTHONINC@
|
||||
PYTHONLIB = @PYTHONLIB@
|
||||
QT_INCLUDES = @QT_INCLUDES@
|
||||
QT_LDFLAGS = @QT_LDFLAGS@
|
||||
RANLIB = @RANLIB@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
XBINDIR = @XBINDIR@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XPMINC = @XPMINC@
|
||||
XPMLIB = @XPMLIB@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_INCLUDES = @X_INCLUDES@
|
||||
X_LDFLAGS = @X_LDFLAGS@
|
||||
X_SERVER = @X_SERVER@
|
||||
ac_xdmdir = @ac_xdmdir@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
install_root = @install_root@
|
||||
kde_appsdir = @kde_appsdir@
|
||||
kde_bindir = @kde_bindir@
|
||||
kde_cgidir = @kde_cgidir@
|
||||
kde_confdir = @kde_confdir@
|
||||
kde_datadir = @kde_datadir@
|
||||
kde_htmldir = @kde_htmldir@
|
||||
kde_icondir = @kde_icondir@
|
||||
kde_includes = @kde_includes@
|
||||
kde_libraries = @kde_libraries@
|
||||
kde_locale = @kde_locale@
|
||||
kde_mimedir = @kde_mimedir@
|
||||
kde_minidir = @kde_minidir@
|
||||
kde_partsdir = @kde_partsdir@
|
||||
kde_sounddir = @kde_sounddir@
|
||||
kde_toolbardir = @kde_toolbardir@
|
||||
kde_wallpaperdir = @kde_wallpaperdir@
|
||||
qt_includes = @qt_includes@
|
||||
qt_libraries = @qt_libraries@
|
||||
x_includes = @x_includes@
|
||||
x_libraries = @x_libraries@
|
||||
xdmconfigsubdir = @xdmconfigsubdir@
|
||||
|
||||
SUBDIRS = en
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = gtar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps kpasman/docs/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
all-recursive install-data-recursive install-exec-recursive \
|
||||
installdirs-recursive install-recursive uninstall-recursive \
|
||||
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||
dot_seen=no; \
|
||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
rev="$$subdir $$rev"; \
|
||||
test "$$subdir" = "." && dot_seen=yes; \
|
||||
done; \
|
||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = kpasman/docs
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
for subdir in $(SUBDIRS); do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d $(distdir)/$$subdir \
|
||||
|| mkdir $(distdir)/$$subdir \
|
||||
|| exit 1; \
|
||||
chmod 777 $(distdir)/$$subdir; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
info-am:
|
||||
info: info-recursive
|
||||
dvi-am:
|
||||
dvi: dvi-recursive
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
installcheck-am:
|
||||
installcheck: installcheck-recursive
|
||||
install-exec-am:
|
||||
install-exec: install-exec-recursive
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-recursive
|
||||
uninstall-am:
|
||||
uninstall: uninstall-recursive
|
||||
all-am: Makefile
|
||||
all-redirect: all-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-tags mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
clean-am: clean-tags clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-recursive
|
||||
|
||||
distclean-am: distclean-tags distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-recursive
|
||||
|
||||
maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
|
||||
distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
|
||||
.PHONY: install-data-recursive uninstall-data-recursive \
|
||||
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
||||
uninstalldirs-recursive all-recursive check-recursive \
|
||||
installcheck-recursive info-recursive dvi-recursive \
|
||||
mostlyclean-recursive distclean-recursive clean-recursive \
|
||||
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||
install-exec install-data-am install-data install-am install \
|
||||
uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
31
kpasman/docs/en/Makefile.am
Normal file
31
kpasman/docs/en/Makefile.am
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
|
||||
|
||||
EXTRA_DIST = index-1.html index-2.html index-3.html index-4.html index-5.html index-6.html index.html
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-1.html $(kde_htmldir)/en/kpasman/index-1.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-2.html $(kde_htmldir)/en/kpasman/index-2.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-3.html $(kde_htmldir)/en/kpasman/index-3.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-4.html $(kde_htmldir)/en/kpasman/index-4.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-5.html $(kde_htmldir)/en/kpasman/index-5.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-6.html $(kde_htmldir)/en/kpasman/index-6.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index.html $(kde_htmldir)/en/kpasman/index.html
|
||||
|
||||
uninstall-local:
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-1.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-2.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-3.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-4.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-5.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-6.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index.html
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
291
kpasman/docs/en/Makefile.in
Normal file
291
kpasman/docs/en/Makefile.in
Normal file
|
|
@ -0,0 +1,291 @@
|
|||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ../../..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_alias = @build_alias@
|
||||
build_triplet = @build@
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
target_alias = @target_alias@
|
||||
target_triplet = @target@
|
||||
CC = @CC@
|
||||
CPP = @CPP@
|
||||
CXX = @CXX@
|
||||
GLINC = @GLINC@
|
||||
GLLIB = @GLLIB@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
IDL = @IDL@
|
||||
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
|
||||
KDE_INCLUDES = @KDE_INCLUDES@
|
||||
KDE_LDFLAGS = @KDE_LDFLAGS@
|
||||
KDE_RPATH = @KDE_RPATH@
|
||||
LD = @LD@
|
||||
LIBCOMPAT = @LIBCOMPAT@
|
||||
LIBCRYPT = @LIBCRYPT@
|
||||
LIBDL = @LIBDL@
|
||||
LIBJPEG = @LIBJPEG@
|
||||
LIBMICO = @LIBMICO@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPNG = @LIBPNG@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBPYTHON = @LIBPYTHON@
|
||||
LIBQIMGIO = @LIBQIMGIO@
|
||||
LIBSOCKET = @LIBSOCKET@
|
||||
LIBTIFF = @LIBTIFF@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUCB = @LIBUCB@
|
||||
LIBUTIL = @LIBUTIL@
|
||||
LIBXDMCP = @LIBXDMCP@
|
||||
LIBZ = @LIBZ@
|
||||
LIB_KDECORE = @LIB_KDECORE@
|
||||
LIB_KDEUI = @LIB_KDEUI@
|
||||
LIB_KFILE = @LIB_KFILE@
|
||||
LIB_KFM = @LIB_KFM@
|
||||
LIB_KHTML = @LIB_KHTML@
|
||||
LIB_KHTMLW = @LIB_KHTMLW@
|
||||
LIB_KIMGIO = @LIB_KIMGIO@
|
||||
LIB_LIBS = @LIB_LIBS@
|
||||
LIB_QT = @LIB_QT@
|
||||
LIB_X11 = @LIB_X11@
|
||||
LN_S = @LN_S@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MICO_INCLUDES = @MICO_INCLUDES@
|
||||
MICO_LDFLAGS = @MICO_LDFLAGS@
|
||||
MOC = @MOC@
|
||||
MSGFMT = @MSGFMT@
|
||||
NM = @NM@
|
||||
PACKAGE = @PACKAGE@
|
||||
PAMINC = @PAMINC@
|
||||
PAMLIBPATHS = @PAMLIBPATHS@
|
||||
PAMLIBS = @PAMLIBS@
|
||||
PASSWDLIB = @PASSWDLIB@
|
||||
PYTHONINC = @PYTHONINC@
|
||||
PYTHONLIB = @PYTHONLIB@
|
||||
QT_INCLUDES = @QT_INCLUDES@
|
||||
QT_LDFLAGS = @QT_LDFLAGS@
|
||||
RANLIB = @RANLIB@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
XBINDIR = @XBINDIR@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XPMINC = @XPMINC@
|
||||
XPMLIB = @XPMLIB@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_INCLUDES = @X_INCLUDES@
|
||||
X_LDFLAGS = @X_LDFLAGS@
|
||||
X_SERVER = @X_SERVER@
|
||||
ac_xdmdir = @ac_xdmdir@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
install_root = @install_root@
|
||||
kde_appsdir = @kde_appsdir@
|
||||
kde_bindir = @kde_bindir@
|
||||
kde_cgidir = @kde_cgidir@
|
||||
kde_confdir = @kde_confdir@
|
||||
kde_datadir = @kde_datadir@
|
||||
kde_htmldir = @kde_htmldir@
|
||||
kde_icondir = @kde_icondir@
|
||||
kde_includes = @kde_includes@
|
||||
kde_libraries = @kde_libraries@
|
||||
kde_locale = @kde_locale@
|
||||
kde_mimedir = @kde_mimedir@
|
||||
kde_minidir = @kde_minidir@
|
||||
kde_partsdir = @kde_partsdir@
|
||||
kde_sounddir = @kde_sounddir@
|
||||
kde_toolbardir = @kde_toolbardir@
|
||||
kde_wallpaperdir = @kde_wallpaperdir@
|
||||
qt_includes = @qt_includes@
|
||||
qt_libraries = @qt_libraries@
|
||||
x_includes = @x_includes@
|
||||
x_libraries = @x_libraries@
|
||||
xdmconfigsubdir = @xdmconfigsubdir@
|
||||
|
||||
EXTRA_DIST = index-1.html index-2.html index-3.html index-4.html index-5.html index-6.html index.html
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../../../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = gtar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps kpasman/docs/en/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = kpasman/docs/en
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am:
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am: install-data-local
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-local
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
installdirs:
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
|
||||
installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-local install-data-am install-data install-am install \
|
||||
uninstall-local uninstall-am uninstall all-redirect all-am all \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-1.html $(kde_htmldir)/en/kpasman/index-1.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-2.html $(kde_htmldir)/en/kpasman/index-2.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-3.html $(kde_htmldir)/en/kpasman/index-3.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-4.html $(kde_htmldir)/en/kpasman/index-4.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-5.html $(kde_htmldir)/en/kpasman/index-5.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index-6.html $(kde_htmldir)/en/kpasman/index-6.html
|
||||
$(mkinstalldirs) $(kde_htmldir)/en/kpasman/
|
||||
$(INSTALL_DATA) index.html $(kde_htmldir)/en/kpasman/index.html
|
||||
|
||||
uninstall-local:
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-1.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-2.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-3.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-4.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-5.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index-6.html
|
||||
-rm -f $(kde_htmldir)/en/kpasman/index.html
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
45
kpasman/docs/en/index-1.html
Normal file
45
kpasman/docs/en/index-1.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Kpasman Handbook: Introduction</TITLE>
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-2.html">Next</A>
|
||||
Previous <A HREF="index.html#toc1">Table of Contents</A>
|
||||
</P>
|
||||
<H3><A NAME="s1">1. Introduction</A></H3>
|
||||
|
||||
<P>Kpasman is a small password manager for the K Desktop Environment, influenced
|
||||
greatly by `gpasman`, found at http://gpasman.nl.linux.org. Following the
|
||||
file format of gpasman, you can open and save the rc2-encrypted data files
|
||||
from either program transparently.
|
||||
<P>
|
||||
<H3><A NAME="ss1.1">1.1 Changes</A>
|
||||
</H3>
|
||||
|
||||
<P>1999-10-03 Troy Engel [tengel@sonic.net]
|
||||
<P>* Kpasman 0.1 released
|
||||
<P>
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-2.html">Next</A>
|
||||
Previous <A HREF="index.html#toc1">Table of Contents</A>
|
||||
</P>
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
83
kpasman/docs/en/index-2.html
Normal file
83
kpasman/docs/en/index-2.html
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Kpasman Handbook: Installation</TITLE>
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-3.html">Next</A>
|
||||
<A HREF="index-1.html">Previous</A>
|
||||
<A HREF="index.html#toc2">Table of Contents</A>
|
||||
</P>
|
||||
<H3><A NAME="s2">2. Installation</A></H3>
|
||||
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss2.1">2.1 How to obtain KPasman</A>
|
||||
</H3>
|
||||
|
||||
<P>You can download the latest version of Kpasman from the hompage located at:
|
||||
<P>
|
||||
<A HREF="http://www.sonic.net/~tengel/kpasman">http://www.sonic.net/~tengel/kpasman</A><P>
|
||||
<H3><A NAME="ss2.2">2.2 Requirements</A>
|
||||
</H3>
|
||||
|
||||
<P>In order to successfully compile und use Kpasman, you need following
|
||||
programs and libraries:
|
||||
<P>
|
||||
<UL>
|
||||
<LI>g++ 2.8/egcs 1.0.3 (or compatible)</LI>
|
||||
<LI>GNU make</LI>
|
||||
<LI>perl 5.004</LI>
|
||||
<LI>autoconf 2.12</LI>
|
||||
<LI>automake 1.4</LI>
|
||||
<LI>Qt 1.44 NOT Qt 2.0</LI>
|
||||
<LI>KDE 1.1.2</LI>
|
||||
</UL>
|
||||
<P>
|
||||
<H3><A NAME="ss2.3">2.3 Compilation and installation</A>
|
||||
</H3>
|
||||
|
||||
<P>In order to compile and install KPasman on your system, type the following in
|
||||
the base directory of the KPasman distribution:
|
||||
<P>
|
||||
<BLOCKQUOTE><CODE>
|
||||
<PRE>
|
||||
% ./configure
|
||||
% make
|
||||
% make install
|
||||
</PRE>
|
||||
</CODE></BLOCKQUOTE>
|
||||
<P>
|
||||
<P>Since KPasman uses
|
||||
<PRE>
|
||||
autoconf
|
||||
</PRE>
|
||||
you should have not trouble
|
||||
compiling it.
|
||||
Should you run into problems please report them to the the author at
|
||||
<A HREF="mailto:tengel@sonic.net">Troy Engel</A><P>
|
||||
<P>
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-3.html">Next</A>
|
||||
<A HREF="index-1.html">Previous</A>
|
||||
<A HREF="index.html#toc2">Table of Contents</A>
|
||||
</P>
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
44
kpasman/docs/en/index-3.html
Normal file
44
kpasman/docs/en/index-3.html
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Kpasman Handbook: Usage</TITLE>
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-4.html">Next</A>
|
||||
<A HREF="index-2.html">Previous</A>
|
||||
<A HREF="index.html#toc3">Table of Contents</A>
|
||||
</P>
|
||||
<H3><A NAME="s3">3. Usage</A></H3>
|
||||
|
||||
<P>
|
||||
<P>
|
||||
<H3><A NAME="ss3.1">3.1 General Usage</A>
|
||||
</H3>
|
||||
|
||||
<P>
|
||||
<P>
|
||||
<P>
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-4.html">Next</A>
|
||||
<A HREF="index-2.html">Previous</A>
|
||||
<A HREF="index.html#toc3">Table of Contents</A>
|
||||
</P>
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
38
kpasman/docs/en/index-4.html
Normal file
38
kpasman/docs/en/index-4.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Kpasman Handbook: Another Section</TITLE>
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-5.html">Next</A>
|
||||
<A HREF="index-3.html">Previous</A>
|
||||
<A HREF="index.html#toc4">Table of Contents</A>
|
||||
</P>
|
||||
<H3><A NAME="s4">4. Another Section</A></H3>
|
||||
|
||||
<P>
|
||||
<P>
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-5.html">Next</A>
|
||||
<A HREF="index-3.html">Previous</A>
|
||||
<A HREF="index.html#toc4">Table of Contents</A>
|
||||
</P>
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
38
kpasman/docs/en/index-5.html
Normal file
38
kpasman/docs/en/index-5.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Kpasman Handbook: Questions and Answers</TITLE>
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-6.html">Next</A>
|
||||
<A HREF="index-4.html">Previous</A>
|
||||
<A HREF="index.html#toc5">Table of Contents</A>
|
||||
</P>
|
||||
<H3><A NAME="s5">5. Questions and Answers</A></H3>
|
||||
|
||||
<P>
|
||||
<P>
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-6.html">Next</A>
|
||||
<A HREF="index-4.html">Previous</A>
|
||||
<A HREF="index.html#toc5">Table of Contents</A>
|
||||
</P>
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
49
kpasman/docs/en/index-6.html
Normal file
49
kpasman/docs/en/index-6.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Kpasman Handbook: Copyright</TITLE>
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
Next <A HREF="index-5.html">Previous</A>
|
||||
<A HREF="index.html#toc6">Table of Contents</A>
|
||||
</P>
|
||||
<H3><A NAME="s6">6. Copyright</A></H3>
|
||||
|
||||
<P>
|
||||
<P>Kpasman Copyright 1999 Troy Engel [tengel@sonic.net]
|
||||
<P>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.
|
||||
<P>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.
|
||||
<P>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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
<P>
|
||||
<P>
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
Next <A HREF="index-5.html">Previous</A>
|
||||
<A HREF="index.html#toc6">Table of Contents</A>
|
||||
</P>
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
67
kpasman/docs/en/index.html
Normal file
67
kpasman/docs/en/index.html
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>The Kpasman Handbook</TITLE>
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-1.html">Next</A>
|
||||
Previous Table of Contents</P>
|
||||
<H1>The Kpasman Handbook</H1>
|
||||
|
||||
<SMALL><I>
|
||||
Troy Engel
|
||||
<A HREF="mailto:tengel@sonic.net"><tengel@sonic.net></A></I></SMALL>
|
||||
<BR><I><SMALL>Version 0.1 , Sun Oct 03 18:18:08 PDT 1999</SMALL></I><BR>
|
||||
<P><HR>
|
||||
<EM>This Handbook describes Kpasman, a small password manager for KDE</EM>
|
||||
<HR>
|
||||
<P>
|
||||
<H2><A NAME="toc1">1.</A> <A HREF="index-1.html">Introduction</A></H2>
|
||||
|
||||
<UL>
|
||||
<LI><A HREF="index-1.html#ss1.1">1.1 Changes</A>
|
||||
</UL>
|
||||
<P>
|
||||
<H2><A NAME="toc2">2.</A> <A HREF="index-2.html">Installation</A></H2>
|
||||
|
||||
<UL>
|
||||
<LI><A HREF="index-2.html#ss2.1">2.1 How to obtain KPasman</A>
|
||||
<LI><A HREF="index-2.html#ss2.2">2.2 Requirements</A>
|
||||
<LI><A HREF="index-2.html#ss2.3">2.3 Compilation and installation</A>
|
||||
</UL>
|
||||
<P>
|
||||
<H2><A NAME="toc3">3.</A> <A HREF="index-3.html">Usage</A></H2>
|
||||
|
||||
<UL>
|
||||
<LI><A HREF="index-3.html#ss3.1">3.1 General Usage</A>
|
||||
</UL>
|
||||
<P>
|
||||
<H2><A NAME="toc4">4.</A> <A HREF="index-4.html">Another Section</A></H2>
|
||||
|
||||
<P>
|
||||
<H2><A NAME="toc5">5.</A> <A HREF="index-5.html">Questions and Answers</A></H2>
|
||||
|
||||
<P>
|
||||
<H2><A NAME="toc6">6.</A> <A HREF="index-6.html">Copyright</A></H2>
|
||||
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<A HREF="index-1.html">Next</A>
|
||||
Previous Table of Contents</P>
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
21
kpasman/docs/en/index.nif
Normal file
21
kpasman/docs/en/index.nif
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<--A-->
|
||||
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<META NAME="keywords" CONTENT="">
|
||||
<META NAME="description" CONTENT="">
|
||||
<--B-->
|
||||
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" >
|
||||
<FONT FACE="Helvetica">
|
||||
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.png" BORDER="0" ALT="The K Desktop Environment"></A>
|
||||
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>
|
||||
|
||||
<--C-->
|
||||
<CENTER>
|
||||
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
|
||||
<--BarTags1-->
|
||||
<P ALIGN="RIGHT">
|
||||
|
||||
<--BarTags2-->
|
||||
</P>
|
||||
103
kpasman/docs/en/index.sgml
Normal file
103
kpasman/docs/en/index.sgml
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
|
||||
<!doctype linuxdoc system>
|
||||
<article>
|
||||
<title>The Kpasman Handbook
|
||||
<author>Troy Engel <htmlurl url="mailto:tengel@sonic.net" name = "<tengel@sonic.net>">
|
||||
<date>Version 0.1 , Sun Oct 03 18:18:08 PDT 1999
|
||||
<abstract>
|
||||
This Handbook describes Kpasman, a small password manager for KDE
|
||||
</abstract>
|
||||
|
||||
<toc>
|
||||
|
||||
<sect>Introduction
|
||||
<p>
|
||||
Kpasman is a small password manager for the K Desktop Environment, influenced
|
||||
greatly by `gpasman`, found at http://gpasman.nl.linux.org. Following the
|
||||
file format of gpasman, you can open and save the rc2-encrypted data files
|
||||
from either program transparently.
|
||||
|
||||
<sect1>Changes
|
||||
<p>
|
||||
1999-10-03 Troy Engel [tengel@sonic.net]<p>
|
||||
* Kpasman 0.1 released
|
||||
|
||||
<sect>Installation
|
||||
<p>
|
||||
|
||||
<sect1>How to obtain KPasman
|
||||
<p>
|
||||
You can download the latest version of Kpasman from the hompage located at:
|
||||
|
||||
<htmlurl url="http://www.sonic.net/~tengel/kpasman" name = "http://www.sonic.net/~tengel/kpasman">
|
||||
|
||||
<sect1>Requirements
|
||||
<p>
|
||||
In order to successfully compile und use Kpasman, you need following
|
||||
programs and libraries:
|
||||
|
||||
<itemize>
|
||||
<item>g++ 2.8/egcs 1.0.3 (or compatible)
|
||||
<item>GNU make
|
||||
<item>perl 5.004
|
||||
<item>autoconf 2.12
|
||||
<item>automake 1.4
|
||||
<item>Qt 1.44 NOT Qt 2.0
|
||||
<item>KDE 1.1.2
|
||||
</itemize>
|
||||
|
||||
<sect1>Compilation and installation
|
||||
<p>
|
||||
In order to compile and install KPasman on your system, type the following in
|
||||
the base directory of the KPasman distribution:
|
||||
|
||||
<tscreen><verb>
|
||||
% ./configure
|
||||
% make
|
||||
% make install
|
||||
</verb></tscreen>
|
||||
|
||||
<p>
|
||||
Since KPasman uses <verb>autoconf</verb> you should have not trouble
|
||||
compiling it.
|
||||
Should you run into problems please report them to the the author at
|
||||
<htmlurl url="mailto:tengel@sonic.net" name = "Troy Engel">
|
||||
|
||||
|
||||
<sect> Usage
|
||||
<p>
|
||||
|
||||
<sect1> General Usage
|
||||
<p>
|
||||
|
||||
|
||||
<sect> Another Section
|
||||
<p>
|
||||
|
||||
<sect>Questions and Answers
|
||||
<p>
|
||||
|
||||
<sect> Copyright
|
||||
<p>
|
||||
|
||||
Kpasman Copyright 1999 Troy Engel [tengel@sonic.net]
|
||||
|
||||
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
<p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
BIN
kpasman/docs/en/logotp3.png
Normal file
BIN
kpasman/docs/en/logotp3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
176
kpasman/kpasentry.kdevdlg
Normal file
176
kpasman/kpasentry.kdevdlg
Normal file
|
|
@ -0,0 +1,176 @@
|
|||
// KDevelop Dialog Editor File (.kdevdlg)
|
||||
//
|
||||
// Created by KDlgEdit Version 0.1alpha (C) 1999 by Pascal Krahmer
|
||||
// Get KDevelop including KDlgEdit at "www.beast.de/kdevelop"
|
||||
//
|
||||
data Information
|
||||
{
|
||||
Filename="/home/troy/kpasman/kpasman/kpasentry.kdevdlg"
|
||||
KDevelopVersion="0.4"
|
||||
DlgEditVersion="0.1alpha"
|
||||
LastChanged="Tue Sep 28 19:49:13 1999"
|
||||
}
|
||||
|
||||
data SessionManagement
|
||||
{
|
||||
OpenedRoot_1="Geometry"
|
||||
OpenedRoot_2="Appearance"
|
||||
OpenedRoot_3="C++ Code"
|
||||
OpenedRoot_4="General"
|
||||
OpenedRootCount="4"
|
||||
}
|
||||
|
||||
item QWidget
|
||||
{
|
||||
Name="EntryDlg"
|
||||
VarName="this"
|
||||
X="0"
|
||||
Y="0"
|
||||
Width="270"
|
||||
Height="330"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
|
||||
item QGroupBox
|
||||
{
|
||||
Name="gbMain"
|
||||
VarName="m_bgMain"
|
||||
X="10"
|
||||
Y="10"
|
||||
Width="250"
|
||||
Height="270"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbLocation"
|
||||
VarName="m_lbLocation"
|
||||
X="20"
|
||||
Y="20"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Location:"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edLocation"
|
||||
VarName="m_edLocation"
|
||||
X="20"
|
||||
Y="50"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbUsername"
|
||||
VarName="m_lbUsername"
|
||||
X="20"
|
||||
Y="80"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Username:"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edUsername"
|
||||
VarName="m_edUsername"
|
||||
X="20"
|
||||
Y="110"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbPassword"
|
||||
VarName="m_lbPassword"
|
||||
X="20"
|
||||
Y="140"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Password:"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edPassword"
|
||||
VarName="m_edPassword"
|
||||
X="20"
|
||||
Y="170"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbComment"
|
||||
VarName="m_lbComment"
|
||||
X="20"
|
||||
Y="200"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Comment:"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edComment"
|
||||
VarName="m_edComment"
|
||||
X="20"
|
||||
Y="230"
|
||||
Width="230"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QPushButton
|
||||
{
|
||||
Name="btOK"
|
||||
VarName="m_btOK"
|
||||
X="20"
|
||||
Y="290"
|
||||
Width="100"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="OK"
|
||||
isDefault="true"
|
||||
}
|
||||
|
||||
item QPushButton
|
||||
{
|
||||
Name="btCancel"
|
||||
VarName="m_btCancel"
|
||||
X="150"
|
||||
Y="290"
|
||||
Width="100"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Cancel"
|
||||
}
|
||||
}
|
||||
45
kpasman/kpasentrydlg.cpp
Normal file
45
kpasman/kpasentrydlg.cpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/***************************************************************************
|
||||
kpasentrydlg.cpp - description
|
||||
-------------------
|
||||
begin : Tue Sep 21 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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 "kpasentrydlg.h"
|
||||
|
||||
KpasentryDlg::KpasentryDlg(QWidget *parent, const char *name) : QDialog(parent,name,true){
|
||||
initDialog();
|
||||
connect(m_btOK, SIGNAL(clicked()), SLOT(accept()));
|
||||
connect(m_btCancel, SIGNAL(clicked()), SLOT(reject()));
|
||||
|
||||
m_edLocation->setFocus();
|
||||
}
|
||||
|
||||
KpasentryDlg::~KpasentryDlg(){
|
||||
}
|
||||
|
||||
void KpasentryDlg::getData(QString& location, QString& username, QString& password, QString& comment)
|
||||
{
|
||||
location = m_edLocation->text();
|
||||
username = m_edUsername->text();
|
||||
password = m_edPassword->text();
|
||||
comment = m_edComment->text();
|
||||
}
|
||||
|
||||
void KpasentryDlg::setData(QString location, QString username, QString password, QString comment)
|
||||
{
|
||||
m_edLocation->setText(location);
|
||||
m_edUsername->setText(username);
|
||||
m_edPassword->setText(password);
|
||||
m_edComment->setText(comment);
|
||||
}
|
||||
70
kpasman/kpasentrydlg.h
Normal file
70
kpasman/kpasentrydlg.h
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
/***************************************************************************
|
||||
kpasentrydlg.h - description
|
||||
-------------------
|
||||
begin : Tue Sep 21 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef KPASENTRYDLG_H
|
||||
#define KPASENTRYDLG_H
|
||||
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
#include <qwidget.h>
|
||||
#include <qgroupbox.h>
|
||||
#include <qlabel.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qpushbutton.h>
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
#include <qdialog.h>
|
||||
|
||||
/**
|
||||
*@author Troy Engel
|
||||
*/
|
||||
|
||||
class KpasentryDlg : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
KpasentryDlg(QWidget *parent=0, const char *name=0);
|
||||
~KpasentryDlg();
|
||||
|
||||
/** a way to retrieve our dialog data */
|
||||
void getData(QString& location, QString& username, QString& password, QString& comment);
|
||||
/** a way to set our dialog data */
|
||||
void setData(QString location, QString username, QString password, QString comment);
|
||||
|
||||
protected:
|
||||
void initDialog();
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
QGroupBox *m_bgMain;
|
||||
QLabel *m_lbLocation;
|
||||
QLineEdit *m_edLocation;
|
||||
QLabel *m_lbUsername;
|
||||
QLineEdit *m_edUsername;
|
||||
QLabel *m_lbPassword;
|
||||
QLineEdit *m_edPassword;
|
||||
QLabel *m_lbComment;
|
||||
QLineEdit *m_edComment;
|
||||
QPushButton *m_btOK;
|
||||
QPushButton *m_btCancel;
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
67
kpasman/kpasentrydlgdata.cpp
Normal file
67
kpasman/kpasentrydlgdata.cpp
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
/**********************************************************************
|
||||
--- KDevelop (KDlgEdit) generated file ---
|
||||
|
||||
Last generated: Tue Sep 21 22:31:44 1999
|
||||
|
||||
DO NOT EDIT!!! This file will be automatically
|
||||
regenerated by KDevelop. All changes will be lost.
|
||||
|
||||
**********************************************************************/
|
||||
#include <kapp.h>
|
||||
#include "kpasentrydlg.h"
|
||||
|
||||
void KpasentryDlg::initDialog(){
|
||||
this->setGeometry(0,0,270,330);
|
||||
this->setMinimumSize(0,0);
|
||||
m_bgMain= new QGroupBox(this,"gbMain");
|
||||
m_bgMain->setGeometry(10,10,250,270);
|
||||
m_bgMain->setMinimumSize(0,0);
|
||||
|
||||
m_lbLocation= new QLabel(this,"lbLocation");
|
||||
m_lbLocation->setGeometry(20,20,100,30);
|
||||
m_lbLocation->setMinimumSize(0,0);
|
||||
m_lbLocation->setText(i18n("Location:"));
|
||||
|
||||
m_edLocation= new QLineEdit(this,"edLocation");
|
||||
m_edLocation->setGeometry(20,50,230,30);
|
||||
m_edLocation->setMinimumSize(0,0);
|
||||
|
||||
m_lbUsername= new QLabel(this,"lbUsername");
|
||||
m_lbUsername->setGeometry(20,80,100,30);
|
||||
m_lbUsername->setMinimumSize(0,0);
|
||||
m_lbUsername->setText(i18n("Username:"));
|
||||
|
||||
m_edUsername= new QLineEdit(this,"edUsername");
|
||||
m_edUsername->setGeometry(20,110,230,30);
|
||||
m_edUsername->setMinimumSize(0,0);
|
||||
|
||||
m_lbPassword= new QLabel(this,"lbPassword");
|
||||
m_lbPassword->setGeometry(20,140,100,30);
|
||||
m_lbPassword->setMinimumSize(0,0);
|
||||
m_lbPassword->setText(i18n("Password:"));
|
||||
|
||||
m_edPassword= new QLineEdit(this,"edPassword");
|
||||
m_edPassword->setGeometry(20,170,230,30);
|
||||
m_edPassword->setMinimumSize(0,0);
|
||||
|
||||
m_lbComment= new QLabel(this,"lbComment");
|
||||
m_lbComment->setGeometry(20,200,100,30);
|
||||
m_lbComment->setMinimumSize(0,0);
|
||||
m_lbComment->setText(i18n("Comment:"));
|
||||
|
||||
m_edComment= new QLineEdit(this,"edComment");
|
||||
m_edComment->setGeometry(20,230,230,30);
|
||||
m_edComment->setMinimumSize(0,0);
|
||||
|
||||
m_btOK= new QPushButton(this,"btOK");
|
||||
m_btOK->setGeometry(20,290,100,30);
|
||||
m_btOK->setMinimumSize(0,0);
|
||||
m_btOK->setText(i18n("OK"));
|
||||
m_btOK->setDefault(true);
|
||||
|
||||
m_btCancel= new QPushButton(this,"btCancel");
|
||||
m_btCancel->setGeometry(150,290,100,30);
|
||||
m_btCancel->setMinimumSize(0,0);
|
||||
m_btCancel->setText(i18n("Cancel"));
|
||||
|
||||
}
|
||||
723
kpasman/kpasman.cpp
Normal file
723
kpasman/kpasman.cpp
Normal file
|
|
@ -0,0 +1,723 @@
|
|||
|
||||
// include files for QT
|
||||
#include <qdir.h>
|
||||
#include <qstrlist.h>
|
||||
#include <qpainter.h>
|
||||
|
||||
// include files for KDE
|
||||
#include <kiconloader.h>
|
||||
#include <kmsgbox.h>
|
||||
#include <kfiledialog.h>
|
||||
|
||||
// application specific includes
|
||||
#include <kpasman.h>
|
||||
#include "kpasmanview.h"
|
||||
#include "kpasmandoc.h"
|
||||
#include "resource.h"
|
||||
|
||||
|
||||
KpasmanApp::KpasmanApp()
|
||||
{
|
||||
config=kapp->getConfig();
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// call inits to invoke all other construction parts
|
||||
initMenuBar();
|
||||
initToolBar();
|
||||
initStatusBar();
|
||||
initKeyAccel();
|
||||
initDocument();
|
||||
initView();
|
||||
|
||||
readOptions();
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// disable menu and toolbar items at startup
|
||||
disableCommand(ID_FILE_SAVE);
|
||||
disableCommand(ID_FILE_SAVE_AS);
|
||||
|
||||
disableCommand(ID_EDIT_EDIT);
|
||||
disableCommand(ID_EDIT_DELETE);
|
||||
}
|
||||
|
||||
KpasmanApp::~KpasmanApp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void KpasmanApp::initKeyAccel()
|
||||
{
|
||||
key_accel = new KAccel( this );
|
||||
|
||||
// file_menu accelerators
|
||||
key_accel->connectItem( KAccel::New, this, SLOT( slotFileNew() ) );
|
||||
key_accel->connectItem( KAccel::Open, this, SLOT( slotFileOpen() ) );
|
||||
key_accel->connectItem( KAccel::Save, this, SLOT( slotFileSave() ) );
|
||||
key_accel->connectItem( KAccel::Close, this, SLOT( slotFileClose() ) );
|
||||
key_accel->connectItem( KAccel::Quit, this, SLOT( slotFileQuit() ) );
|
||||
|
||||
key_accel->connectItem( KAccel::Help, kapp, SLOT( appHelpActivated() ) );
|
||||
|
||||
key_accel->changeMenuAccel( file_menu, ID_FILE_NEW, KAccel::New );
|
||||
key_accel->changeMenuAccel( file_menu, ID_FILE_OPEN, KAccel::Open );
|
||||
key_accel->changeMenuAccel( file_menu, ID_FILE_SAVE, KAccel::Save );
|
||||
key_accel->changeMenuAccel( file_menu, ID_FILE_CLOSE, KAccel::Close );
|
||||
key_accel->changeMenuAccel( file_menu, ID_FILE_QUIT, KAccel::Quit );
|
||||
|
||||
key_accel->readSettings();
|
||||
}
|
||||
|
||||
void KpasmanApp::initMenuBar()
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// MENUBAR
|
||||
recent_files_menu = new QPopupMenu();
|
||||
connect( recent_files_menu, SIGNAL(activated(int)), SLOT(slotFileOpenRecent(int)) );
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// menuBar entry file_menu
|
||||
file_menu = new QPopupMenu();
|
||||
file_menu->insertItem(i18n("New &Window"), ID_FILE_NEW_WINDOW );
|
||||
file_menu->insertSeparator();
|
||||
file_menu->insertItem(i18n("&New"), ID_FILE_NEW );
|
||||
file_menu->insertItem(i18n("&Open..."), ID_FILE_OPEN );
|
||||
file_menu->insertItem(i18n("Open &recent"), recent_files_menu, ID_FILE_OPEN_RECENT );
|
||||
|
||||
file_menu->insertItem(i18n("&Close"), ID_FILE_CLOSE );
|
||||
file_menu->insertSeparator();
|
||||
file_menu->insertItem(i18n("&Save"), ID_FILE_SAVE );
|
||||
file_menu->insertItem(i18n("Save &As..."), ID_FILE_SAVE_AS );
|
||||
file_menu->insertSeparator();
|
||||
file_menu->insertItem(i18n("&Quit"), ID_FILE_QUIT );
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// menuBar entry edit_menu
|
||||
edit_menu = new QPopupMenu();
|
||||
edit_menu->insertItem(i18n("&Add Entry..."), ID_EDIT_ADD );
|
||||
edit_menu->insertItem(i18n("&Edit Entry..."), ID_EDIT_EDIT );
|
||||
edit_menu->insertItem(i18n("&Delete Entry"), ID_EDIT_DELETE );
|
||||
edit_menu->insertSeparator();
|
||||
edit_menu->insertItem(i18n("&Change Password..."), ID_EDIT_PASSWORD );
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// menuBar entry view_menu
|
||||
view_menu = new QPopupMenu();
|
||||
view_menu->setCheckable(true);
|
||||
view_menu->insertItem(i18n("&Toolbar"), ID_VIEW_TOOLBAR);
|
||||
view_menu->insertItem(i18n("&Statusbar"), ID_VIEW_STATUSBAR );
|
||||
view_menu->insertSeparator();
|
||||
view_menu->insertItem(i18n("S&how Passwords"), ID_VIEW_PASSWORDS );
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// menuBar entry window_menu
|
||||
window_menu = new QPopupMenu();
|
||||
window_menu->insertItem(i18n("&Lock Window"), ID_WINDOW_LOCK);
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// menuBar entry help_menu
|
||||
QString aboutstring=kapp->appName()+" "+VERSION+"\n\n";
|
||||
|
||||
help_menu = new QPopupMenu();
|
||||
help_menu = kapp->getHelpMenu(true, aboutstring );
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// MENUBAR CONFIGURATION
|
||||
// insert your popup menus with the according menubar entries in the order
|
||||
// they will appear later from left to right
|
||||
menuBar()->insertItem(i18n("&File"), file_menu);
|
||||
menuBar()->insertItem(i18n("&Edit"), edit_menu);
|
||||
menuBar()->insertItem(i18n("&View"), view_menu);
|
||||
menuBar()->insertItem(i18n("&Window"), window_menu);
|
||||
|
||||
menuBar()->insertSeparator();
|
||||
menuBar()->insertItem(i18n("&Help"), help_menu);
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// CONNECT THE MENU SLOTS WITH SIGNALS
|
||||
// for execution slots and statusbar messages
|
||||
|
||||
connect(file_menu,SIGNAL(activated(int)),SLOT(commandCallback(int)));
|
||||
connect(file_menu,SIGNAL(highlighted(int)),SLOT(statusCallback(int)));
|
||||
|
||||
connect(edit_menu,SIGNAL(activated(int)),SLOT(commandCallback(int)));
|
||||
connect(edit_menu,SIGNAL(highlighted(int)),SLOT(statusCallback(int)));
|
||||
|
||||
connect(view_menu,SIGNAL(activated(int)),SLOT(commandCallback(int)));
|
||||
connect(view_menu,SIGNAL(highlighted(int)),SLOT(statusCallback(int)));
|
||||
|
||||
connect(window_menu,SIGNAL(activated(int)),SLOT(commandCallback(int)));
|
||||
connect(window_menu,SIGNAL(highlighted(int)),SLOT(statusCallback(int)));
|
||||
}
|
||||
|
||||
void KpasmanApp::initToolBar()
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// TOOLBAR
|
||||
toolBar()->insertButton(Icon("filenew.xpm"), ID_FILE_NEW, true, i18n("New File") );
|
||||
toolBar()->insertButton(Icon("fileopen.xpm"), ID_FILE_OPEN, true, i18n("Open File") );
|
||||
toolBar()->insertButton(Icon("filefloppy.xpm"), ID_FILE_SAVE, true, i18n("Save File") );
|
||||
toolBar()->insertSeparator();
|
||||
toolBar()->insertButton(Icon("help.xpm"), ID_HELP_CONTENTS, SIGNAL(clicked() ),
|
||||
kapp, SLOT( appHelpActivated() ), true,i18n("Help"));
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// INSERT YOUR APPLICATION SPECIFIC TOOLBARS HERE WITH toolBar(n)
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// CONNECT THE TOOLBAR SLOTS WITH SIGNALS - add new created toolbars by their according number
|
||||
// connect for invoking the slot actions
|
||||
connect(toolBar(), SIGNAL(clicked(int)), SLOT(commandCallback(int)));
|
||||
// connect for the status help on holing icons pressed with the mouse button
|
||||
connect(toolBar(), SIGNAL(pressed(int)), SLOT(statusCallback(int)));
|
||||
}
|
||||
|
||||
void KpasmanApp::initStatusBar()
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// STATUSBAR
|
||||
// TODO: add your own items you need for displaying current application status.
|
||||
statusBar()->insertItem(i18n("Ready."), ID_STATUS_MSG );
|
||||
}
|
||||
|
||||
void KpasmanApp::initDocument()
|
||||
{
|
||||
doc = new KpasmanDoc(this);
|
||||
doc->newDocument();
|
||||
|
||||
connect(doc, SIGNAL(docDirty(bool)), SLOT(slotUpdateDocMenu(bool)));
|
||||
}
|
||||
|
||||
void KpasmanApp::initView()
|
||||
{
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// create the main widget here that is managed by KTMainWindow's view-region and
|
||||
// connect the widget to your document to display document contents.
|
||||
|
||||
view = new KpasmanView(this);
|
||||
doc->addView(view);
|
||||
setView(view);
|
||||
QString caption=kapp->getCaption();
|
||||
setCaption(caption+": "+doc->getTitle());
|
||||
|
||||
connect(view, SIGNAL(selectionChanged(QListViewItem*)), SLOT(slotUpdateViewMenu(QListViewItem*)));
|
||||
}
|
||||
|
||||
void KpasmanApp::enableCommand(int id_)
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// enable menu and toolbar functions by their ID's
|
||||
menuBar()->setItemEnabled(id_,true);
|
||||
toolBar()->setItemEnabled(id_,true);
|
||||
}
|
||||
|
||||
void KpasmanApp::disableCommand(int id_)
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// disable menu and toolbar functions by their ID's
|
||||
menuBar()->setItemEnabled(id_,false);
|
||||
toolBar()->setItemEnabled(id_,false);
|
||||
}
|
||||
|
||||
void KpasmanApp::addRecentFile(const char* file)
|
||||
{
|
||||
if (recent_files.find(file) == -1) {
|
||||
if (recent_files.count() < 5)
|
||||
recent_files.insert(0,file);
|
||||
else {
|
||||
recent_files.remove(4);
|
||||
recent_files.insert(0,file);
|
||||
}
|
||||
recent_files_menu->clear();
|
||||
for ( int i =0 ; i < (int)recent_files.count(); i++) {
|
||||
recent_files_menu->insertItem(recent_files.at(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void KpasmanApp::openDocumentFile(const char* _cmdl)
|
||||
{
|
||||
slotStatusMsg(i18n("Opening file..."));
|
||||
doc->openDocument(_cmdl);
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
|
||||
KpasmanDoc* KpasmanApp::getDocument() const
|
||||
{
|
||||
return doc;
|
||||
}
|
||||
|
||||
void KpasmanApp::saveOptions()
|
||||
{
|
||||
config->setGroup("General Options");
|
||||
config->writeEntry("Geometry", size() );
|
||||
config->writeEntry("Show Toolbar", toolBar()->isVisible());
|
||||
config->writeEntry("Show Statusbar",statusBar()->isVisible());
|
||||
config->writeEntry("Show Passwords", !(view->isPasswordHidden()));
|
||||
config->writeEntry("MenuBarPos", (int)menuBar()->menuBarPos());
|
||||
config->writeEntry("ToolBarPos", (int)toolBar()->barPos());
|
||||
config->writeEntry("Recent Files", recent_files);
|
||||
}
|
||||
|
||||
|
||||
void KpasmanApp::readOptions()
|
||||
{
|
||||
|
||||
config->setGroup("General Options");
|
||||
|
||||
// password settings
|
||||
bool bViewPasswords = config->readBoolEntry("Show Passwords", true);
|
||||
view_menu->setItemChecked(ID_VIEW_PASSWORDS, bViewPasswords);
|
||||
view->hidePassword(!bViewPasswords);
|
||||
|
||||
// bar status settings
|
||||
bool bViewToolbar = config->readBoolEntry("Show Toolbar", true);
|
||||
view_menu->setItemChecked(ID_VIEW_TOOLBAR, bViewToolbar);
|
||||
if(!bViewToolbar)
|
||||
enableToolBar(KToolBar::Hide);
|
||||
|
||||
bool bViewStatusbar = config->readBoolEntry("Show Statusbar", true);
|
||||
view_menu->setItemChecked(ID_VIEW_STATUSBAR, bViewStatusbar);
|
||||
if(!bViewStatusbar)
|
||||
enableStatusBar(KStatusBar::Hide);
|
||||
|
||||
// bar position settings
|
||||
KMenuBar::menuPosition menu_bar_pos;
|
||||
menu_bar_pos=(KMenuBar::menuPosition)config->readNumEntry("MenuBarPos", KMenuBar::Top);
|
||||
|
||||
KToolBar::BarPosition tool_bar_pos;
|
||||
tool_bar_pos=(KToolBar::BarPosition)config->readNumEntry("ToolBarPos", KToolBar::Top);
|
||||
|
||||
menuBar()->setMenuBarPos(menu_bar_pos);
|
||||
toolBar()->setBarPos(tool_bar_pos);
|
||||
|
||||
// initialize the recent file list
|
||||
recent_files.setAutoDelete(TRUE);
|
||||
config->readListEntry("Recent Files",recent_files);
|
||||
|
||||
uint i;
|
||||
for ( i =0 ; i < recent_files.count(); i++){
|
||||
recent_files_menu->insertItem(recent_files.at(i));
|
||||
}
|
||||
|
||||
QSize size=config->readSizeEntry("Geometry");
|
||||
if(!size.isEmpty())
|
||||
resize(size);
|
||||
}
|
||||
|
||||
void KpasmanApp::saveProperties(KConfig* )
|
||||
{
|
||||
if( doc->getTitle() != i18n("Untitled") && !doc->isModified()){
|
||||
return;
|
||||
} else {
|
||||
QString filename=doc->getPathName()+doc->getTitle();
|
||||
config->writeEntry("filename",filename);
|
||||
config->writeEntry("modified",doc->isModified());
|
||||
|
||||
const char* tempname = kapp->tempSaveName(filename);
|
||||
doc->saveDocument(tempname);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void KpasmanApp::readProperties(KConfig*)
|
||||
{
|
||||
QString filename = config->readEntry("filename","");
|
||||
bool modified = config->readBoolEntry("modified",false);
|
||||
if( modified ){
|
||||
bool b_canRecover;
|
||||
QString tempname = kapp->checkRecoverFile(filename,b_canRecover);
|
||||
|
||||
if (b_canRecover) {
|
||||
doc->openDocument(tempname);
|
||||
doc->setModified();
|
||||
QFileInfo info(filename);
|
||||
doc->pathName(info.absFilePath());
|
||||
doc->title(info.fileName());
|
||||
QFile::remove(tempname);
|
||||
}
|
||||
} else if(!filename.isEmpty()) {
|
||||
doc->openDocument(filename);
|
||||
}
|
||||
QString caption=kapp->getCaption();
|
||||
setCaption(caption+": "+doc->getTitle());
|
||||
}
|
||||
|
||||
bool KpasmanApp::queryClose()
|
||||
{
|
||||
return doc->saveModified();
|
||||
}
|
||||
|
||||
bool KpasmanApp::queryExit()
|
||||
{
|
||||
saveOptions();
|
||||
return true;
|
||||
}
|
||||
|
||||
///////////////////////
|
||||
// helpers
|
||||
///////////////////////
|
||||
|
||||
void KpasmanApp::setModified(bool modified)
|
||||
{
|
||||
doc->setModified(modified);
|
||||
if (modified) {
|
||||
enableCommand(ID_FILE_SAVE);
|
||||
enableCommand(ID_FILE_SAVE_AS);
|
||||
} else {
|
||||
disableCommand(ID_FILE_SAVE);
|
||||
disableCommand(ID_FILE_SAVE_AS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// SLOT IMPLEMENTATION
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
||||
void KpasmanApp::slotFileNewWindow()
|
||||
{
|
||||
slotStatusMsg(i18n("Opening a new Application window..."));
|
||||
|
||||
KpasmanApp* new_window= new KpasmanApp();
|
||||
new_window->show();
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotFileNew()
|
||||
{
|
||||
slotStatusMsg(i18n("Creating new document..."));
|
||||
|
||||
if(!doc->saveModified())
|
||||
return;
|
||||
|
||||
doc->newDocument();
|
||||
QString caption=kapp->getCaption();
|
||||
setCaption(caption+": "+doc->getTitle());
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotFileOpen()
|
||||
{
|
||||
slotStatusMsg(i18n("Opening file..."));
|
||||
|
||||
if(!doc->saveModified())
|
||||
return;
|
||||
|
||||
QString fileToOpen=KFileDialog::getOpenFileName(QDir::homeDirPath(), "", this, i18n("Open File..."));
|
||||
if(!fileToOpen.isEmpty()){
|
||||
doc->openDocument(fileToOpen);
|
||||
QString caption=kapp->getCaption();
|
||||
setCaption(caption+": "+doc->getTitle());
|
||||
addRecentFile(fileToOpen);
|
||||
}
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotFileOpenRecent(int id_)
|
||||
{
|
||||
slotStatusMsg(i18n("Opening file..."));
|
||||
|
||||
if(!doc->saveModified())
|
||||
return;
|
||||
|
||||
doc->openDocument(recent_files.at(id_));
|
||||
QString caption=kapp->getCaption();
|
||||
setCaption(caption+": "+doc->getTitle());
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotFileSave()
|
||||
{
|
||||
slotStatusMsg(i18n("Saving file..."));
|
||||
|
||||
doc->saveDocument(doc->getPathName());
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotFileSaveAs()
|
||||
{
|
||||
slotStatusMsg(i18n("Saving file under new filename..."));
|
||||
|
||||
QString newName=KFileDialog::getSaveFileName(QDir::currentDirPath(), "", this, i18n("Save As..."));
|
||||
if(!newName.isEmpty()){
|
||||
QFileInfo saveAsInfo(newName);
|
||||
doc->title(saveAsInfo.fileName());
|
||||
doc->pathName(saveAsInfo.absFilePath());
|
||||
doc->saveDocument(newName);
|
||||
addRecentFile(newName);
|
||||
QString caption=kapp->getCaption();
|
||||
setCaption(caption+": "+doc->getTitle());
|
||||
}
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotFileClose()
|
||||
{
|
||||
slotStatusMsg(i18n("Closing file..."));
|
||||
|
||||
close();
|
||||
}
|
||||
|
||||
void KpasmanApp::slotFileQuit()
|
||||
{
|
||||
saveOptions();
|
||||
// close the first window, the list makes the next one the first again.
|
||||
// This ensures that queryClose() is called on each window to ask for closing
|
||||
KTMainWindow* w;
|
||||
if(memberList){
|
||||
for(w=memberList->first(); w; w=memberList->first()){
|
||||
// only close the window if the closeEvent is accepted. If the user presses Cancel on the saveModified() dialog,
|
||||
// the window and the application stay open.
|
||||
if(!w->close())
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void KpasmanApp::slotEditAdd()
|
||||
{
|
||||
view->addEntry();
|
||||
}
|
||||
|
||||
void KpasmanApp::slotEditEdit()
|
||||
{
|
||||
view->editEntry();
|
||||
}
|
||||
|
||||
void KpasmanApp::slotEditDelete()
|
||||
{
|
||||
view->deleteEntry();
|
||||
}
|
||||
|
||||
void KpasmanApp::slotEditPassword()
|
||||
{
|
||||
doc->changeDocPassword();
|
||||
}
|
||||
|
||||
void KpasmanApp::slotUpdateDocMenu(bool bdirty)
|
||||
{
|
||||
if (view->childCount() > 0) {
|
||||
enableCommand(ID_FILE_SAVE_AS);
|
||||
if (doc->isModified())
|
||||
enableCommand(ID_FILE_SAVE);
|
||||
else
|
||||
disableCommand(ID_FILE_SAVE);
|
||||
} else {
|
||||
disableCommand(ID_FILE_SAVE);
|
||||
disableCommand(ID_FILE_SAVE_AS);
|
||||
}
|
||||
}
|
||||
|
||||
void KpasmanApp::slotUpdateViewMenu(QListViewItem* item)
|
||||
{
|
||||
if (item != 0) {
|
||||
enableCommand(ID_EDIT_EDIT);
|
||||
enableCommand(ID_EDIT_DELETE);
|
||||
} else {
|
||||
disableCommand(ID_EDIT_EDIT);
|
||||
disableCommand(ID_EDIT_DELETE);
|
||||
}
|
||||
}
|
||||
|
||||
void KpasmanApp::slotViewToolBar()
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// turn Toolbar on or off
|
||||
if( view_menu->isItemChecked(ID_VIEW_TOOLBAR))
|
||||
view_menu->setItemChecked(ID_VIEW_TOOLBAR, false);
|
||||
else
|
||||
view_menu->setItemChecked(ID_VIEW_TOOLBAR, true);
|
||||
|
||||
enableToolBar();
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotViewStatusBar()
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
//turn Statusbar on or off
|
||||
if( view_menu->isItemChecked(ID_VIEW_STATUSBAR))
|
||||
view_menu->setItemChecked(ID_VIEW_STATUSBAR, false);
|
||||
else
|
||||
view_menu->setItemChecked(ID_VIEW_STATUSBAR, true);
|
||||
|
||||
enableStatusBar();
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotViewPasswords()
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
//turn Passwords on or off
|
||||
if( view_menu->isItemChecked(ID_VIEW_PASSWORDS))
|
||||
view_menu->setItemChecked(ID_VIEW_PASSWORDS, false);
|
||||
else
|
||||
view_menu->setItemChecked(ID_VIEW_PASSWORDS, true);
|
||||
|
||||
view->hidePassword(!(view_menu->isItemChecked(ID_VIEW_PASSWORDS)));
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotLockWindow()
|
||||
{
|
||||
view->lockWindow(!view->isLocked());
|
||||
|
||||
if (view->isLocked())
|
||||
window_menu->changeItem(i18n("&Unlock Window"), ID_WINDOW_LOCK);
|
||||
else
|
||||
window_menu->changeItem(i18n("&Lock Window"), ID_WINDOW_LOCK);
|
||||
|
||||
slotStatusMsg(i18n("Ready."));
|
||||
}
|
||||
|
||||
void KpasmanApp::slotStatusMsg(const char *text)
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// change status message permanently
|
||||
statusBar()->clear();
|
||||
statusBar()->changeItem(text, ID_STATUS_MSG );
|
||||
}
|
||||
|
||||
|
||||
void KpasmanApp::slotStatusHelpMsg(const char *text)
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// change status message of whole statusbar temporary (text, msec)
|
||||
statusBar()->message(text, 2000);
|
||||
}
|
||||
|
||||
|
||||
void KpasmanApp::commandCallback(int id_)
|
||||
{
|
||||
switch (id_){
|
||||
case ID_FILE_NEW_WINDOW:
|
||||
slotFileNewWindow();
|
||||
break;
|
||||
case ID_FILE_NEW:
|
||||
slotFileNew();
|
||||
break;
|
||||
case ID_FILE_OPEN:
|
||||
slotFileOpen();
|
||||
break;
|
||||
case ID_FILE_SAVE:
|
||||
slotFileSave();
|
||||
break;
|
||||
case ID_FILE_SAVE_AS:
|
||||
slotFileSaveAs();
|
||||
break;
|
||||
case ID_FILE_CLOSE:
|
||||
slotFileClose();
|
||||
break;
|
||||
case ID_FILE_QUIT:
|
||||
slotFileQuit();
|
||||
break;
|
||||
|
||||
case ID_EDIT_ADD:
|
||||
slotEditAdd();
|
||||
break;
|
||||
case ID_EDIT_EDIT:
|
||||
slotEditEdit();
|
||||
break;
|
||||
case ID_EDIT_DELETE:
|
||||
slotEditDelete();
|
||||
break;
|
||||
case ID_EDIT_PASSWORD:
|
||||
slotEditPassword();
|
||||
break;
|
||||
|
||||
case ID_VIEW_TOOLBAR:
|
||||
slotViewToolBar();
|
||||
break;
|
||||
case ID_VIEW_STATUSBAR:
|
||||
slotViewStatusBar();
|
||||
break;
|
||||
case ID_VIEW_PASSWORDS:
|
||||
slotViewPasswords();
|
||||
break;
|
||||
|
||||
case ID_WINDOW_LOCK:
|
||||
slotLockWindow();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void KpasmanApp::statusCallback(int id_)
|
||||
{
|
||||
switch (id_){
|
||||
case ID_FILE_NEW_WINDOW:
|
||||
slotStatusHelpMsg(i18n("Opens a new application window"));
|
||||
break;
|
||||
case ID_FILE_NEW:
|
||||
slotStatusHelpMsg(i18n("Creates a new document"));
|
||||
break;
|
||||
case ID_FILE_OPEN:
|
||||
slotStatusHelpMsg(i18n("Opens an existing document"));
|
||||
break;
|
||||
case ID_FILE_OPEN_RECENT:
|
||||
slotStatusHelpMsg(i18n("Opens a recently used file"));
|
||||
break;
|
||||
case ID_FILE_SAVE:
|
||||
slotStatusHelpMsg(i18n("Save the actual document"));
|
||||
break;
|
||||
case ID_FILE_SAVE_AS:
|
||||
slotStatusHelpMsg(i18n("Save the document as..."));
|
||||
break;
|
||||
case ID_FILE_CLOSE:
|
||||
slotStatusHelpMsg(i18n("Closes the actual file"));
|
||||
break;
|
||||
case ID_FILE_QUIT:{
|
||||
QString caption=kapp->getCaption();
|
||||
slotStatusHelpMsg(i18n("Exits "+ caption));
|
||||
break; }
|
||||
|
||||
case ID_EDIT_ADD:
|
||||
slotStatusHelpMsg(i18n("Adds a new entry"));
|
||||
break;
|
||||
case ID_EDIT_EDIT:
|
||||
slotStatusHelpMsg(i18n("Edits the current entry"));
|
||||
break;
|
||||
case ID_EDIT_DELETE:
|
||||
slotStatusHelpMsg(i18n("Deletes the current entry"));
|
||||
break;
|
||||
case ID_EDIT_PASSWORD:
|
||||
slotStatusHelpMsg(i18n("Changes the file master password"));
|
||||
break;
|
||||
|
||||
case ID_VIEW_TOOLBAR:
|
||||
slotStatusHelpMsg(i18n("Enables / disables the actual Toolbar"));
|
||||
break;
|
||||
case ID_VIEW_STATUSBAR:
|
||||
slotStatusHelpMsg(i18n("Enables / disables the actual Statusbar"));
|
||||
break;
|
||||
case ID_VIEW_PASSWORDS:
|
||||
slotStatusHelpMsg(i18n("Enables / disables the Password column"));
|
||||
break;
|
||||
|
||||
case ID_WINDOW_LOCK:
|
||||
slotStatusHelpMsg(i18n("Locks / unlocks the current window"));
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
226
kpasman/kpasman.h
Normal file
226
kpasman/kpasman.h
Normal file
|
|
@ -0,0 +1,226 @@
|
|||
|
||||
#ifndef KPASMAN_H
|
||||
#define KPASMAN_H
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
// include files for Qt
|
||||
#include <qlistview.h>
|
||||
|
||||
// include files for KDE
|
||||
#include <kapp.h>
|
||||
#include <ktmainwindow.h>
|
||||
#include <kaccel.h>
|
||||
|
||||
// forward declaration of the Kpasman classes
|
||||
class KpasmanDoc;
|
||||
class KpasmanView;
|
||||
|
||||
/**
|
||||
* The base class for Kpasman application windows. It sets up the main
|
||||
* window and reads the config file as well as providing a menubar, toolbar
|
||||
* and statusbar. An instance of KpasmanView creates your center view, which is connected
|
||||
* to the window's Doc object.
|
||||
* KpasmanApp reimplements the methods that KTMainWindow provides for main window handling and supports
|
||||
* full session management as well as keyboard accelerator configuration by using KAccel.
|
||||
* @see KTMainWindow
|
||||
* @see KApplication
|
||||
* @see KConfig
|
||||
* @see KAccel
|
||||
*
|
||||
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
* @version KDevelop version 0.4 code generation
|
||||
*/
|
||||
class KpasmanApp : public KTMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
friend class KpasmanView;
|
||||
|
||||
public:
|
||||
/** construtor of KpasmanApp, calls all init functions to create the application.
|
||||
* @see initMenuBar initToolBar
|
||||
*/
|
||||
KpasmanApp();
|
||||
|
||||
~KpasmanApp();
|
||||
/** enables menuentries/toolbar items
|
||||
*/
|
||||
void enableCommand(int id_);
|
||||
/** disables menuentries/toolbar items
|
||||
*/
|
||||
void disableCommand(int id_);
|
||||
/** add a opened file to the recent file list and update recent_file_menu
|
||||
*/
|
||||
void addRecentFile(const char* file);
|
||||
/** opens a file specified by commandline option
|
||||
*/
|
||||
void openDocumentFile(const char* _cmdl);
|
||||
/** returns a pointer to the current document connected to the KTMainWindow instance and is used by
|
||||
* the View class to access the document object's methods
|
||||
*/
|
||||
KpasmanDoc* getDocument() const;
|
||||
|
||||
/** handy way to flip all the flags at once */
|
||||
void setModified(bool modified = true);
|
||||
|
||||
protected:
|
||||
/** save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration
|
||||
* file
|
||||
*/
|
||||
void saveOptions();
|
||||
/** read general Options again and initialize all variables like the recent file list
|
||||
*/
|
||||
void readOptions();
|
||||
/** initKeyAccel creates the keyboard accelerator items for the available slots and changes the menu accelerators.
|
||||
* @see KAccel
|
||||
*/
|
||||
void initKeyAccel();
|
||||
/** initMenuBar creates the menubar and inserts the menupopups as well as creating the helpMenu.
|
||||
* @see KApplication#getHelpMenu
|
||||
*/
|
||||
void initMenuBar();
|
||||
/** this creates the toolbars.
|
||||
*/
|
||||
void initToolBar();
|
||||
/** sets up the statusbar for the main window by initialzing a statuslabel.
|
||||
*/
|
||||
void initStatusBar();
|
||||
/** initializes the document object of the main window that is connected to the view in initView().
|
||||
* @see initView();
|
||||
*/
|
||||
void initDocument();
|
||||
/** creates the centerwidget of the KTMainWindow instance and sets it as the view
|
||||
*/
|
||||
void initView();
|
||||
/** queryClose is called by KTMainWindow on each closeEvent of a window. Against the
|
||||
* default implementation (only returns true), this calles saveModified() on the document object to ask if the document shall
|
||||
* be saved if Modified; on cancel the closeEvent is rejected.
|
||||
* @see KTMainWindow#queryClose
|
||||
* @see KTMainWindow#closeEvent
|
||||
*/
|
||||
virtual bool queryClose();
|
||||
/** queryExit is called by KTMainWindow when the last window of the application is going to be closed during the closeEvent().
|
||||
* Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's
|
||||
* properties.
|
||||
* @see KTMainWindow#queryExit
|
||||
* @see KTMainWindow#closeEvent
|
||||
*/
|
||||
virtual bool queryExit();
|
||||
/** saves the window properties for each open window during session end to the session config file, including saving the currently
|
||||
* opened file by a temporary filename provided by KApplication.
|
||||
* @see KTMainWindow#saveProperties
|
||||
*/
|
||||
virtual void saveProperties(KConfig* );
|
||||
/** reads the session config file and restores the application's state including the last opened files and documents by reading the
|
||||
* temporary files saved by saveProperties()
|
||||
* @see KTMainWindow#readProperties
|
||||
*/
|
||||
virtual void readProperties(KConfig* );
|
||||
|
||||
public slots:
|
||||
/** switch argument for slot selection by menu or toolbar ID */
|
||||
void commandCallback(int id_);
|
||||
/** switch argument for Statusbar help entries on slot selection. Add your ID's help here for toolbars and menubar entries. */
|
||||
void statusCallback(int id_);
|
||||
/** open a new application window by creating a new instance of KpasmanApp */
|
||||
void slotFileNewWindow();
|
||||
/** clears the document in the actual view to reuse it as the new document */
|
||||
void slotFileNew();
|
||||
/** open a file and load it into the document*/
|
||||
void slotFileOpen();
|
||||
/** opens a file from the recent files menu */
|
||||
void slotFileOpenRecent(int id_);
|
||||
/** save a document */
|
||||
void slotFileSave();
|
||||
/** save a document by a new filename*/
|
||||
void slotFileSaveAs();
|
||||
/** asks for saving if the file is modified, then closes the actual file and window*/
|
||||
void slotFileClose();
|
||||
/** closes all open windows by calling close() on each memberList item until the list is empty, then quits the application.
|
||||
* If queryClose() returns false because the user canceled the saveModified() dialog, the closing breaks.
|
||||
*/
|
||||
void slotFileQuit();
|
||||
/** adds a new entry */
|
||||
void slotEditAdd();
|
||||
/** edits current entry */
|
||||
void slotEditEdit();
|
||||
/** deletes current entry */
|
||||
void slotEditDelete();
|
||||
/** changes master password */
|
||||
void slotEditPassword();
|
||||
/** changes menus based on doc status */
|
||||
void slotUpdateDocMenu(bool bdirty);
|
||||
/** changes menus based on item selection status */
|
||||
void slotUpdateViewMenu(QListViewItem* item);
|
||||
/** toggles the toolbar */
|
||||
void slotViewToolBar();
|
||||
/** toggles the statusbar */
|
||||
void slotViewStatusBar();
|
||||
/** toggles the passwords */
|
||||
void slotViewPasswords();
|
||||
/** locks / unlocks the window */
|
||||
void slotLockWindow();
|
||||
/** changes the statusbar contents for the standard label permanently, used to indicate current actions.
|
||||
* @param text the text that is displayed in the statusbar
|
||||
*/
|
||||
void slotStatusMsg(const char *text);
|
||||
/** changes the status message of the whole statusbar for two seconds, then restores the last status. This is used to display
|
||||
* statusbar messages that give information about actions for toolbar icons and menuentries.
|
||||
* @param text the text that is displayed in the statusbar
|
||||
*/
|
||||
void slotStatusHelpMsg(const char *text);
|
||||
|
||||
private:
|
||||
/** the configuration object of the application */
|
||||
KConfig* config;
|
||||
/** the key accelerator container */
|
||||
KAccel* key_accel;
|
||||
/** file_menu contains all items of the menubar entry "File" */
|
||||
QPopupMenu *file_menu;
|
||||
/** the recent file menu containing the last five opened files */
|
||||
QPopupMenu *recent_files_menu;
|
||||
/** contains the recently used filenames */
|
||||
QStrList recent_files;
|
||||
/** edit_menu contains all items of the menubar entry "Edit" */
|
||||
QPopupMenu *edit_menu;
|
||||
/** view_menu contains all items of the menubar entry "View" */
|
||||
QPopupMenu *view_menu;
|
||||
/** window_menu contains all items of the menubar entry "Window" */
|
||||
QPopupMenu *window_menu;
|
||||
/** help_menu contains all items of the menubar entry "Help" */
|
||||
QPopupMenu *help_menu;
|
||||
/** view is the main widget which represents your working area. The View
|
||||
* class should handle all events of the view widget. It is kept empty so
|
||||
* you can create your view according to your application's needs by
|
||||
* changing the view class. */
|
||||
KpasmanView *view;
|
||||
/** doc represents your actual document and is created only once. It keeps
|
||||
* information such as filename and does the serialization of your files.
|
||||
*/
|
||||
KpasmanDoc *doc;
|
||||
|
||||
};
|
||||
|
||||
#endif // KPASMAN_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
11
kpasman/kpasman.kdelnk
Normal file
11
kpasman/kpasman.kdelnk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# KDE Config File
|
||||
[KDE Desktop Entry]
|
||||
BinaryPattern=kpasman;
|
||||
Type=Application
|
||||
Exec=kpasman -caption "%c" %i %m %u
|
||||
Icon=kpasman.xpm
|
||||
MiniIcon=mini-kpasman.xpm
|
||||
DocPath=kpasman/index.html
|
||||
Terminal=0
|
||||
Name=Kpasman
|
||||
Comment=Small password manager using rc2-encrypted file
|
||||
68
kpasman/kpasman.spec
Normal file
68
kpasman/kpasman.spec
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
%define name kpasman
|
||||
%define version 0.1
|
||||
%define release 1
|
||||
%define prefix /usr
|
||||
|
||||
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
|
||||
|
||||
Summary: Kpasman - a small password manager for KDE
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
Prefix: %{prefix}
|
||||
Group: X11/KDE/Applications
|
||||
Copyright: GPL
|
||||
Distribution: KDE Linux Packaging Project
|
||||
Vendor: Troy Engel <tengel@sonic.net>
|
||||
Packager: Troy Engel <tengel@sonic.net>
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
URL: http://www.sonic.net/~tengel/kpasman
|
||||
Requires: kdelibs >= 1.1.1
|
||||
BuildRoot: /tmp/build-%{name}-%{version}
|
||||
|
||||
%description
|
||||
Kpasman is a small password manager for the K Desktop Environment, influenced
|
||||
greatly by `gpasman`, found at http://gpasman.nl.linux.org. Following the
|
||||
file format of gpasman, you can open and save the rc2-encrypted data files
|
||||
from either program transparently.
|
||||
|
||||
%prep
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{builddir}
|
||||
|
||||
%setup
|
||||
touch `find . -type f`
|
||||
|
||||
%build
|
||||
if [ -z "$KDEDIR" ]; then
|
||||
export KDEDIR=%{prefix}
|
||||
fi
|
||||
CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" ./configure \
|
||||
--prefix=$KDEDIR --with-install-root=$RPM_BUILD_ROOT
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
if [ -z "$KDEDIR" ]; then
|
||||
export KDEDIR=%{prefix}
|
||||
fi
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make 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}
|
||||
echo "%docdir $KDEDIR/doc/kde" >> $RPM_BUILD_DIR/file.list.%{name}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{builddir}
|
||||
rm -f $RPM_BUILD_DIR/file.list.%{name}
|
||||
|
||||
%files -f ../file.list.%{name}
|
||||
52
kpasman/kpasman.xpm
Normal file
52
kpasman/kpasman.xpm
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/* XPM */
|
||||
static char * kpasman_xpm[] = {
|
||||
"32 32 17 1",
|
||||
" c None",
|
||||
". c #4D4851",
|
||||
"+ c #0D0B0B",
|
||||
"@ c #2B2E2E",
|
||||
"# c #1A191C",
|
||||
"$ c #B0AFAE",
|
||||
"% c #D2D2D2",
|
||||
"& c #908F8F",
|
||||
"* c #837765",
|
||||
"= c #DAB074",
|
||||
"- c #EBEBEB",
|
||||
"; c #BD9865",
|
||||
"> c #AE8751",
|
||||
", c #403937",
|
||||
"' c #5F575E",
|
||||
") c #6C6E6E",
|
||||
"! c #515558",
|
||||
" ",
|
||||
" .+ @# ",
|
||||
" $%&@+*=*@+ ",
|
||||
" $---;.*;=>,+ ",
|
||||
" @, $-----$'';=;.+ + ",
|
||||
" *&. +%-------='';=='#+)>@ ",
|
||||
" !--&!#$---------%).>==>===*+ ",
|
||||
" .%---$)&----------%*.>=====;, ",
|
||||
" &---%%$'*%----%-%-%%&.*;===, ",
|
||||
" !---%$),##@&=--%-%-%%%;.==;+ ",
|
||||
" ,%%$&&@+++++@$%-%-%-%%%,==* ",
|
||||
" &%))@,@,,@++#!;%%%%%%%,==, ",
|
||||
" .)##,!$$$',++')'&%%-%$.=$# ",
|
||||
" ..#,!$%%$%',+@$$*.*%%$.=>+ ",
|
||||
" @@@*%$%$$&.+#&$$&*.$&'$' ",
|
||||
" .,#&$%$%$&'#+)$$&$!$&*$@ ",
|
||||
" !.@)$$$$$*'@#*&$&&'&)*;+ ",
|
||||
" .,,@,@@@@@,,,,.)$&$'&!&) ",
|
||||
" +#++#+++++++####&&&)&.&. ",
|
||||
" ++#+++++#+#++++#&&&)).&+ ",
|
||||
" ####@#@#####@##@&&&)),*+ ",
|
||||
" )))'!!!!!!!!!'!)&&&)!.! ",
|
||||
" !!!!!!!..!.'''''*&*).,@ ",
|
||||
" !)!!!.!.!....''!&*&),,+ ",
|
||||
" )!!!!!!..!...'''***),@ ",
|
||||
" !!......,.....!!)&*)@# ",
|
||||
" !!!!!!......''.!*)*)@+ ",
|
||||
" @#@#############.!))@+ ",
|
||||
" ++++##++++++++++ ,!@ ",
|
||||
" +#++++++++++++++ @ ",
|
||||
" ",
|
||||
" "};
|
||||
564
kpasman/kpasmandoc.cpp
Normal file
564
kpasman/kpasmandoc.cpp
Normal file
|
|
@ -0,0 +1,564 @@
|
|||
// include files for Qt
|
||||
#include <qdir.h>
|
||||
#include <qfileinfo.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
// include files for KDE
|
||||
#include <kapp.h>
|
||||
#include <kmsgbox.h>
|
||||
|
||||
// application specific includes
|
||||
#include <kpasmandoc.h>
|
||||
#include "kpasman.h"
|
||||
#include "kpasmanview.h"
|
||||
#include "kpassworddlg.h"
|
||||
#include "kpasmasterdlg.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include "krc2.h"
|
||||
|
||||
#define SAVE_BUFFER_LENGTH 1024
|
||||
#define LOAD_BUFFER_LENGTH 2048
|
||||
|
||||
QList<KpasmanView>* KpasmanDoc::viewList = 0L;
|
||||
|
||||
KpasmanDoc::KpasmanDoc(QWidget *parent, const char* name):QObject(parent, name)
|
||||
{
|
||||
m_parent = (KpasmanApp*)parent;
|
||||
if( !viewList )
|
||||
viewList = new QList<KpasmanView>;
|
||||
viewList->setAutoDelete(true);
|
||||
m_bLocked = false;
|
||||
}
|
||||
|
||||
KpasmanDoc::~KpasmanDoc()
|
||||
{
|
||||
}
|
||||
|
||||
void KpasmanDoc::addView(KpasmanView* m_pView)
|
||||
{
|
||||
viewList->append(m_pView);
|
||||
}
|
||||
|
||||
void KpasmanDoc::removeView(KpasmanView* m_pView)
|
||||
{
|
||||
viewList->remove(m_pView);
|
||||
}
|
||||
const QString& KpasmanDoc::getPathName() const
|
||||
{
|
||||
return m_path;
|
||||
}
|
||||
|
||||
void KpasmanDoc::slotUpdateAllViews(KpasmanView* pSender)
|
||||
{
|
||||
KpasmanView* w;
|
||||
if(viewList)
|
||||
{
|
||||
for( w = viewList->first(); w; w = viewList->next() )
|
||||
{ if( w != pSender)
|
||||
w->repaint();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void KpasmanDoc::pathName( const char* path_name)
|
||||
{
|
||||
m_path=path_name;
|
||||
}
|
||||
|
||||
void KpasmanDoc::title( const char* title)
|
||||
{
|
||||
m_title=title;
|
||||
}
|
||||
|
||||
const QString& KpasmanDoc::getTitle() const
|
||||
{
|
||||
return m_title;
|
||||
}
|
||||
|
||||
void KpasmanDoc::setModified(bool modified)
|
||||
{
|
||||
b_modified = modified;
|
||||
emit docDirty(b_modified);
|
||||
}
|
||||
|
||||
bool KpasmanDoc::saveModified()
|
||||
{
|
||||
if (b_modified) {
|
||||
KpasmanApp* win=(KpasmanApp*) parent();
|
||||
int want_save = KMsgBox::yesNoCancel(win,
|
||||
i18n("Warning"),
|
||||
i18n("The current file has been modified.\nDo you want to save it?"));
|
||||
switch(want_save) {
|
||||
case 1:
|
||||
if(m_title == i18n("Untitled"))
|
||||
win->slotFileSaveAs();
|
||||
else
|
||||
saveDocument(getPathName()+getTitle());
|
||||
deleteContents();
|
||||
return true;
|
||||
break;
|
||||
case 2:
|
||||
setModified(false);
|
||||
deleteContents();
|
||||
return true;
|
||||
break;
|
||||
case 3:
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
} else
|
||||
return true;
|
||||
}
|
||||
|
||||
void KpasmanDoc::closeDocument()
|
||||
{
|
||||
deleteContents();
|
||||
}
|
||||
|
||||
bool KpasmanDoc::newDocument()
|
||||
{
|
||||
deleteContents();
|
||||
|
||||
setModified(false);
|
||||
m_path=QDir::homeDirPath();
|
||||
m_title = i18n("Untitled");
|
||||
return true;
|
||||
}
|
||||
|
||||
bool KpasmanDoc::openDocument(const char* filename, const char* format)
|
||||
{
|
||||
deleteContents();
|
||||
|
||||
QFileInfo fileInfo(filename);
|
||||
m_title=fileInfo.fileName();
|
||||
m_path=fileInfo.absFilePath();
|
||||
|
||||
if (!fileInfo.isFile() || !fileInfo.exists())
|
||||
return false;
|
||||
|
||||
if (fileInfo.permission(QFileInfo::ReadGroup | QFileInfo::ReadOther) ||
|
||||
fileInfo.permission(QFileInfo::WriteGroup | QFileInfo::WriteOther) ) {
|
||||
showError(PWERR_PERM);
|
||||
}
|
||||
|
||||
m_password = "";
|
||||
if (m_password.isEmpty())
|
||||
getDocPassword(filename);
|
||||
if (m_password.isEmpty())
|
||||
return false;
|
||||
|
||||
int retval = loadInit(filename, m_password);
|
||||
if (retval != PWERR_GOOD) {
|
||||
showError(retval);
|
||||
return false;
|
||||
}
|
||||
|
||||
char* entry[4];
|
||||
retval = loadEntry(entry);
|
||||
if (retval == 2) {
|
||||
m_parent->slotStatusHelpMsg("Last entry loaded");
|
||||
}
|
||||
while (retval == 1) {
|
||||
(void) new QListViewItem((QListView*)viewList->current(), entry[0], entry[1], entry[2], entry[3]);
|
||||
for (int count = 0; count < 4; count++) {
|
||||
free(entry[count]);
|
||||
}
|
||||
retval = loadEntry(entry);
|
||||
if (retval == 2) {
|
||||
m_parent->slotStatusHelpMsg("Last entry loaded");
|
||||
}
|
||||
}
|
||||
retval = loadFinalize();
|
||||
|
||||
setModified(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
int KpasmanDoc::loadInit(const char* filename, const char *password)
|
||||
{
|
||||
unsigned int j = 0;
|
||||
unsigned int keylength=0;
|
||||
int count=0, count2=0, count3=0;
|
||||
unsigned char charbuf[8];
|
||||
unsigned short ciphertext[4];
|
||||
char key[128];
|
||||
Krc2* krc2 = new Krc2();
|
||||
|
||||
fd = fopen (filename, "rb");
|
||||
if (fd == NULL)
|
||||
return PWERR_OPEN;
|
||||
|
||||
buffer = (char *)malloc(LOAD_BUFFER_LENGTH);
|
||||
for (j = 0; password[j] != '\0'; j++) {
|
||||
key[j] = password[j];
|
||||
}
|
||||
keylength = j;
|
||||
krc2->rc2_expandkey (key, keylength, 128);
|
||||
|
||||
size = read(fileno (fd), (unsigned char *) (charbuf + count), 8);
|
||||
|
||||
if (size < 8)
|
||||
return PWERR_DATA;
|
||||
|
||||
for (count = 0; count < 4; count++) {
|
||||
count2 = count << 1;
|
||||
iv[count] = charbuf[count2] << 8;
|
||||
iv[count] += charbuf[count2 + 1];
|
||||
}
|
||||
|
||||
size = 0;
|
||||
bufferIndex = 0;
|
||||
while ((count = read (fileno (fd), (unsigned char *) charbuf, 8)) > 0) {
|
||||
while (count < 8) {
|
||||
count2 = read (fileno (fd), (unsigned char *) (charbuf + count), 8);
|
||||
if (count2 == 0) {
|
||||
return PWERR_DATA;
|
||||
}
|
||||
count += count2;
|
||||
} /* while (count < 8) */
|
||||
|
||||
size += 8;
|
||||
for (count2 = 0; count2 < 8; count2 += 2) {
|
||||
count3 = count2 >> 1;
|
||||
ciphertext[count3] = charbuf[count2] << 8;
|
||||
ciphertext[count3] += charbuf[count2 + 1];
|
||||
|
||||
plaintext[count3] = ciphertext[count3] ^ iv[count3];
|
||||
iv[count3] = plaintext[count3];
|
||||
} /* for (count2) */
|
||||
|
||||
krc2->rc2_decrypt (plaintext);
|
||||
memcpy ((unsigned char *) (buffer + bufferIndex), plaintext, 8);
|
||||
bufferIndex += 8;
|
||||
buffer[bufferIndex + 1] = '\0';
|
||||
} /* while ((count = read (fileno (fd), (unsigned char *) charbuf, 8)) > 0) */
|
||||
size -= buffer[size - 1];
|
||||
lastcount = 0;
|
||||
|
||||
/* This will point to the starting index */
|
||||
bufferIndex = 0;
|
||||
return PWERR_GOOD;
|
||||
}
|
||||
|
||||
int KpasmanDoc::loadEntry(char *entry[4])
|
||||
{
|
||||
/* Strip off PKCS 5 padding
|
||||
* Should check to make sure it's good here
|
||||
*/
|
||||
int count, count1=0;
|
||||
|
||||
for (count = lastcount; count < size; count++) {
|
||||
if ((unsigned char) (buffer[count]) == 255) {
|
||||
if (buffer[bufferIndex] == '\0') {
|
||||
bufferIndex++;
|
||||
}
|
||||
entry[count1] = (char *) malloc (count - bufferIndex + 1);
|
||||
memcpy (entry[count1], (unsigned char *) (buffer + bufferIndex), count - bufferIndex);
|
||||
entry[count1][count - bufferIndex] = '\0';
|
||||
count++;
|
||||
bufferIndex = count;
|
||||
count1++;
|
||||
if (count1 == 4) {
|
||||
lastcount = count;
|
||||
return 1;
|
||||
}
|
||||
} /* if ((unsigned char) (buffer[count]) == 255) */
|
||||
} /* for (count = 0; count < size; count++) */
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
int KpasmanDoc::loadFinalize(void)
|
||||
{
|
||||
fclose (fd);
|
||||
free(buffer);
|
||||
return PWERR_GOOD;
|
||||
}
|
||||
|
||||
bool KpasmanDoc::saveDocument(const char* filename, const char* format)
|
||||
{
|
||||
if (m_password.isEmpty())
|
||||
getDocPassword(filename);
|
||||
if (m_password.isEmpty())
|
||||
return false;
|
||||
|
||||
int retval = saveInit(filename, m_password);
|
||||
if (retval != PWERR_GOOD) {
|
||||
showError(retval);
|
||||
return false;
|
||||
}
|
||||
|
||||
char* entry[4];
|
||||
QListView* view = (QListView*)viewList->current();
|
||||
QListViewItem* current = view->firstChild();
|
||||
while (current != 0) {
|
||||
for (int z=0; z<4; z++) {
|
||||
const char* text = current->text(z);
|
||||
entry[z] = (char*)malloc(strlen(text)+1);
|
||||
strcpy(entry[z], text);
|
||||
}
|
||||
retval = saveEntry(entry);
|
||||
for (int z=0; z<4; z++)
|
||||
free(entry[z]);
|
||||
if (retval == PWERR_DATA) {
|
||||
m_parent->slotStatusHelpMsg(i18n("Error writing file, contents not saved"));
|
||||
saveFinalize();
|
||||
return false;
|
||||
}
|
||||
QListViewItem* next = current->nextSibling();
|
||||
current = next;
|
||||
}
|
||||
|
||||
if (saveFinalize() == PWERR_DATA) {
|
||||
m_parent->slotStatusHelpMsg(i18n("Error writing file, contents not saved"));
|
||||
return false;
|
||||
} else {
|
||||
m_parent->slotStatusHelpMsg(i18n("Save finished"));
|
||||
setModified(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int KpasmanDoc::saveInit(const char *filename, const char *password)
|
||||
{
|
||||
char key[128];
|
||||
unsigned int j = 0;
|
||||
unsigned int keylength;
|
||||
int val, count2;
|
||||
Krc2* krc2 = new Krc2();
|
||||
|
||||
/* first we should check the permissions of the filename */
|
||||
if (QFile::exists(filename)) {
|
||||
val = checkFile(filename);
|
||||
if (val != PWERR_GOOD)
|
||||
return val;
|
||||
} else {
|
||||
val = creat (filename, (S_IRUSR | S_IWUSR));
|
||||
if (val == -1)
|
||||
return PWERR_OPEN;
|
||||
else
|
||||
close(val);
|
||||
}
|
||||
|
||||
fd = fopen (filename, "wb");
|
||||
if (fd == NULL)
|
||||
return PWERR_OPEN;
|
||||
|
||||
buffer = (char*)malloc(SAVE_BUFFER_LENGTH);
|
||||
|
||||
/* make the key ready */
|
||||
for (j = 0; password[j] != '\0'; j++) {
|
||||
key[j] = password[j];
|
||||
}
|
||||
keylength = j;
|
||||
krc2->rc2_expandkey (key, keylength, 128);
|
||||
|
||||
/* First, we make the IV */
|
||||
for (count2 = 0; count2 < 4; count2++) {
|
||||
iv[count2] = rand ();
|
||||
putc ((unsigned char) (iv[count2] >> 8), fd);
|
||||
putc ((unsigned char) (iv[count2] & 0xff), fd);
|
||||
}
|
||||
|
||||
bufferIndex = 0;
|
||||
return PWERR_GOOD;
|
||||
}
|
||||
|
||||
|
||||
int KpasmanDoc::saveEntry(char *entry[4])
|
||||
{
|
||||
char *text1;
|
||||
int count2, count3;
|
||||
unsigned short ciphertext[4];
|
||||
Krc2* krc2 = new Krc2();
|
||||
|
||||
buffer = (char*)memset(buffer, '\0', SAVE_BUFFER_LENGTH);
|
||||
|
||||
for (count2 = 0; count2 < 4; count2++) {
|
||||
text1 = entry[count2];
|
||||
if (strlen (text1) == 0) {
|
||||
strncat(buffer, " ", strlen(" "));
|
||||
} else {
|
||||
strncat(buffer, text1, strlen(text1));
|
||||
}
|
||||
/* Use 255 as the marker. \n is too tough to test for */
|
||||
buffer[strlen (buffer)] = 255;
|
||||
} /*for (count2 = 0; count2 < 4; count2++)*/
|
||||
count2 = 0;
|
||||
/* I'm using CBC mode and encrypting the data straight from top down.
|
||||
* At the bottom, encrypted, I will append an MD5 hash of the file, eventually.
|
||||
* PKCS 5 padding (explained at the code section
|
||||
*/
|
||||
while (count2 < (int)strlen (buffer)) {
|
||||
#ifndef WORDS_BIGENDIAN
|
||||
plaintext[bufferIndex] = buffer[count2 + 1] << 8;
|
||||
plaintext[bufferIndex] += buffer[count2] & 0xff;
|
||||
#endif
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
plaintext[bufferIndex] = buffer[count2] << 8;
|
||||
plaintext[bufferIndex] += buffer[count2 + 1] & 0xff;
|
||||
#endif
|
||||
bufferIndex++;
|
||||
if (bufferIndex == 4) {
|
||||
krc2->rc2_encrypt (plaintext);
|
||||
|
||||
for (count3 = 0; count3 < 4; count3++) {
|
||||
ciphertext[count3] = iv[count3] ^ plaintext[count3];
|
||||
|
||||
/* Now store the ciphertext as the iv */
|
||||
iv[count3] = plaintext[count3];
|
||||
|
||||
/* reset the buffer index */
|
||||
bufferIndex = 0;
|
||||
if (putc ((unsigned char) (ciphertext[count3] >> 8), fd) == EOF) return PWERR_DATA;
|
||||
if (putc ((unsigned char) (ciphertext[count3] & 0xff), fd) == EOF) return PWERR_DATA;
|
||||
} /*for (count3 = 0; count3 < 4; count3++)*/
|
||||
} /*if (bufferIndex == 4)*/
|
||||
/* increment a short, not a byte */
|
||||
count2 += 2;
|
||||
} /*while (count2 < strlen (buffer))*/
|
||||
return PWERR_GOOD;
|
||||
}
|
||||
|
||||
int KpasmanDoc::saveFinalize(void)
|
||||
{
|
||||
int count1, retval = PWERR_GOOD;
|
||||
unsigned short ciphertext[4];
|
||||
Krc2* krc2 = new Krc2();
|
||||
|
||||
/* Tack on the PKCS 5 padding
|
||||
* How it works is we fill up the last n bytes with the value n
|
||||
*
|
||||
* So, if we have, say, 13 bytes, 8 of which are used, we have 5 left
|
||||
* over, leaving us 3 short, so we fill it in with 3's.
|
||||
*
|
||||
* If we come out even, we fill it with 8 8s
|
||||
*
|
||||
* um, except that in this instance we are using 4 shorts instead of 8 bytes.
|
||||
* so, half everything
|
||||
*/
|
||||
for (count1 = bufferIndex; count1 < 4; count1++) {
|
||||
plaintext[count1] = (4 - bufferIndex);
|
||||
}
|
||||
krc2->rc2_encrypt (plaintext);
|
||||
for (count1 = 0; count1 < 4; count1++) {
|
||||
ciphertext[count1] = iv[count1] ^ plaintext[count1];
|
||||
if (putc ((unsigned char) (ciphertext[count1] >> 8), fd) == EOF) retval = PWERR_DATA;
|
||||
if (putc ((unsigned char) (ciphertext[count1] & 0xff), fd) == EOF) retval = PWERR_DATA;
|
||||
}
|
||||
|
||||
fclose (fd);
|
||||
free(buffer);
|
||||
return retval;
|
||||
}
|
||||
|
||||
bool KpasmanDoc::lock()
|
||||
{
|
||||
m_bLocked = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool KpasmanDoc::unlock()
|
||||
{
|
||||
KPasswordDlg passwordDlg;
|
||||
passwordDlg.setCaption(i18n("Master Password"));
|
||||
if (passwordDlg.exec()) {
|
||||
if (m_password == passwordDlg.getPassword()) {
|
||||
m_bLocked = false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void KpasmanDoc::getDocPassword(const char *filename)
|
||||
{
|
||||
KPasswordDlg passwordDlg;
|
||||
passwordDlg.setCaption(i18n("Master Password"));
|
||||
passwordDlg.setFilename(filename);
|
||||
if (passwordDlg.exec())
|
||||
m_password = passwordDlg.getPassword();
|
||||
}
|
||||
|
||||
void KpasmanDoc::changeDocPassword()
|
||||
{
|
||||
KpasmasterDlg masterDlg;
|
||||
masterDlg.setCaption(i18n("Change Master Password"));
|
||||
if (masterDlg.exec()) {
|
||||
QString oldp, newp, verp;
|
||||
masterDlg.getData(oldp, newp, verp);
|
||||
if ( (m_password == oldp) && (newp == verp) && (!newp.isEmpty()) ) {
|
||||
m_password = newp;
|
||||
setModified(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void KpasmanDoc::deleteContents()
|
||||
{
|
||||
QListView* view = (QListView*)viewList->current();
|
||||
if (view)
|
||||
view->clear();
|
||||
}
|
||||
|
||||
int KpasmanDoc::checkFile (const char *filename)
|
||||
{
|
||||
QFileInfo fileInfo(filename);
|
||||
|
||||
// TRUE if we exist as a file or symlink
|
||||
if (!fileInfo.isFile())
|
||||
return PWERR_STAT;
|
||||
|
||||
// we want -rw------- permissions
|
||||
if (fileInfo.permission(QFileInfo::ReadGroup | QFileInfo::ReadOther) ||
|
||||
fileInfo.permission(QFileInfo::WriteGroup | QFileInfo::WriteOther) )
|
||||
return PWERR_PERM;
|
||||
|
||||
// we don't like symlinks (??)
|
||||
if (fileInfo.isSymLink())
|
||||
return PWERR_SYML;
|
||||
|
||||
return PWERR_GOOD;
|
||||
}
|
||||
|
||||
void KpasmanDoc::showError(int type)
|
||||
{
|
||||
QString msg;
|
||||
|
||||
switch (type) {
|
||||
case PWERR_OPEN:
|
||||
msg = i18n("Can't open/create the file");
|
||||
case PWERR_PERM:
|
||||
msg = i18n("The file permissions are set to allow group/other read/write access!");
|
||||
case PWERR_SYML:
|
||||
msg = i18n("The file is a symlink");
|
||||
case PWERR_STAT:
|
||||
msg = i18n("Can't get the file status");
|
||||
case PWERR_DATA:
|
||||
msg = i18n("Can't read the correct file data");
|
||||
default:
|
||||
msg = i18n("Internal program error");
|
||||
}
|
||||
|
||||
KMsgBox::message(m_parent, i18n("File Error"), msg, KMsgBox::INFORMATION);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
145
kpasman/kpasmandoc.h
Normal file
145
kpasman/kpasmandoc.h
Normal file
|
|
@ -0,0 +1,145 @@
|
|||
|
||||
#ifndef KPASMANDOC_H
|
||||
#define KPASMANDOC_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
// include files for QT
|
||||
#include <qobject.h>
|
||||
#include <qstring.h>
|
||||
#include <qlist.h>
|
||||
|
||||
// for FILE
|
||||
#include <stdio.h>
|
||||
|
||||
// forward declaration of the Kpasman classes
|
||||
class KpasmanApp;
|
||||
class KpasmanView;
|
||||
|
||||
/** KpasmanDoc provides a document object for a document-view model.
|
||||
*
|
||||
* The KpasmanDoc class provides a document object that can be used in conjunction with the classes KpasmanApp and KpasmanView
|
||||
* to create a document-view model for standard KDE applications based on KApplication and KTMainWindow. Thereby, the document object
|
||||
* is created by the KpasmanApp instance and contains the document structure with the according methods for manipulation of the document
|
||||
* data by KpasmanView objects. Also, KpasmanDoc contains the methods for serialization of the document data from and to files.
|
||||
*
|
||||
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
* @version KDevelop version 0.4 code generation
|
||||
*/
|
||||
class KpasmanDoc : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Constructor for the fileclass of the application */
|
||||
KpasmanDoc(QWidget* parent, const char *name=0);
|
||||
/** Destructor for the fileclass of the application */
|
||||
~KpasmanDoc();
|
||||
/** adds a view to the document which represents the document contents. Usually this is your main view. */
|
||||
void addView(KpasmanView* m_pView);
|
||||
/** removes a view from the list of currently connected views */
|
||||
void removeView(KpasmanView* m_pView);
|
||||
/** sets the modified flag for the document after a modifying action on the view connected to the document.*/
|
||||
void setModified(bool modified=true);
|
||||
/** returns if the document is modified or not. Use this to determine if your document needs saving by the user on closing.*/
|
||||
bool isModified(){ return b_modified;}
|
||||
/** "save modified" - asks the user for saving if the document is modified */
|
||||
bool saveModified();
|
||||
/** deletes the document's contents */
|
||||
void deleteContents();
|
||||
/** initializes the document generally */
|
||||
bool newDocument();
|
||||
/** closes the acutal document */
|
||||
void closeDocument();
|
||||
/** loads the document by filename and format and emits the updateViews() signal */
|
||||
bool openDocument(const char* filename, const char* format=0);
|
||||
/** saves the document under filename and format.*/
|
||||
bool saveDocument(const char* filename, const char* format=0);
|
||||
/** sets the path to the file connected with the document */
|
||||
void pathName(const char* path_name);
|
||||
/** returns the pathname of the current document file*/
|
||||
const QString& getPathName() const;
|
||||
/** sets the filename of the document */
|
||||
void title(const char* title);
|
||||
/** returns the title of the document */
|
||||
const QString& getTitle() const;
|
||||
/** allows changing of document password */
|
||||
void changeDocPassword();
|
||||
/** lock the document */
|
||||
bool lock();
|
||||
/** unlock the document */
|
||||
bool unlock();
|
||||
/** return locked status */
|
||||
bool isLocked() {return m_bLocked;};
|
||||
|
||||
signals:
|
||||
void docDirty(bool bdirty);
|
||||
|
||||
public slots:
|
||||
/** calls repaint() on all views connected to the document object and is called by the view by which the document has been changed.
|
||||
* As this view normally repaints itself, it is excluded from the paintEvent. */
|
||||
void slotUpdateAllViews(KpasmanView* pSender);
|
||||
|
||||
public:
|
||||
/** the list of the views currently connected to the document */
|
||||
static QList<KpasmanView>* viewList;
|
||||
|
||||
private:
|
||||
/** the modified flag of the current document */
|
||||
bool b_modified;
|
||||
QString m_title;
|
||||
QString m_path;
|
||||
/** password for the file */
|
||||
QString m_password;
|
||||
/** save our parent */
|
||||
KpasmanApp* m_parent;
|
||||
/** document locked status */
|
||||
bool m_bLocked;
|
||||
|
||||
/** initializes savefile, writes header */
|
||||
int saveInit(const char *filename, const char *password);
|
||||
/** called for each entry to write */
|
||||
int saveEntry(char *entry[4]);
|
||||
/** closes and cleans up */
|
||||
int saveFinalize(void);
|
||||
|
||||
/** initializes loadfile, reads header */
|
||||
int loadInit(const char* filename, const char *password);
|
||||
/** called for each entry to load */
|
||||
int loadEntry(char *entry[4]);
|
||||
/** closes and cleans up */
|
||||
int loadFinalize(void);
|
||||
|
||||
enum {
|
||||
PWERR_GOOD, // success
|
||||
PWERR_OPEN, // can't open filedescriptor / can't create file
|
||||
PWERR_PERM, // permissions are bad
|
||||
PWERR_SYML, // is a symlink
|
||||
PWERR_STAT, // can't get file status
|
||||
PWERR_DATA // can't read correct data
|
||||
};
|
||||
|
||||
int checkFile (const char *filename);
|
||||
void getDocPassword(const char *filename);
|
||||
void showError(int type);
|
||||
|
||||
/** globals needed for file loading */
|
||||
int lastcount, size;
|
||||
/** these three are needed in all save functions and initialized in save_init() */
|
||||
FILE *fd;
|
||||
unsigned short iv[4];
|
||||
char *buffer;
|
||||
/** these two are global because save_entry() and save_finalize() both need them */
|
||||
int bufferIndex;
|
||||
unsigned short plaintext[4];
|
||||
|
||||
};
|
||||
|
||||
#endif // KPASMANDOC_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
182
kpasman/kpasmanview.cpp
Normal file
182
kpasman/kpasmanview.cpp
Normal file
|
|
@ -0,0 +1,182 @@
|
|||
// include files for Qt
|
||||
#include <qpainter.h>
|
||||
|
||||
// application specific includes
|
||||
#include <kpasmanview.h>
|
||||
#include "kpasmandoc.h"
|
||||
#include "kpasman.h"
|
||||
#include "kpasentrydlg.h"
|
||||
|
||||
KpasmanView::KpasmanView(QWidget *parent, const char* name) : QListView(parent, name){
|
||||
setBackgroundMode( PaletteBase );
|
||||
setAllColumnsShowFocus(true);
|
||||
|
||||
m_iPWColumn = 2;
|
||||
m_bPWHidden = false;
|
||||
m_iPWSize = 80;
|
||||
|
||||
addColumn(i18n("Location"), 120);
|
||||
addColumn(i18n("Username"), 80);
|
||||
addColumn(i18n("Password"), m_iPWSize);
|
||||
addColumn(i18n("Comment"), 200);
|
||||
|
||||
setColumnWidthMode(m_iPWColumn, QListView::Manual);
|
||||
|
||||
m_bLocked = false;
|
||||
m_bLockPasswords = false;
|
||||
}
|
||||
|
||||
KpasmanView::~KpasmanView(){
|
||||
}
|
||||
|
||||
|
||||
KpasmanDoc* KpasmanView::getDocument() const
|
||||
{
|
||||
KpasmanApp* theApp=(KpasmanApp*)parentWidget();
|
||||
return theApp->getDocument();
|
||||
}
|
||||
|
||||
void KpasmanView::setDocDirty(bool dirty)
|
||||
{
|
||||
KpasmanDoc* theDoc = getDocument();
|
||||
theDoc->setModified(dirty);
|
||||
}
|
||||
|
||||
void KpasmanView::hidePassword(bool mode)
|
||||
{
|
||||
if (m_bPWHidden == false)
|
||||
m_iPWSize = columnWidth(m_iPWColumn);
|
||||
|
||||
setColumnWidth(m_iPWColumn, mode == false ? m_iPWSize : 0);
|
||||
triggerUpdate();
|
||||
|
||||
m_bPWHidden = mode;
|
||||
}
|
||||
|
||||
void KpasmanView::lockWindow(bool mode)
|
||||
{
|
||||
if (mode && !m_bLocked) {
|
||||
if (getDocument()->lock()) {
|
||||
m_bLockPasswords = isPasswordHidden();
|
||||
hidePassword(true);
|
||||
m_bLocked = true;
|
||||
}
|
||||
} else if (!mode && m_bLocked) {
|
||||
if (getDocument()->unlock()) {
|
||||
hidePassword(m_bLockPasswords);
|
||||
m_bLocked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool KpasmanView::addEntry()
|
||||
{
|
||||
if (m_bLocked)
|
||||
lockWindow(false);
|
||||
if (m_bLocked)
|
||||
return false;
|
||||
|
||||
KpasentryDlg pasentryDlg;
|
||||
pasentryDlg.setCaption(i18n("Add Entry"));
|
||||
if (pasentryDlg.exec()) {
|
||||
QString location, username, password, comment;
|
||||
pasentryDlg.getData(location, username, password, comment);
|
||||
if ( !location.isEmpty() && !username.isEmpty() && !password.isEmpty() ) {
|
||||
QListViewItem* item = new QListViewItem(this, location, username, password, comment);
|
||||
setSelected(item, true);
|
||||
setDocDirty(true);
|
||||
triggerUpdate();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool KpasmanView::editEntry()
|
||||
{
|
||||
if (m_bLocked)
|
||||
lockWindow(false);
|
||||
if (m_bLocked)
|
||||
return false;
|
||||
|
||||
QListViewItem* item = currentItem();
|
||||
if (item != 0) {
|
||||
KpasentryDlg pasentryDlg;
|
||||
QString location, username, password, comment;
|
||||
|
||||
location = item->text(0);
|
||||
username = item->text(1);
|
||||
password = item->text(2);
|
||||
comment = item->text(3);
|
||||
pasentryDlg.setCaption(i18n("Edit Entry"));
|
||||
pasentryDlg.setData(location, username, password, comment);
|
||||
if (pasentryDlg.exec()) {
|
||||
pasentryDlg.getData(location, username, password, comment);
|
||||
if ( !location.isEmpty() && !username.isEmpty() && !password.isEmpty() ) {
|
||||
item->setText(0, location);
|
||||
item->setText(1, username);
|
||||
item->setText(2, password);
|
||||
item->setText(3, comment);
|
||||
setSelected(item, true);
|
||||
setDocDirty(true);
|
||||
triggerUpdate();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool KpasmanView::deleteEntry()
|
||||
{
|
||||
if (m_bLocked)
|
||||
lockWindow(false);
|
||||
if (m_bLocked)
|
||||
return false;
|
||||
|
||||
QListViewItem* item = currentItem();
|
||||
if (item != 0) {
|
||||
delete item;
|
||||
setDocDirty(true);
|
||||
|
||||
// hack alert!
|
||||
QListViewItem* newitem = firstChild();
|
||||
if (newitem != 0)
|
||||
setSelected(newitem, true);
|
||||
else
|
||||
emit selectionChanged((QListViewItem*)0);
|
||||
|
||||
triggerUpdate();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void KpasmanView::mouseDoubleClickEvent(QMouseEvent* event)
|
||||
{
|
||||
if (itemAt(event->pos()) == currentItem())
|
||||
editEntry();
|
||||
}
|
||||
|
||||
void KpasmanView::mousePressEvent(QMouseEvent* event)
|
||||
{
|
||||
QListView::mousePressEvent(event);
|
||||
|
||||
if (event->button() == RightButton) {
|
||||
QPopupMenu* rmbpopup = new QPopupMenu();
|
||||
int iedt, idel;
|
||||
rmbpopup->insertItem("&Add Entry...", this, SLOT(slotAddEntry()));
|
||||
iedt = rmbpopup->insertItem("&Edit Entry...", this, SLOT(slotEditEntry()));
|
||||
idel = rmbpopup->insertItem("&Delete Entry", this, SLOT(slotDeleteEntry()));
|
||||
|
||||
QListViewItem* item = currentItem();
|
||||
if ( (item == 0) || (itemAt(event->pos()) != item) ) {
|
||||
rmbpopup->setItemEnabled(iedt, false);
|
||||
rmbpopup->setItemEnabled(idel, false);
|
||||
}
|
||||
|
||||
rmbpopup->exec(QCursor::pos());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
88
kpasman/kpasmanview.h
Normal file
88
kpasman/kpasmanview.h
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
|
||||
#ifndef KPASMANVIEW_H
|
||||
#define KPASMANVIEW_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
// include files for Qt
|
||||
#include <qlistview.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
class KpasmanDoc;
|
||||
|
||||
/** The KpasmanView class provides the view widget for the KpasmanApp instance.
|
||||
* The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As KpasmanView is part of the
|
||||
* docuement-view model, it needs a reference to the document object connected with it by the KpasmanApp class to manipulate and display
|
||||
* the document structure provided by the KpasmanDoc class.
|
||||
*
|
||||
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
|
||||
* @version KDevelop version 0.4 code generation
|
||||
*/
|
||||
class KpasmanView : public QListView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Constructor for the main view */
|
||||
KpasmanView(QWidget* parent = 0, const char* name=0);
|
||||
/** Destructor for the main view */
|
||||
~KpasmanView();
|
||||
|
||||
/** returns a pointer to the document connected to the view instance. Mind that this method requires a KpasmanApp instance as a parent
|
||||
* widget to get to the window document pointer by calling the KpasmanApp::getDocument() method.
|
||||
*
|
||||
* @see KpasmanApp#getDocument
|
||||
*/
|
||||
KpasmanDoc* getDocument() const;
|
||||
|
||||
/** handy helper to flag the doc when things change */
|
||||
void setDocDirty(bool dirty);
|
||||
|
||||
/** hides or unhides the password column */
|
||||
void hidePassword(bool mode);
|
||||
/** returns password column state */
|
||||
bool isPasswordHidden() {return m_bPWHidden;};
|
||||
|
||||
/** locks/unlocks the window */
|
||||
void lockWindow(bool mode);
|
||||
/** returns if window is locked */
|
||||
bool isLocked() {return m_bLocked;};
|
||||
|
||||
/** adds a new entry, returns true if something added */
|
||||
bool addEntry();
|
||||
/** edits an entry, returns true if something changed */
|
||||
bool editEntry();
|
||||
/** deletes an entry, returns true if something deleted */
|
||||
bool deleteEntry();
|
||||
|
||||
public slots:
|
||||
/** adds a new entry, returns true if something added */
|
||||
bool slotAddEntry() {return addEntry();};
|
||||
/** edits an entry, returns true if something changed */
|
||||
bool slotEditEntry() {return editEntry();};
|
||||
/** deletes an entry, returns true if something deleted */
|
||||
bool slotDeleteEntry() {return deleteEntry();};
|
||||
|
||||
protected:
|
||||
/** catches our doubleclick to edit an entry */
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
/** catches our rightmouse click */
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
|
||||
private:
|
||||
/** stores password column number */
|
||||
int m_iPWColumn;
|
||||
/** stores whether or not the password column is "hidden" */
|
||||
bool m_bPWHidden;
|
||||
/** stores password column sizing for "unhiding" */
|
||||
int m_iPWSize;
|
||||
/** stores if the window is locked */
|
||||
bool m_bLocked;
|
||||
/** stores if passwords were visible before we locked */
|
||||
bool m_bLockPasswords;
|
||||
};
|
||||
|
||||
#endif // KPASMANVIEW_H
|
||||
|
||||
138
kpasman/kpasmaster.kdevdlg
Normal file
138
kpasman/kpasmaster.kdevdlg
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
// KDevelop Dialog Editor File (.kdevdlg)
|
||||
//
|
||||
// Created by KDlgEdit Version 0.1alpha (C) 1999 by Pascal Krahmer
|
||||
// Get KDevelop including KDlgEdit at "www.beast.de/kdevelop"
|
||||
//
|
||||
data Information
|
||||
{
|
||||
Filename="/home/troy/kpasman/kpasman/kpasmaster.kdevdlg"
|
||||
KDevelopVersion="0.4"
|
||||
DlgEditVersion="0.1alpha"
|
||||
LastChanged="Sun Sep 26 22:43:40 1999"
|
||||
}
|
||||
|
||||
data SessionManagement
|
||||
{
|
||||
OpenedRoot_1="Geometry"
|
||||
OpenedRoot_2="Appearance"
|
||||
OpenedRoot_3="C++ Code"
|
||||
OpenedRoot_4="General"
|
||||
OpenedRootCount="4"
|
||||
}
|
||||
|
||||
item QWidget
|
||||
{
|
||||
Name="MasterDlg"
|
||||
VarName="this"
|
||||
X="0"
|
||||
Y="0"
|
||||
Width="240"
|
||||
Height="250"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbOld"
|
||||
VarName="m_lbOld"
|
||||
X="10"
|
||||
Y="10"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Old Password:"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edOld"
|
||||
VarName="m_edOld"
|
||||
X="10"
|
||||
Y="40"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbNew"
|
||||
VarName="m_lbNew"
|
||||
X="10"
|
||||
Y="70"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="New Password:"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edNew"
|
||||
VarName="m_edNew"
|
||||
X="10"
|
||||
Y="100"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbVerify"
|
||||
VarName="m_lbVerify"
|
||||
X="10"
|
||||
Y="130"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Verify New Password:"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edVerify"
|
||||
VarName="m_edVerify"
|
||||
X="10"
|
||||
Y="160"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QPushButton
|
||||
{
|
||||
Name="btOK"
|
||||
VarName="m_btOK"
|
||||
X="10"
|
||||
Y="210"
|
||||
Width="100"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="OK"
|
||||
isDefault="true"
|
||||
}
|
||||
|
||||
item QPushButton
|
||||
{
|
||||
Name="btCancel"
|
||||
VarName="m_btCancel"
|
||||
X="130"
|
||||
Y="210"
|
||||
Width="100"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Cancel"
|
||||
}
|
||||
}
|
||||
42
kpasman/kpasmasterdlg.cpp
Normal file
42
kpasman/kpasmasterdlg.cpp
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/***************************************************************************
|
||||
kpasmasterdlg.cpp - description
|
||||
-------------------
|
||||
begin : Sun Sep 26 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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 "kpasmasterdlg.h"
|
||||
|
||||
KpasmasterDlg::KpasmasterDlg(QWidget *parent, const char *name) : QDialog(parent,name,true){
|
||||
initDialog();
|
||||
connect(m_btOK, SIGNAL(clicked()), SLOT(accept()));
|
||||
connect(m_btCancel, SIGNAL(clicked()), SLOT(reject()));
|
||||
|
||||
m_edOld->setEchoMode(QLineEdit::Password);
|
||||
m_edNew->setEchoMode(QLineEdit::Password);
|
||||
m_edVerify->setEchoMode(QLineEdit::Password);
|
||||
|
||||
m_edOld->setFocus();
|
||||
}
|
||||
|
||||
KpasmasterDlg::~KpasmasterDlg()
|
||||
{
|
||||
}
|
||||
|
||||
void KpasmasterDlg::getData(QString& oldp, QString& newp, QString& verp)
|
||||
{
|
||||
oldp = m_edOld->text();
|
||||
newp = m_edNew->text();
|
||||
verp = m_edVerify->text();
|
||||
}
|
||||
|
||||
62
kpasman/kpasmasterdlg.h
Normal file
62
kpasman/kpasmasterdlg.h
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
/***************************************************************************
|
||||
kpasmasterdlg.h - description
|
||||
-------------------
|
||||
begin : Sun Sep 26 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef KPASMASTERDLG_H
|
||||
#define KPASMASTERDLG_H
|
||||
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
#include <qwidget.h>
|
||||
#include <qlabel.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qpushbutton.h>
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
#include <qdialog.h>
|
||||
|
||||
/**
|
||||
*@author Troy Engel
|
||||
*/
|
||||
|
||||
class KpasmasterDlg : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
KpasmasterDlg(QWidget *parent=0, const char *name=0);
|
||||
~KpasmasterDlg();
|
||||
|
||||
/** a way to retrieve our dialog data */
|
||||
void getData(QString& oldp, QString& newp, QString& verp);
|
||||
|
||||
protected:
|
||||
void initDialog();
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
QLabel *m_lbOld;
|
||||
QLineEdit *m_edOld;
|
||||
QLabel *m_lbNew;
|
||||
QLineEdit *m_edNew;
|
||||
QLabel *m_lbVerify;
|
||||
QLineEdit *m_edVerify;
|
||||
QPushButton *m_btOK;
|
||||
QPushButton *m_btCancel;
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
54
kpasman/kpasmasterdlgdata.cpp
Normal file
54
kpasman/kpasmasterdlgdata.cpp
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/**********************************************************************
|
||||
--- KDevelop (KDlgEdit) generated file ---
|
||||
|
||||
Last generated: Sun Sep 26 18:39:40 1999
|
||||
|
||||
DO NOT EDIT!!! This file will be automatically
|
||||
regenerated by KDevelop. All changes will be lost.
|
||||
|
||||
**********************************************************************/
|
||||
#include <kapp.h>
|
||||
#include "kpasmasterdlg.h"
|
||||
|
||||
void KpasmasterDlg::initDialog(){
|
||||
this->setGeometry(0,0,240,250);
|
||||
this->setMinimumSize(0,0);
|
||||
m_lbOld= new QLabel(this,"lbOld");
|
||||
m_lbOld->setGeometry(10,10,220,30);
|
||||
m_lbOld->setMinimumSize(0,0);
|
||||
m_lbOld->setText(i18n("Old Password:"));
|
||||
|
||||
m_edOld= new QLineEdit(this,"edOld");
|
||||
m_edOld->setGeometry(10,40,220,30);
|
||||
m_edOld->setMinimumSize(0,0);
|
||||
|
||||
m_lbNew= new QLabel(this,"lbNew");
|
||||
m_lbNew->setGeometry(10,70,220,30);
|
||||
m_lbNew->setMinimumSize(0,0);
|
||||
m_lbNew->setText(i18n("New Password:"));
|
||||
|
||||
m_edNew= new QLineEdit(this,"edNew");
|
||||
m_edNew->setGeometry(10,100,220,30);
|
||||
m_edNew->setMinimumSize(0,0);
|
||||
|
||||
m_lbVerify= new QLabel(this,"lbVerify");
|
||||
m_lbVerify->setGeometry(10,130,220,30);
|
||||
m_lbVerify->setMinimumSize(0,0);
|
||||
m_lbVerify->setText(i18n("Verify New Password:"));
|
||||
|
||||
m_edVerify= new QLineEdit(this,"edVerify");
|
||||
m_edVerify->setGeometry(10,160,220,30);
|
||||
m_edVerify->setMinimumSize(0,0);
|
||||
|
||||
m_btOK= new QPushButton(this,"btOK");
|
||||
m_btOK->setGeometry(10,210,100,30);
|
||||
m_btOK->setMinimumSize(0,0);
|
||||
m_btOK->setText(i18n("OK"));
|
||||
m_btOK->setDefault(true);
|
||||
|
||||
m_btCancel= new QPushButton(this,"btCancel");
|
||||
m_btCancel->setGeometry(130,210,100,30);
|
||||
m_btCancel->setMinimumSize(0,0);
|
||||
m_btCancel->setText(i18n("Cancel"));
|
||||
|
||||
}
|
||||
112
kpasman/kpassword.kdevdlg
Normal file
112
kpasman/kpassword.kdevdlg
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
// KDevelop Dialog Editor File (.kdevdlg)
|
||||
//
|
||||
// Created by KDlgEdit Version 0.1alpha (C) 1999 by Pascal Krahmer
|
||||
// Get KDevelop including KDlgEdit at "www.beast.de/kdevelop"
|
||||
//
|
||||
data Information
|
||||
{
|
||||
Filename="/home/troy/kpasman/kpasman/kpassword.kdevdlg"
|
||||
KDevelopVersion="0.4"
|
||||
DlgEditVersion="0.1alpha"
|
||||
LastChanged="Sun Sep 26 18:37:04 1999"
|
||||
}
|
||||
|
||||
data SessionManagement
|
||||
{
|
||||
OpenedRoot_1="Geometry"
|
||||
OpenedRoot_2="Appearance"
|
||||
OpenedRoot_3="C++ Code"
|
||||
OpenedRoot_4="General"
|
||||
OpenedRootCount="4"
|
||||
}
|
||||
|
||||
item QWidget
|
||||
{
|
||||
Name="PasswordDlg"
|
||||
VarName="this"
|
||||
X="0"
|
||||
Y="0"
|
||||
Width="240"
|
||||
Height="180"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
|
||||
item QPushButton
|
||||
{
|
||||
Name="btOK"
|
||||
VarName="m_btOK"
|
||||
X="10"
|
||||
Y="140"
|
||||
Width="100"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="OK"
|
||||
isDefault="true"
|
||||
}
|
||||
|
||||
item QPushButton
|
||||
{
|
||||
Name="btCancel"
|
||||
VarName="m_btCancel"
|
||||
X="130"
|
||||
Y="140"
|
||||
Width="100"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Cancel"
|
||||
isDefault="false"
|
||||
}
|
||||
|
||||
item QLineEdit
|
||||
{
|
||||
Name="edPassword"
|
||||
VarName="m_edPassword"
|
||||
X="10"
|
||||
Y="100"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
hasFrame="true"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbPassword"
|
||||
VarName="m_lbPassword"
|
||||
X="10"
|
||||
Y="70"
|
||||
Width="210"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="Enter master password:"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbFile"
|
||||
VarName="m_lbFile"
|
||||
X="10"
|
||||
Y="10"
|
||||
Width="80"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
Text="File:"
|
||||
}
|
||||
|
||||
item QLabel
|
||||
{
|
||||
Name="lbFilename"
|
||||
VarName="m_lbFilename"
|
||||
X="10"
|
||||
Y="40"
|
||||
Width="220"
|
||||
Height="30"
|
||||
MinWidth="0"
|
||||
MinHeight="0"
|
||||
}
|
||||
}
|
||||
43
kpasman/kpassworddlg.cpp
Normal file
43
kpasman/kpassworddlg.cpp
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/***************************************************************************
|
||||
kpassworddlg.cpp - description
|
||||
-------------------
|
||||
begin : Sun Sep 19 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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 "kpassworddlg.h"
|
||||
|
||||
KPasswordDlg::KPasswordDlg(QWidget *parent, const char *name) : QDialog(parent,name,true){
|
||||
initDialog();
|
||||
connect(m_btOK, SIGNAL(clicked()), SLOT(accept()));
|
||||
connect(m_btCancel, SIGNAL(clicked()), SLOT(reject()));
|
||||
|
||||
m_edPassword->setEchoMode(QLineEdit::Password);
|
||||
m_edPassword->setFocus();
|
||||
}
|
||||
|
||||
KPasswordDlg::~KPasswordDlg(){
|
||||
}
|
||||
|
||||
void KPasswordDlg::setFilename(const char *name)
|
||||
{
|
||||
m_lbFilename->setText(name);
|
||||
}
|
||||
|
||||
const char* KPasswordDlg::getPassword()
|
||||
{
|
||||
return m_edPassword->text();
|
||||
}
|
||||
|
||||
|
||||
|
||||
62
kpasman/kpassworddlg.h
Normal file
62
kpasman/kpassworddlg.h
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
/***************************************************************************
|
||||
kpassworddlg.h - description
|
||||
-------------------
|
||||
begin : Sun Sep 19 1999
|
||||
copyright : (C) 1999 by Troy Engel
|
||||
email : tengel@sonic.net
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef KPASSWORDDLG_H
|
||||
#define KPASSWORDDLG_H
|
||||
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
#include <qwidget.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qlabel.h>
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
#include <qdialog.h>
|
||||
|
||||
/**
|
||||
*@author Troy Engel
|
||||
*/
|
||||
|
||||
class KPasswordDlg : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
KPasswordDlg(QWidget *parent=0, const char *name=0);
|
||||
~KPasswordDlg();
|
||||
|
||||
/** allows parent to set visible filename */
|
||||
void setFilename(const char *name);
|
||||
/** allows parent to retrieve password */
|
||||
const char* getPassword();
|
||||
|
||||
protected:
|
||||
void initDialog();
|
||||
//Generated area. DO NOT EDIT!!!(begin)
|
||||
QPushButton *m_btOK;
|
||||
QPushButton *m_btCancel;
|
||||
QLineEdit *m_edPassword;
|
||||
QLabel *m_lbPassword;
|
||||
QLabel *m_lbFile;
|
||||
QLabel *m_lbFilename;
|
||||
//Generated area. DO NOT EDIT!!!(end)
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
48
kpasman/kpassworddlgdata.cpp
Normal file
48
kpasman/kpassworddlgdata.cpp
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/**********************************************************************
|
||||
--- KDevelop (KDlgEdit) generated file ---
|
||||
|
||||
Last generated: Sun Sep 19 14:37:48 1999
|
||||
|
||||
DO NOT EDIT!!! This file will be automatically
|
||||
regenerated by KDevelop. All changes will be lost.
|
||||
|
||||
**********************************************************************/
|
||||
#include <kapp.h>
|
||||
#include "kpassworddlg.h"
|
||||
|
||||
void KPasswordDlg::initDialog(){
|
||||
this->setGeometry(0,0,240,180);
|
||||
this->setMinimumSize(0,0);
|
||||
m_btOK= new QPushButton(this,"btOK");
|
||||
m_btOK->setGeometry(10,140,100,30);
|
||||
m_btOK->setMinimumSize(0,0);
|
||||
m_btOK->setText(i18n("OK"));
|
||||
m_btOK->setDefault(true);
|
||||
|
||||
m_btCancel= new QPushButton(this,"btCancel");
|
||||
m_btCancel->setGeometry(130,140,100,30);
|
||||
m_btCancel->setMinimumSize(0,0);
|
||||
m_btCancel->setText(i18n("Cancel"));
|
||||
m_btCancel->setDefault(false);
|
||||
|
||||
m_edPassword= new QLineEdit(this,"edPassword");
|
||||
m_edPassword->setGeometry(10,100,220,30);
|
||||
m_edPassword->setMinimumSize(0,0);
|
||||
m_edPassword->setText(i18n(""));
|
||||
|
||||
m_lbPassword= new QLabel(this,"lbPassword");
|
||||
m_lbPassword->setGeometry(10,70,210,30);
|
||||
m_lbPassword->setMinimumSize(0,0);
|
||||
m_lbPassword->setText(i18n("Enter master password:"));
|
||||
|
||||
m_lbFile= new QLabel(this,"lbFile");
|
||||
m_lbFile->setGeometry(10,10,80,30);
|
||||
m_lbFile->setMinimumSize(0,0);
|
||||
m_lbFile->setText(i18n("File:"));
|
||||
|
||||
m_lbFilename= new QLabel(this,"lbFilename");
|
||||
m_lbFilename->setGeometry(10,40,220,30);
|
||||
m_lbFilename->setMinimumSize(0,0);
|
||||
m_lbFilename->setText(i18n(""));
|
||||
|
||||
}
|
||||
202
kpasman/krc2.cpp
Normal file
202
kpasman/krc2.cpp
Normal file
|
|
@ -0,0 +1,202 @@
|
|||
/* C implementation of RC2 encryption algorithm, as described in RFC2268 */
|
||||
/* By Matthew Palmer <mjp16@uow.edu.au> */
|
||||
|
||||
#include "krc2.h"
|
||||
|
||||
unsigned char _rc2_pitable[] = { 0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed,
|
||||
0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d,
|
||||
0xc6, 0x7e, 0x37, 0x83, 0x2b, 0x76, 0x53, 0x8e,
|
||||
0x62, 0x4c, 0x64, 0x88, 0x44, 0x8b, 0xfb, 0xa2,
|
||||
0x17, 0x9a, 0x59, 0xf5, 0x87, 0xb3, 0x4f, 0x13,
|
||||
0x61, 0x45, 0x6d, 0x8d, 0x09, 0x81, 0x7d, 0x32,
|
||||
0xbd, 0x8f, 0x40, 0xeb, 0x86, 0xb7, 0x7b, 0x0b,
|
||||
0xf0, 0x95, 0x21, 0x22, 0x5c, 0x6b, 0x4e, 0x82,
|
||||
0x54, 0xd6, 0x65, 0x93, 0xce, 0x60, 0xb2, 0x1c,
|
||||
0x73, 0x56, 0xc0, 0x14, 0xa7, 0x8c, 0xf1, 0xdc,
|
||||
0x12, 0x75, 0xca, 0x1f, 0x3b, 0xbe, 0xe4, 0xd1,
|
||||
0x42, 0x3d, 0xd4, 0x30, 0xa3, 0x3c, 0xb6, 0x26,
|
||||
0x6f, 0xbf, 0x0e, 0xda, 0x46, 0x69, 0x07, 0x57,
|
||||
0x27, 0xf2, 0x1d, 0x9b, 0xbc, 0x94, 0x43, 0x03,
|
||||
0xf8, 0x11, 0xc7, 0xf6, 0x90, 0xef, 0x3e, 0xe7,
|
||||
0x06, 0xc3, 0xd5, 0x2f, 0xc8, 0x66, 0x1e, 0xd7,
|
||||
0x08, 0xe8, 0xea, 0xde, 0x80, 0x52, 0xee, 0xf7,
|
||||
0x84, 0xaa, 0x72, 0xac, 0x35, 0x4d, 0x6a, 0x2a,
|
||||
0x96, 0x1a, 0xd2, 0x71, 0x5a, 0x15, 0x49, 0x74,
|
||||
0x4b, 0x9f, 0xd0, 0x5e, 0x04, 0x18, 0xa4, 0xec,
|
||||
0xc2, 0xe0, 0x41, 0x6e, 0x0f, 0x51, 0xcb, 0xcc,
|
||||
0x24, 0x91, 0xaf, 0x50, 0xa1, 0xf4, 0x70, 0x39,
|
||||
0x99, 0x7c, 0x3a, 0x85, 0x23, 0xb8, 0xb4, 0x7a,
|
||||
0xfc, 0x02, 0x36, 0x5b, 0x25, 0x55, 0x97, 0x31,
|
||||
0x2d, 0x5d, 0xfa, 0x98, 0xe3, 0x8a, 0x92, 0xae,
|
||||
0x05, 0xdf, 0x29, 0x10, 0x67, 0x6c, 0xba, 0xc9,
|
||||
0xd3, 0x00, 0xe6, 0xcf, 0xe1, 0x9e, 0xa8, 0x2c,
|
||||
0x63, 0x16, 0x01, 0x3f, 0x58, 0xe2, 0x89, 0xa9,
|
||||
0x0d, 0x38, 0x34, 0x1b, 0xab, 0x33, 0xff, 0xb0,
|
||||
0xbb, 0x48, 0x0c, 0x5f, 0xb9, 0xb1, 0xcd, 0x2e,
|
||||
0xc5, 0xf3, 0xdb, 0x47, 0xe5, 0xa5, 0x9c, 0x77,
|
||||
0x0a, 0xa6, 0x20, 0x68, 0xfe, 0x7f, 0xc1, 0xad };
|
||||
|
||||
unsigned char _rc2_expkey[128]; /* Expanded Key */
|
||||
int _rc2_counter; /* global integer variable used in mixing */
|
||||
int _rc2_s[] = {1, 2, 3, 5};
|
||||
|
||||
Krc2::Krc2()
|
||||
{
|
||||
}
|
||||
|
||||
Krc2::~Krc2()
|
||||
{
|
||||
}
|
||||
|
||||
void Krc2::rc2_expandkey(char key[], int length, int ekl)
|
||||
{
|
||||
int ekl8, keymask, i;
|
||||
|
||||
/* Put supplied key into first length - 1 bytes of the key buffer */
|
||||
for (i = 0; i < length; i++) {
|
||||
_rc2_expkey[i] = key[i];
|
||||
}
|
||||
|
||||
ekl8 = (ekl + 7) / 8;
|
||||
i = _rc2_pow(2, (8 + ekl - 8 * ekl8));
|
||||
keymask = 255 % i;
|
||||
|
||||
/* First expansion step */
|
||||
for (i = length; i < 128; i++) {
|
||||
_rc2_expkey[i] = _rc2_pitable[(_rc2_expkey[i - 1] + _rc2_expkey[i - length]) % 256];
|
||||
}
|
||||
|
||||
/* Expansion intermediate step */
|
||||
_rc2_expkey[128 - ekl8] = _rc2_pitable[_rc2_expkey[128 - ekl8] & keymask];
|
||||
|
||||
/* Third Expansion step */
|
||||
for (i = 127 - ekl8; i >= 0; i--) {
|
||||
_rc2_expkey[i] = _rc2_pitable[_rc2_expkey[i + 1] ^ _rc2_expkey[i + ekl8]];
|
||||
}
|
||||
}
|
||||
|
||||
void Krc2::rc2_encrypt(unsigned short input[4])
|
||||
{
|
||||
int i;
|
||||
|
||||
_rc2_counter = 0;
|
||||
for (i = 0; i < 5; i++) {
|
||||
_rc2_mix(input);
|
||||
}
|
||||
_rc2_mash(input);
|
||||
for (i = 0; i < 6; i++) {
|
||||
_rc2_mix(input);
|
||||
}
|
||||
_rc2_mash(input);
|
||||
for (i = 0; i < 5; i++) {
|
||||
_rc2_mix(input);
|
||||
}
|
||||
}
|
||||
|
||||
void Krc2::_rc2_mix(unsigned short input[])
|
||||
{
|
||||
unsigned short K, i;
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
K = _rc2_expkey[_rc2_counter * 2] + 256 * _rc2_expkey[_rc2_counter * 2 + 1];
|
||||
input[i] = input[i] + K + (input[(i + 3) % 4] & input[(i + 2) % 4]) + ((~input[(i + 3) % 4]) & input[(i + 1) % 4]);
|
||||
_rc2_counter++;
|
||||
input[i] = _rc2_rol(input[i], _rc2_s[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void Krc2::_rc2_mash(unsigned short input[])
|
||||
{
|
||||
unsigned short K, i, x;
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
x = input[(i + 3) % 4] & 63;
|
||||
K = _rc2_expkey[2 * x] + 256 * _rc2_expkey[2 * x + 1];
|
||||
input[i] = input[i] + K;
|
||||
}
|
||||
}
|
||||
|
||||
void Krc2::rc2_decrypt(unsigned short input[4])
|
||||
{
|
||||
int i;
|
||||
|
||||
_rc2_counter = 63;
|
||||
for (i = 0; i < 5; i++) {
|
||||
_rc2_rmix(input);
|
||||
}
|
||||
_rc2_rmash(input);
|
||||
for (i = 0; i < 6; i++) {
|
||||
_rc2_rmix(input);
|
||||
}
|
||||
_rc2_rmash(input);
|
||||
for (i = 0; i < 5; i++) {
|
||||
_rc2_rmix(input);
|
||||
}
|
||||
}
|
||||
|
||||
void Krc2::_rc2_rmix(unsigned short input[])
|
||||
{
|
||||
unsigned short K;
|
||||
int i;
|
||||
|
||||
for (i = 3; i >= 0; i--) {
|
||||
input[i] = _rc2_ror(input[i], _rc2_s[i]);
|
||||
K = _rc2_expkey[_rc2_counter * 2] + 256 * _rc2_expkey[_rc2_counter * 2 + 1];
|
||||
input[i] = input[i] - K - (input[(i + 3) % 4] & input[(i + 2) % 4]) - ((~input[(i + 3) % 4]) & input[(i + 1) % 4]);
|
||||
_rc2_counter--;
|
||||
}
|
||||
}
|
||||
|
||||
void Krc2::_rc2_rmash(unsigned short input[])
|
||||
{
|
||||
unsigned short K, x;
|
||||
int i;
|
||||
|
||||
for (i = 3; i >= 0; i--) {
|
||||
x = input[(i + 3) % 4] & 63;
|
||||
K = _rc2_expkey[2 * x] + 256 * _rc2_expkey[2 * x + 1];
|
||||
input[i] = input[i] - K;
|
||||
}
|
||||
}
|
||||
|
||||
int Krc2::_rc2_pow(int base, int exponent)
|
||||
{
|
||||
int i, result;
|
||||
|
||||
if (exponent == 0) {
|
||||
return 1;
|
||||
}
|
||||
result = 1;
|
||||
for (i = 0; i < exponent; i++) {
|
||||
result = result * base;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
unsigned short Krc2::_rc2_rol(unsigned short input, int places)
|
||||
{
|
||||
unsigned short temp, i;
|
||||
|
||||
for (i = 0; i < places; i++) {
|
||||
temp = input & 0x8000;
|
||||
input = input << 1;
|
||||
if (temp) {
|
||||
input++;
|
||||
}
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
||||
unsigned short Krc2::_rc2_ror(unsigned short input, int places)
|
||||
{
|
||||
unsigned short temp, i;
|
||||
for (i = 0; i < places; i++) {
|
||||
temp = input & 0x1;
|
||||
input = input >> 1;
|
||||
if (temp) {
|
||||
input = input + 0x8000;
|
||||
}
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
||||
31
kpasman/krc2.h
Normal file
31
kpasman/krc2.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef _KRC2_H_
|
||||
#define _KRC2_H_
|
||||
|
||||
/* Header file for rc2 implementation by Matthew Palmer <mjp16@uow.edu.au> */
|
||||
|
||||
class Krc2
|
||||
{
|
||||
public:
|
||||
Krc2();
|
||||
~Krc2();
|
||||
|
||||
/* Externally worked functions */
|
||||
void rc2_expandkey(char key[], int length, int ekl);
|
||||
void rc2_encrypt(unsigned short *input);
|
||||
void rc2_decrypt(unsigned short *input);
|
||||
|
||||
private:
|
||||
/* The internals */
|
||||
void _rc2_mix(unsigned short *input);
|
||||
void _rc2_mash(unsigned short *input);
|
||||
void _rc2_rmix(unsigned short *input);
|
||||
void _rc2_rmash(unsigned short *input);
|
||||
int _rc2_pow(int base, int exponent);
|
||||
unsigned short _rc2_ror(unsigned short input, int places);
|
||||
unsigned short _rc2_rol(unsigned short input, int places);
|
||||
|
||||
};
|
||||
#endif // _KRC2_H_
|
||||
|
||||
|
||||
|
||||
20
kpasman/main.cpp
Normal file
20
kpasman/main.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
#include "kpasman.h"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
KApplication app(argc,argv,"kpasman");
|
||||
|
||||
if (app.isRestored()) {
|
||||
RESTORE(KpasmanApp);
|
||||
} else {
|
||||
KpasmanApp* kpasman = new KpasmanApp;
|
||||
kpasman->show();
|
||||
if (argc > 1) {
|
||||
kpasman->openDocumentFile(argv[1]);
|
||||
}
|
||||
}
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
|
||||
141
kpasman/mini-kpasman.xpm
Normal file
141
kpasman/mini-kpasman.xpm
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
/* XPM */
|
||||
static char * mini_kpasman_xpm[] = {
|
||||
"16 16 122 2",
|
||||
" c None",
|
||||
". c #171517",
|
||||
"+ c #C7C7C6",
|
||||
"@ c #A4A5A5",
|
||||
"# c #67594A",
|
||||
"$ c #A78E69",
|
||||
"% c #705C40",
|
||||
"& c #131111",
|
||||
"* c #55504B",
|
||||
"= c #D6D6D6",
|
||||
"- c #EBEBEB",
|
||||
"; c #B9B7B9",
|
||||
"> c #957E65",
|
||||
", c #AD8E67",
|
||||
"' c #846D51",
|
||||
") c #1E1C1F",
|
||||
"! c #1E1E1E",
|
||||
"~ c #3A3023",
|
||||
"{ c #97979A",
|
||||
"] c #D4D4D4",
|
||||
"^ c #828283",
|
||||
"/ c #A6A6A6",
|
||||
"( c #C5C6C6",
|
||||
"_ c #948676",
|
||||
": c #AC8C63",
|
||||
"< c #CFA66B",
|
||||
"[ c #DAB074",
|
||||
"} c #8A7352",
|
||||
"| c #38393A",
|
||||
"1 c #DFDFDF",
|
||||
"2 c #A8A8A7",
|
||||
"3 c #4F4846",
|
||||
"4 c #818182",
|
||||
"5 c #D0C5B6",
|
||||
"6 c #E5E5E5",
|
||||
"7 c #C2C1C1",
|
||||
"8 c #988A7B",
|
||||
"9 c #B09068",
|
||||
"0 c #D3AA70",
|
||||
"a c #868786",
|
||||
"b c #4A4949",
|
||||
"c c #211F1F",
|
||||
"d c #151414",
|
||||
"e c #7B7C7D",
|
||||
"f c #D3CABD",
|
||||
"g c #D8D8D8",
|
||||
"h c #D2D2D2",
|
||||
"i c #8D7556",
|
||||
"j c #9E8461",
|
||||
"k c #555258",
|
||||
"l c #242123",
|
||||
"m c #656565",
|
||||
"n c #C1C1C0",
|
||||
"o c #A4A2A3",
|
||||
"p c #3B3536",
|
||||
"q c #292729",
|
||||
"r c #8B898A",
|
||||
"s c #8D8886",
|
||||
"t c #C5C2BD",
|
||||
"u c #947C63",
|
||||
"v c #61574A",
|
||||
"w c #1E1E20",
|
||||
"x c #2C2C2C",
|
||||
"y c #A5A29D",
|
||||
"z c #B9B8B7",
|
||||
"A c #736F73",
|
||||
"B c #141214",
|
||||
"C c #979796",
|
||||
"D c #A09F9F",
|
||||
"E c #74716F",
|
||||
"F c #918B88",
|
||||
"G c #232123",
|
||||
"H c #383638",
|
||||
"I c #393739",
|
||||
"J c #626160",
|
||||
"K c #6E6F6E",
|
||||
"L c #59504C",
|
||||
"M c #312E2E",
|
||||
"N c #736F6D",
|
||||
"O c #807B7E",
|
||||
"P c #777879",
|
||||
"Q c #8F8372",
|
||||
"R c #100F0F",
|
||||
"S c #0D0B0B",
|
||||
"T c #171618",
|
||||
"U c #908F8F",
|
||||
"V c #7E7F7F",
|
||||
"W c #666368",
|
||||
"X c #5F5C5F",
|
||||
"Y c #434445",
|
||||
"Z c #403E41",
|
||||
"` c #3A3C3F",
|
||||
" . c #36373A",
|
||||
".. c #3D3D40",
|
||||
"+. c #414344",
|
||||
"@. c #535154",
|
||||
"#. c #383632",
|
||||
"$. c #585B5E",
|
||||
"%. c #515558",
|
||||
"&. c #505256",
|
||||
"*. c #4F4F55",
|
||||
"=. c #524C54",
|
||||
"-. c #5B535B",
|
||||
";. c #5C575D",
|
||||
">. c #8A837A",
|
||||
",. c #7B7974",
|
||||
"'. c #433D3E",
|
||||
"). c #0E0E0E",
|
||||
"!. c #4E4B53",
|
||||
"~. c #4B484C",
|
||||
"{. c #4D4851",
|
||||
"]. c #58565B",
|
||||
"^. c #817B72",
|
||||
"/. c #78736A",
|
||||
"(. c #343137",
|
||||
"_. c #3D383D",
|
||||
":. c #353438",
|
||||
"<. c #63615F",
|
||||
"[. c #72706C",
|
||||
"}. c #1C1D1D",
|
||||
"|. c #242424",
|
||||
"1. c #161717",
|
||||
" . ",
|
||||
" + @ # $ % & ",
|
||||
" * = - - ; > , ' ) ! ~ ",
|
||||
" { ] ^ / - - - - ( _ : < [ } ",
|
||||
" | - 1 2 3 4 5 6 1 1 7 8 9 0 & ",
|
||||
" 7 a b c c d e f g g h i j ",
|
||||
" k l m n o p q r s t n u v ",
|
||||
" w x y n z A B C D E D F G ",
|
||||
" H I J K K L M N D O P Q ",
|
||||
" R R R S R R B T U V W X ",
|
||||
" Y Z ` ` . ...+.U V @.#. ",
|
||||
" $.%.&.*.*.=.-.;.>.,.'.). ",
|
||||
" $.*.*.!.~.{.=.].^./.x ",
|
||||
" ` ` .(.(.(._.:.<.[.}. ",
|
||||
" R S B S S S S S |.1. ",
|
||||
" "};
|
||||
59
kpasman/resource.h
Normal file
59
kpasman/resource.h
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
#ifndef RESOURCE_H
|
||||
#define RESOURCE_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// resource.h -- contains macros used for commands
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// COMMAND VALUES FOR MENUBAR AND TOOLBAR ENTRIES
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// File-menu entries
|
||||
#define ID_FILE_NEW_WINDOW 10010
|
||||
#define ID_FILE_NEW 10020
|
||||
#define ID_FILE_OPEN 10030
|
||||
#define ID_FILE_OPEN_RECENT 10040
|
||||
#define ID_FILE_CLOSE 10050
|
||||
|
||||
#define ID_FILE_SAVE 10060
|
||||
#define ID_FILE_SAVE_AS 10070
|
||||
|
||||
#define ID_FILE_QUIT 10090
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Edit-menu entries
|
||||
#define ID_EDIT_ADD 11010
|
||||
#define ID_EDIT_EDIT 11020
|
||||
#define ID_EDIT_DELETE 11030
|
||||
#define ID_EDIT_PASSWORD 11040
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// View-menu entries
|
||||
#define ID_VIEW_TOOLBAR 12010
|
||||
#define ID_VIEW_STATUSBAR 12020
|
||||
#define ID_VIEW_PASSWORDS 12030
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Window-menu entries
|
||||
#define ID_WINDOW_LOCK 13010
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Help-menu entries
|
||||
#define ID_HELP_CONTENTS 1002
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// General application values
|
||||
#define ID_STATUS_MSG 1001
|
||||
|
||||
#endif // RESOURCE_H
|
||||
|
||||
|
||||
17
kpasman/templates/cpp_template
Normal file
17
kpasman/templates/cpp_template
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/***************************************************************************
|
||||
|FILENAME| - description
|
||||
-------------------
|
||||
begin : |DATE|
|
||||
copyright : (C) |YEAR| by |AUTHOR|
|
||||
email : |EMAIL|
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
17
kpasman/templates/header_template
Normal file
17
kpasman/templates/header_template
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/***************************************************************************
|
||||
|FILENAME| - description
|
||||
-------------------
|
||||
begin : |DATE|
|
||||
copyright : (C) |YEAR| by |AUTHOR|
|
||||
email : |EMAIL|
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
212
libtool.m4.in
vendored
Normal file
212
libtool.m4.in
vendored
Normal file
|
|
@ -0,0 +1,212 @@
|
|||
## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
|
||||
## Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
## Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
||||
##
|
||||
## 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.
|
||||
##
|
||||
## As a special exception to the GNU General Public License, if you
|
||||
## distribute this file as part of a program that contains a
|
||||
## configuration script generated by Autoconf, you may include it under
|
||||
## the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# serial 17 AM_PROG_LIBTOOL
|
||||
AC_DEFUN(AM_PROG_LIBTOOL,
|
||||
[AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_REQUIRE([AC_PROG_RANLIB])
|
||||
AC_REQUIRE([AM_PROG_LD])
|
||||
AC_REQUIRE([AM_PROG_NM])
|
||||
AC_REQUIRE([AC_PROG_LN_S])
|
||||
|
||||
# Always use our own libtool.
|
||||
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
||||
AC_SUBST(LIBTOOL)
|
||||
|
||||
dnl Allow the --disable-shared flag to stop us from building shared libs.
|
||||
AC_ARG_ENABLE(shared,
|
||||
[ --enable-shared build shared libraries [default=yes]],
|
||||
[if test "$enableval" = no; then
|
||||
libtool_enable_shared=no
|
||||
else
|
||||
libtool_enable_shared=yes
|
||||
fi])
|
||||
test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared"
|
||||
libtool_shared=
|
||||
test "$enable_shared" = no && libtool_shared=" --disable-shared"
|
||||
|
||||
dnl Allow the --disable-static flag to stop us from building static libs.
|
||||
AC_ARG_ENABLE(static,
|
||||
[ --enable-static build static libraries [default=yes]],
|
||||
[if test "$enableval" = no; then
|
||||
libtool_enable_static=no
|
||||
else
|
||||
libtool_enable_static=yes
|
||||
fi])
|
||||
test -n "$libtool_enable_static" && enable_static="$libtool_enable_static"
|
||||
libtool_static=
|
||||
test "$enable_static" = no && libtool_static=" --disable-static"
|
||||
|
||||
libtool_flags="$libtool_shared$libtool_static"
|
||||
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
|
||||
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
||||
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
||||
|
||||
# Some flags need to be propagated to the compiler or linker for good
|
||||
# libtool support.
|
||||
[case "$host" in
|
||||
*-*-irix6*)
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
flag_passed=no
|
||||
for f in -32 -64 -n32 ABI -cckr -mips1 -mips2 -mips3 -mips4; do
|
||||
case "$f" in
|
||||
ABI)
|
||||
test -n "$SGI_ABI" && flag_passed=yes
|
||||
if test "$flag_passed" = no && test "$ac_cv_prog_gcc" = yes; then
|
||||
# Choose the ABI flag according to GCC's specs.
|
||||
if $CC -dumpspecs 2>&1 | sed '/^\*link:$/,/^$/!d' | egrep -e '[ ]-32' >/dev/null; then
|
||||
LD="${LD-ld} -32"
|
||||
else
|
||||
LD="${LD-ld} -n32"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
|
||||
flag_passed=yes
|
||||
LD="${LD-ld} $f"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
;;
|
||||
|
||||
*-*-sco3.2v5*)
|
||||
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
||||
CFLAGS="$CFLAGS -belf"
|
||||
;;
|
||||
esac]
|
||||
|
||||
# Actually configure libtool. ac_aux_dir is where install-sh is found.
|
||||
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
||||
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
|
||||
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
|
||||
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|
||||
|| AC_MSG_ERROR([libtool configure failed])
|
||||
])
|
||||
|
||||
# AM_PROG_LD - find the path to the GNU or non-GNU linker
|
||||
AC_DEFUN(AM_PROG_LD,
|
||||
[AC_ARG_WITH(gnu-ld,
|
||||
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
||||
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
||||
ac_prog=ld
|
||||
if test "$ac_cv_prog_gcc" = yes; then
|
||||
# Check if gcc -print-prog-name=ld gives a path.
|
||||
AC_MSG_CHECKING([for ld used by GCC])
|
||||
ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
||||
case "$ac_prog" in
|
||||
# Accept absolute paths.
|
||||
/*)
|
||||
test -z "$LD" && LD="$ac_prog"
|
||||
;;
|
||||
"")
|
||||
# If it fails, then pretend we aren't using GCC.
|
||||
ac_prog=ld
|
||||
;;
|
||||
*)
|
||||
# If it is relative, then search for the first ld in PATH.
|
||||
with_gnu_ld=unknown
|
||||
;;
|
||||
esac
|
||||
elif test "$with_gnu_ld" = yes; then
|
||||
AC_MSG_CHECKING([for GNU ld])
|
||||
else
|
||||
AC_MSG_CHECKING([for non-GNU ld])
|
||||
fi
|
||||
AC_CACHE_VAL(ac_cv_path_LD,
|
||||
[if test -z "$LD"; then
|
||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||
for ac_dir in $PATH; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if test -f "$ac_dir/$ac_prog"; then
|
||||
ac_cv_path_LD="$ac_dir/$ac_prog"
|
||||
# Check to see if the program is GNU ld. I'd rather use --version,
|
||||
# but apparently some GNU ld's only accept -v.
|
||||
# Break only if it was the GNU/non-GNU ld that we prefer.
|
||||
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
||||
test "$with_gnu_ld" != no && break
|
||||
else
|
||||
test "$with_gnu_ld" != yes && break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
IFS="$ac_save_ifs"
|
||||
else
|
||||
ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
||||
fi])
|
||||
LD="$ac_cv_path_LD"
|
||||
if test -n "$LD"; then
|
||||
AC_MSG_RESULT($LD)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
||||
AC_SUBST(LD)
|
||||
AM_PROG_LD_GNU
|
||||
])
|
||||
|
||||
AC_DEFUN(AM_PROG_LD_GNU,
|
||||
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
|
||||
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
||||
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
||||
ac_cv_prog_gnu_ld=yes
|
||||
else
|
||||
ac_cv_prog_gnu_ld=no
|
||||
fi])
|
||||
])
|
||||
|
||||
# AM_PROG_NM - find the path to a BSD-compatible name lister
|
||||
AC_DEFUN(AM_PROG_NM,
|
||||
[AC_MSG_CHECKING([for BSD-compatible nm])
|
||||
AC_CACHE_VAL(ac_cv_path_NM,
|
||||
[case "$NM" in
|
||||
/*)
|
||||
ac_cv_path_NM="$NM" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||
for ac_dir in /usr/ucb $PATH /bin; do
|
||||
test -z "$ac_dir" && dir=.
|
||||
if test -f $ac_dir/nm; then
|
||||
# Check to see if the nm accepts a BSD-compat flag.
|
||||
if ($ac_dir/nm -B /dev/null 2>&1; exit 0) | grep /dev/null >/dev/null; then
|
||||
ac_cv_path_NM="$ac_dir/nm -B"
|
||||
elif ($ac_dir/nm -p /dev/null 2>&1; exit 0) | grep /dev/null >/dev/null; then
|
||||
ac_cv_path_NM="$ac_dir/nm -p"
|
||||
else
|
||||
ac_cv_path_NM="$ac_dir/nm"
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
IFS="$ac_save_ifs"
|
||||
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
||||
;;
|
||||
esac])
|
||||
NM="$ac_cv_path_NM"
|
||||
AC_MSG_RESULT([$NM])
|
||||
AC_SUBST(NM)
|
||||
])
|
||||
188
missing
Executable file
188
missing
Executable file
|
|
@ -0,0 +1,188 @@
|
|||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# 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, 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.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||
error status if there is no known handling for PROGRAM.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
autoconf touch file \`configure'
|
||||
autoheader touch file \`config.h.in'
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing - GNU libit 0.0"
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: Unknown \`$1' option"
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
aclocal)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`acinclude.m4' or \`configure.in'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`configure.in'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`acconfig.h' or \`configure.in'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
|
||||
if test -z "$files"; then
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
|
||||
test -z "$files" || files="$files.in"
|
||||
else
|
||||
files=`echo "$files" | sed -e 's/:/ /g'`
|
||||
fi
|
||||
test -z "$files" && files="config.h.in"
|
||||
touch $files
|
||||
;;
|
||||
|
||||
automake)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print \
|
||||
| sed 's/^\(.*\).am$/touch \1.in/' \
|
||||
| sh
|
||||
;;
|
||||
|
||||
bison|yacc)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.y' file. You may need the \`Bison' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Bison' from any GNU archive site."
|
||||
rm -f y.tab.c y.tab.h
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.y)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.c
|
||||
fi
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f y.tab.h ]; then
|
||||
echo >y.tab.h
|
||||
fi
|
||||
if [ ! -f y.tab.c ]; then
|
||||
echo 'main() { return 0; }' >y.tab.c
|
||||
fi
|
||||
;;
|
||||
|
||||
lex|flex)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.l' file. You may need the \`Flex' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Flex' from any GNU archive site."
|
||||
rm -f lex.yy.c
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.l)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" lex.yy.c
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f lex.yy.c ]; then
|
||||
echo 'main() { return 0; }' >lex.yy.c
|
||||
fi
|
||||
;;
|
||||
|
||||
makeinfo)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
indirectly affecting the aspect of the manual. The spurious
|
||||
call might also be the consequence of using a buggy \`make' (AIX,
|
||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||
the \`GNU make' package. Grab either from any GNU archive site."
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
||||
fi
|
||||
touch $file
|
||||
;;
|
||||
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
||||
system. You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
it often tells you about the needed prerequirements for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
36
mkinstalldirs
Executable file
36
mkinstalldirs
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
#! /bin/sh
|
||||
# mkinstalldirs --- make directory hierarchy
|
||||
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||
# Created: 1993-05-16
|
||||
# Last modified: 1994-03-25
|
||||
# Public domain
|
||||
|
||||
errstatus=0
|
||||
|
||||
for file in ${1+"$@"} ; do
|
||||
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||
shift
|
||||
|
||||
pathcomp=
|
||||
for d in ${1+"$@"} ; do
|
||||
pathcomp="$pathcomp$d"
|
||||
case "$pathcomp" in
|
||||
-* ) pathcomp=./$pathcomp ;;
|
||||
esac
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
echo "mkdir $pathcomp" 1>&2
|
||||
mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
|
||||
fi
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
errstatus=$lasterr
|
||||
fi
|
||||
|
||||
pathcomp="$pathcomp/"
|
||||
done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# mkinstalldirs ends here
|
||||
70
po/Makefile.am
Normal file
70
po/Makefile.am
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
POFILES =
|
||||
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
GMOFILES = $(POFILES:.po=.gmo)
|
||||
|
||||
localedir = $(kde_locale)
|
||||
|
||||
MAINTAINERCLEANFILES = $(GMOFILES)
|
||||
|
||||
GMSGFMT = @GMSGFMT@
|
||||
MSGFMT = @MSGFMT@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
EXTRA_DIST = $(PACKAGE).pot $(POFILES) $(GMOFILES)
|
||||
|
||||
|
||||
all: all-@USE_NLS@
|
||||
install-data-local: install-@USE_NLS@
|
||||
|
||||
SUFFIXES = .po .gmo
|
||||
|
||||
.po.mo:
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
.po.gmo:
|
||||
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
|
||||
&& rm -f $$file && $(GMSGFMT) -o $$file $<
|
||||
|
||||
all-yes: $(GMOFILES)
|
||||
all-no:
|
||||
|
||||
install-yes: all
|
||||
@catalogs='$(GMOFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
destdir=$(localedir); \
|
||||
lang=`echo $$cat | sed 's/\.gmo//'`; \
|
||||
name=$(PACKAGE).mo \
|
||||
dir=$$destdir/$$lang/LC_MESSAGES; \
|
||||
$(mkinstalldirs) $$dir; \
|
||||
$(INSTALL_DATA) $$cat $$dir/$$name; \
|
||||
echo "installing $$cat as $$dir/$$name"; \
|
||||
done
|
||||
|
||||
install-no:
|
||||
|
||||
uninstall-local:
|
||||
@catalogs='$(GMOFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
destdir=$(localedir); \
|
||||
lang=`echo $$cat | sed 's/\.gmo//'`; \
|
||||
name=$(PACKAGE).mo; \
|
||||
dir=$$destdir/$$lang/LC_MESSAGES; \
|
||||
rm -f $$cat $$dir/$$name; \
|
||||
echo "removing $$dir/$$name" ; \
|
||||
done
|
||||
|
||||
merge:
|
||||
@catalogs='$(POFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
name=$(PACKAGE).pot ; \
|
||||
echo $$cat $$name; \
|
||||
msgmerge $$cat $$name > $$cat.new ; \
|
||||
if diff $$cat $$cat.new; then \
|
||||
rm $$cat.new; \
|
||||
else \
|
||||
mv $$cat.new $$cat ; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
333
po/Makefile.in
Normal file
333
po/Makefile.in
Normal file
|
|
@ -0,0 +1,333 @@
|
|||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_alias = @build_alias@
|
||||
build_triplet = @build@
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
target_alias = @target_alias@
|
||||
target_triplet = @target@
|
||||
CC = @CC@
|
||||
CPP = @CPP@
|
||||
CXX = @CXX@
|
||||
GLINC = @GLINC@
|
||||
GLLIB = @GLLIB@
|
||||
IDL = @IDL@
|
||||
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
|
||||
KDE_INCLUDES = @KDE_INCLUDES@
|
||||
KDE_LDFLAGS = @KDE_LDFLAGS@
|
||||
KDE_RPATH = @KDE_RPATH@
|
||||
LD = @LD@
|
||||
LIBCOMPAT = @LIBCOMPAT@
|
||||
LIBCRYPT = @LIBCRYPT@
|
||||
LIBDL = @LIBDL@
|
||||
LIBJPEG = @LIBJPEG@
|
||||
LIBMICO = @LIBMICO@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPNG = @LIBPNG@
|
||||
LIBPTHREAD = @LIBPTHREAD@
|
||||
LIBPYTHON = @LIBPYTHON@
|
||||
LIBQIMGIO = @LIBQIMGIO@
|
||||
LIBSOCKET = @LIBSOCKET@
|
||||
LIBTIFF = @LIBTIFF@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBUCB = @LIBUCB@
|
||||
LIBUTIL = @LIBUTIL@
|
||||
LIBXDMCP = @LIBXDMCP@
|
||||
LIBZ = @LIBZ@
|
||||
LIB_KDECORE = @LIB_KDECORE@
|
||||
LIB_KDEUI = @LIB_KDEUI@
|
||||
LIB_KFILE = @LIB_KFILE@
|
||||
LIB_KFM = @LIB_KFM@
|
||||
LIB_KHTML = @LIB_KHTML@
|
||||
LIB_KHTMLW = @LIB_KHTMLW@
|
||||
LIB_KIMGIO = @LIB_KIMGIO@
|
||||
LIB_LIBS = @LIB_LIBS@
|
||||
LIB_QT = @LIB_QT@
|
||||
LIB_X11 = @LIB_X11@
|
||||
LN_S = @LN_S@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MICO_INCLUDES = @MICO_INCLUDES@
|
||||
MICO_LDFLAGS = @MICO_LDFLAGS@
|
||||
MOC = @MOC@
|
||||
NM = @NM@
|
||||
PACKAGE = @PACKAGE@
|
||||
PAMINC = @PAMINC@
|
||||
PAMLIBPATHS = @PAMLIBPATHS@
|
||||
PAMLIBS = @PAMLIBS@
|
||||
PASSWDLIB = @PASSWDLIB@
|
||||
PYTHONINC = @PYTHONINC@
|
||||
PYTHONLIB = @PYTHONLIB@
|
||||
QT_INCLUDES = @QT_INCLUDES@
|
||||
QT_LDFLAGS = @QT_LDFLAGS@
|
||||
RANLIB = @RANLIB@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
XBINDIR = @XBINDIR@
|
||||
XPMINC = @XPMINC@
|
||||
XPMLIB = @XPMLIB@
|
||||
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||
X_INCLUDES = @X_INCLUDES@
|
||||
X_LDFLAGS = @X_LDFLAGS@
|
||||
X_SERVER = @X_SERVER@
|
||||
ac_xdmdir = @ac_xdmdir@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
install_root = @install_root@
|
||||
kde_appsdir = @kde_appsdir@
|
||||
kde_bindir = @kde_bindir@
|
||||
kde_cgidir = @kde_cgidir@
|
||||
kde_confdir = @kde_confdir@
|
||||
kde_datadir = @kde_datadir@
|
||||
kde_htmldir = @kde_htmldir@
|
||||
kde_icondir = @kde_icondir@
|
||||
kde_includes = @kde_includes@
|
||||
kde_libraries = @kde_libraries@
|
||||
kde_locale = @kde_locale@
|
||||
kde_mimedir = @kde_mimedir@
|
||||
kde_minidir = @kde_minidir@
|
||||
kde_partsdir = @kde_partsdir@
|
||||
kde_sounddir = @kde_sounddir@
|
||||
kde_toolbardir = @kde_toolbardir@
|
||||
kde_wallpaperdir = @kde_wallpaperdir@
|
||||
qt_includes = @qt_includes@
|
||||
qt_libraries = @qt_libraries@
|
||||
x_includes = @x_includes@
|
||||
x_libraries = @x_libraries@
|
||||
xdmconfigsubdir = @xdmconfigsubdir@
|
||||
|
||||
POFILES =
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
GMOFILES = $(POFILES:.po=.gmo)
|
||||
|
||||
localedir = $(kde_locale)
|
||||
|
||||
MAINTAINERCLEANFILES = $(GMOFILES)
|
||||
|
||||
GMSGFMT = @GMSGFMT@
|
||||
MSGFMT = @MSGFMT@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
EXTRA_DIST = $(PACKAGE).pot $(POFILES) $(GMOFILES)
|
||||
|
||||
SUFFIXES = .po .gmo
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = gtar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .gmo .po
|
||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps po/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = po
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am:
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am: install-data-local
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-local
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
installdirs:
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
|
||||
installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-local install-data-am install-data install-am install \
|
||||
uninstall-local uninstall-am uninstall all-redirect all-am all \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
all: all-@USE_NLS@
|
||||
install-data-local: install-@USE_NLS@
|
||||
|
||||
.po.mo:
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
.po.gmo:
|
||||
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
|
||||
&& rm -f $$file && $(GMSGFMT) -o $$file $<
|
||||
|
||||
all-yes: $(GMOFILES)
|
||||
all-no:
|
||||
|
||||
install-yes: all
|
||||
@catalogs='$(GMOFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
destdir=$(localedir); \
|
||||
lang=`echo $$cat | sed 's/\.gmo//'`; \
|
||||
name=$(PACKAGE).mo \
|
||||
dir=$$destdir/$$lang/LC_MESSAGES; \
|
||||
$(mkinstalldirs) $$dir; \
|
||||
$(INSTALL_DATA) $$cat $$dir/$$name; \
|
||||
echo "installing $$cat as $$dir/$$name"; \
|
||||
done
|
||||
|
||||
install-no:
|
||||
|
||||
uninstall-local:
|
||||
@catalogs='$(GMOFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
destdir=$(localedir); \
|
||||
lang=`echo $$cat | sed 's/\.gmo//'`; \
|
||||
name=$(PACKAGE).mo; \
|
||||
dir=$$destdir/$$lang/LC_MESSAGES; \
|
||||
rm -f $$cat $$dir/$$name; \
|
||||
echo "removing $$dir/$$name" ; \
|
||||
done
|
||||
|
||||
merge:
|
||||
@catalogs='$(POFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
name=$(PACKAGE).pot ; \
|
||||
echo $$cat $$name; \
|
||||
msgmerge $$cat $$name > $$cat.new ; \
|
||||
if diff $$cat $$cat.new; then \
|
||||
rm $$cat.new; \
|
||||
else \
|
||||
mv $$cat.new $$cat ; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
Some files were not shown because too many files have changed in this diff Show more
Reference in a new issue