]> cygwin.com Git - cygwin-apps/setup.git/log
cygwin-apps/setup.git
19 years agoBackport some changes from trunk. setup-200412
Max Bowsher [Thu, 27 Jan 2005 20:50:32 +0000 (20:50 +0000)]
Backport some changes from trunk.

19 years ago2004-11-28 Max Bowsher <maxb@ukf.net>
Max Bowsher [Tue, 28 Dec 2004 14:05:46 +0000 (14:05 +0000)]
2004-11-28  Max Bowsher  <maxb@ukf.net>

* download.cc (check_for_cached): Re-introduce the silent skipping of
wrong-sized package files in local caches, as a "quick fix" that is no
worse than the status quo, to be able to make a release, whilst work
towards a proper fix continues on trunk.

========================= BRANCHPOINT: setup-200412 =========================

19 years agoThis commit was manufactured by cvs2svn to create branch 'setup-200412'.
cvs2svn [Mon, 22 Nov 2004 18:03:11 +0000 (18:03 +0000)]
This commit was manufactured by cvs2svn to create branch 'setup-200412'.

Sprout from master 2004-11-22 18:03:10 UTC Max Bowsher <maxb1@ukf.net> '2004-11-22  Max Bowsher  <maxb@ukf.net>'
Cherrypick from IMPORT 2003-03-13 12:30:14 UTC Max Bowsher <maxb1@ukf.net> 'Import zlib-1.1.4':
    zlib/zlib.html

19 years ago2004-11-22 Max Bowsher <maxb@ukf.net>
Max Bowsher [Mon, 22 Nov 2004 18:03:10 +0000 (18:03 +0000)]
2004-11-22  Max Bowsher  <maxb@ukf.net>

* main.cc (main): Fix bug in one of the 2004-11-19 commits.
Avoid referring to the theLog pointer before it is set.

19 years ago2004-11-20 Max Bowsher <maxb@ukf.net>
Max Bowsher [Sat, 20 Nov 2004 17:25:29 +0000 (17:25 +0000)]
2004-11-20  Max Bowsher  <maxb@ukf.net>

* res.rc (IDD_SOURCE): Clarify the radio-button option descriptions.
Re-layout the radio buttons.

19 years ago2004-11-20 Max Bowsher <maxb@ukf.net>
Max Bowsher [Sat, 20 Nov 2004 16:59:54 +0000 (16:59 +0000)]
2004-11-20  Max Bowsher  <maxb@ukf.net>

Repair the broken detection of wrongly-sized package files.

* download.cc (validateCachedPackage): Make static, since not used
elsewhere. Improve logging. Migrate file-size tests to here, alongside
the MD5 tests.
(check_for_cached): Remove broken testing of file-size, now covered by
the above. Code cleanups.

19 years ago2004-11-19 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 19 Nov 2004 13:38:11 +0000 (13:38 +0000)]
2004-11-19  Max Bowsher  <maxb@ukf.net>

* package_version.cc (dumpAndList): Make dependencies much more
readable in full log output.

19 years ago2004-11-19 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 19 Nov 2004 09:53:30 +0000 (09:53 +0000)]
2004-11-19  Max Bowsher  <maxb@ukf.net>

* proppage.cc (PropertyPage::DialogProc): Wrap in a TOPLEVEL_CATCH
block, since allowing exceptions to unwind into the guts of Windows is
quite disasterous.

19 years ago2004-11-19 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 19 Nov 2004 01:58:02 +0000 (01:58 +0000)]
2004-11-19  Max Bowsher  <maxb@ukf.net>

* main.cc (main): Move option parsing code earlier - it must execute
before any significant object creations, which might test options in
their initialization.

19 years ago2004-11-19 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 19 Nov 2004 01:53:21 +0000 (01:53 +0000)]
2004-11-19  Max Bowsher  <maxb@ukf.net>

* main.cc (main): Remove some junk code - either commented out, or
contained within unreachable preprocessor conditional sections.

19 years ago2004-11-19 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 19 Nov 2004 01:49:14 +0000 (01:49 +0000)]
2004-11-19  Max Bowsher  <maxb@ukf.net>

* install.cc (Installer::installOneSource): Avoid leaking the open
file handles of every tarball that is installed.

19 years ago2004-11-19 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 19 Nov 2004 01:44:59 +0000 (01:44 +0000)]
2004-11-19  Max Bowsher  <maxb@ukf.net>

* package_source.h (packagesource::Canonical, packagesource::Base)
(packagesource::Filename): Add "const" specification to accessor
methods.

19 years ago2004-11-18 Max Bowsher <maxb@ukf.net>
Max Bowsher [Thu, 18 Nov 2004 01:19:09 +0000 (01:19 +0000)]
2004-11-18  Max Bowsher  <maxb@ukf.net>

* archive.h (archive::~archive): Define a pure virtual destructor to
enforce the abstract nature of this class.
* archive.cc (archive::~archive): Pure virtual destructors require an
implementation! Add one.
* io_stream.h (io_stream::destroyed): Remove this severely
brain-damaged implementation of a weakly-enforced abstract class.
The pure virtual destructor was strongly enforcing the abstract nature
anyway.
* io_stream.cc (io_stream::~io_stream): Empty out horribly pointless
code from the pure virtual destructor.
* archive_tar.cc (archive_tar::~archive_tar): Remove all
reference to the removed "destroyed" member.
* archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
* compress_bz.cc (compress_bz::~compress_bz): Ditto.
* compress_gz.cc (compress_gz::~compress_gz): Ditto.
* io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Ditto.
* io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
* io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.

19 years agoCommit missed ChangeLog entry
Max Bowsher [Wed, 17 Nov 2004 15:17:53 +0000 (15:17 +0000)]
Commit missed ChangeLog entry

19 years ago2004-11-17 Max Bowsher <maxb@ukf.net>
Max Bowsher [Wed, 17 Nov 2004 15:02:05 +0000 (15:02 +0000)]
2004-11-17  Max Bowsher  <maxb@ukf.net>

* mount.cc (create_mount): Fix operator precedence error introduced in
first 2004-11-11 commit - warned of by gcc 3.3.3 but not 3.4.1 !

19 years ago2004-11-13 Max Bowsher <maxb@ukf.net>
Max Bowsher [Sat, 13 Nov 2004 00:29:35 +0000 (00:29 +0000)]
2004-11-13  Max Bowsher  <maxb@ukf.net>

Miscellaneous cleanup.

* geturl.cc (getUrlToStream): Make static.
* geturl.h (getUrlToStream): Remove declaration.

* geturl.cc, geturl.h, netio.cc, netio.h, nio-ftp.cc, nio-ftp.h,
nio-http.cc, nio-http.h:
Remove unused "allow_ftp_auth" flag throughout.

19 years ago2004-11-11 Max Bowsher <maxb@ukf.net>
Max Bowsher [Thu, 11 Nov 2004 21:42:05 +0000 (21:42 +0000)]
2004-11-11  Max Bowsher  <maxb@ukf.net>

* libmd5-rfc: New directory, to hold code imported from the libmd5-rfc
project in a clearly delineated fashion.
* libmd5-rfc/README: New file.
* md5.c, md5.h: Delete...
* libmd5-rfc/md5.c, libmd5-rfc/md5.h: ...and replace with pristine
versions from upstream (only change is restoration of upstream CVS
keyword expansions).
* libmd5-rfc/md5main.c: New file.
* Makefile.ami (setup_SOURCES): Edit file paths.
* download.cc, install.cc: Edit include paths.

19 years ago2004-11-11 Max Bowsher <maxb@ukf.net>
Max Bowsher [Thu, 11 Nov 2004 21:31:37 +0000 (21:31 +0000)]
2004-11-11  Max Bowsher  <maxb@ukf.net>

* dialog.cc (fatal): Make capable of handling a passed-in error code,
as an alternative to calling GetLastError().
* dialog.h (fatal): Adjust prototype as above.
* mount.cc (create_mount): Use the above to correctly report errors.

19 years ago2004-10-28 Max Bowsher <maxb@ukf.net>
Max Bowsher [Thu, 28 Oct 2004 21:27:07 +0000 (21:27 +0000)]
2004-10-28  Max Bowsher  <maxb@ukf.net>

* LogFile.cc (LogFile::getFileName), splash.cc (SplashPage::Create),
threebar.cc (ThreeBarProgressPage::SetBar2):
Migrate from cistring and string resources
to String and string literals.
* localdir.cc: Remove unneeded #include of "cistring.h".
* cistring.cc, cistring.h: Remove this now-redundant class.
* Makefile.am: Remove mention of the above removed files.
* res.rc, resource.h: Remove obsolete strings and IDs, both those
obseleted by and obselete before the above changes.
* res.rc: Merge the 2 adjacent STRINGTABLEs.

19 years ago2004-10-27 Max Bowsher <maxb@ukf.net>
Max Bowsher [Wed, 27 Oct 2004 18:23:22 +0000 (18:23 +0000)]
2004-10-27  Max Bowsher  <maxb@ukf.net>

* Makefile.am (setup_SOURCES): Add "RECTWrapper.h". It was missing.

19 years ago2004-10-25 Bas van Gompel <cygsup-patch.buzz@bavag.tmfweb.nl>
Max Bowsher [Mon, 25 Oct 2004 21:49:18 +0000 (21:49 +0000)]
2004-10-25  Bas van Gompel  <cygsup-patch.buzz@bavag.tmfweb.nl>

* package_source.cc (packagesource::set_canonical):
Fix one-off in 'base' when ini is in same dir as package.

19 years ago2004-10-25 Max Bowsher <maxb@ukf.net>
Max Bowsher [Mon, 25 Oct 2004 18:34:31 +0000 (18:34 +0000)]
2004-10-25  Max Bowsher  <maxb@ukf.net>

* main.cc (next_dialog): Remove this legacy global variable.
* download.cc (do_download_thread): Return a value instead of setting
a global variable, then returning void.
(do_download_reflector): Look for the next dialog code as a return
value instead of a global variable.

19 years ago2004-10-25 Max Bowsher <maxb@ukf.net>
Max Bowsher [Mon, 25 Oct 2004 17:06:09 +0000 (17:06 +0000)]
2004-10-25  Max Bowsher  <maxb@ukf.net>

* port.h: Remove this redundant file - all contained definitions are
duplicated in "win32.h".
* Makefile.am, UserSetting.cc, UserSettings.cc, archive.cc,
archive_tar.cc, archive_tar_file.cc, choose.cc, compress.cc,
compress_bz.cc, compress_gz.cc, desktop.cc, find.cc, fromcwd.cc,
iniparse.y, install.cc, io_stream_cygfile.cc, io_stream_file.cc,
main.cc, netio.cc, site.cc, version.cc:
Remove all references to "port.h".

19 years ago2004-10-25 Max Bowsher <maxb@ukf.net>
Max Bowsher [Mon, 25 Oct 2004 13:46:26 +0000 (13:46 +0000)]
2004-10-25  Max Bowsher  <maxb@ukf.net>

Fix compilation with w32api 3.1 and later.

* ControlAdjuster.h, RECTWrapper.h, cistring.h, propsheet.h,
window.cc, window.h: Include "win32.h" not <windows.h> directly.
* win32.h (WINBASEAPI): Define to empty string.

19 years ago2004-09-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
Igor Peshansky [Wed, 15 Sep 2004 13:22:15 +0000 (13:22 +0000)]
2004-09-13  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

* script.cc (run): Kill stdin when running scripts.

19 years ago2004-09-01 Max Bowsher <maxb@ukf.net>
Max Bowsher [Wed, 1 Sep 2004 18:07:32 +0000 (18:07 +0000)]
2004-09-01  Max Bowsher  <maxb@ukf.net>

* Makefile.am: Oops. Unwanted keyword expansion ate the code of the
previous commit. Restore the code, escaped to not look like a keyword.

19 years ago2004-09-01 Max Bowsher <maxb@ukf.net>
Max Bowsher [Tue, 31 Aug 2004 23:03:52 +0000 (23:03 +0000)]
2004-09-01  Max Bowsher  <maxb@ukf.net>

* Makefile.am: Simplify the shell incantation for getting the revision
of ChangeLog from grep-and-sed to just sed.

19 years ago2004-08-31 Max Bowsher <maxb@ukf.net>
Max Bowsher [Tue, 31 Aug 2004 22:54:03 +0000 (22:54 +0000)]
2004-08-31  Max Bowsher  <maxb@ukf.net>

Attain GCC 3.4 compatibility.

* PackageSpecification.h (PackageSpecification): Make the
unnecessarily private copy-constructor public.

19 years ago2004-08-30 Max Bowsher <maxb@ukf.net>
Max Bowsher [Mon, 30 Aug 2004 16:26:03 +0000 (16:26 +0000)]
2004-08-30  Max Bowsher  <maxb@ukf.net>

Rework the implementation of not including -Werror for specific files,
to a way that does not require hardcoding modified automake output back
into its input.

* Makefile.am (AM_CXXFLAGS, BASECXXFLAGS): Seperate out -Werror.
(autoload.o): Drop this rule, -finline-functions is no longer required
and -Werror is acceptable here now we have __attribute__ ((used)).
(WARNONLY_CFLAGS, inilex.o): Drop these.
(EXTRA_PROGRAMS): Add a fake "warnonly" program.
(warnonly_CXXFLAGS): Set to the $(BASECXXFLAGS).
(warnonly_SOURCES): Set to "inilex.cc".
(EXTRA_setup_SOURCES): Set to $(warnonly_SOURCES).
(setup_SOURCES): Remove "inilex.cc".
(setup_LDADD): Add "warnonly-inilex.o".

19 years ago2004-08-30 Max Bowsher <maxb@ukf.net>
Max Bowsher [Mon, 30 Aug 2004 16:17:52 +0000 (16:17 +0000)]
2004-08-30  Max Bowsher  <maxb@ukf.net>

Move closer to GCC 3.4 compatibility.

* IOStreamProvider.h, io_stream_cygfile.cc, io_stream_cygfile.h,
io_stream_file.cc: Do not incorrectly use "enum" after it has been
hidden inside a typedef.
* archive.h: In "virtual func() = 0;", the 0 is a language construct,
not some symbol that might evaluate to 0, and gcc 3.4 enforces this.
* autoload.c (DllInfo.name): Silence warning by making const.
(DLL, autoload_common): __attribute__ ((used)) is now required to
prevent gcc being over-eager in it's optimization, and removing these
seemingly-unused (used only from assembly) functions.
Silences some warnings, too.
* Makefile.am (AM_CXXFLAGS, AM_CFLAGS): The options
-Wstrict-prototypes -Wmissing-prototypes do not apply to C++ and
g++ 3.4 complains about them.

19 years ago2004-08-29 Max Bowsher <maxb@ukf.net>
Max Bowsher [Sun, 29 Aug 2004 16:59:40 +0000 (16:59 +0000)]
2004-08-29  Max Bowsher  <maxb@ukf.net>

* Exception.h: Reformatting, #include more, remove incorrect and
less-than-useful comments.
(TOPLEVEL_CATCH): New preprocessor macro.

* LogFile.cc (LogFile::operator()): Throw an exception object, not a
char* string.

Wrap the top-level of each thread (including the main thread) in a
try...catch block, in order to display a useful error message if an
exception is not caught.
* download.cc (do_download_reflector): Here ...
* ini.cc (do_ini_thread_reflector): ... and here ...
* install.cc (do_install_reflector: ... and here ...
* main.cc (main): ... and here ...
* postinstall.cc (do_postinstall_thread): ... and here ...
* site.cc (do_download_site_info_thread): ... and here!

* msg.h: Include a missing header requirement.
* res.rc (IDS_UNCAUGHT_EXCEPTION, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO):
New strings.
* resource.h (IDS_UNCAUGHT_EXCEPTION)
(IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO): New IDs.

19 years agoAdd missing ChangeLog entry.
Max Bowsher [Sat, 28 Aug 2004 00:15:02 +0000 (00:15 +0000)]
Add missing ChangeLog entry.

19 years ago2004-08-28 Max Bowsher <maxb@ukf.net>
Max Bowsher [Sat, 28 Aug 2004 00:13:12 +0000 (00:13 +0000)]
2004-08-28  Max Bowsher  <maxb@ukf.net>

        * res.rc (IDS_WINDOW_INIT_BADMSG): New string.
        * resource.h (IDS_WINDOW_INIT_BADMSG): New string resource ID.
        * window.cc (Window::FirstWindowProcReflector): Convert an abort()
        into a descriptive error.

19 years ago2004-08-28 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 27 Aug 2004 23:46:14 +0000 (23:46 +0000)]
2004-08-28  Max Bowsher  <maxb@ukf.net>

* Makefile.in, aclocal.m4, configure: Autoreconf. Fixes "make dist"
breakage with srcdir != objdir builds.

19 years ago2004-08-28 Max Bowsher <maxb@ukf.net>
Max Bowsher [Fri, 27 Aug 2004 23:37:37 +0000 (23:37 +0000)]
2004-08-28  Max Bowsher  <maxb@ukf.net>

* Makefile.am (AUTOMAKE_OPTIONS): Add "foreign" for compatibility with
modern automake.

19 years ago2004-08-24 Max Bowsher <maxb@ukf.net>
Max Bowsher [Tue, 24 Aug 2004 19:44:21 +0000 (19:44 +0000)]
2004-08-24  Max Bowsher  <maxb@ukf.net>

The Doug Lee replacement malloc was no longer hooked up with the
buildsystem in any way. Pruning the remaining unused file.

* dlmalloc.c: Removed.

19 years ago2004-08-18 Max Bowsher <maxb@ukf.net>
Max Bowsher [Wed, 18 Aug 2004 22:42:37 +0000 (22:42 +0000)]
2004-08-18  Max Bowsher  <maxb@ukf.net>

"librsync is not wire-compatible with rsync 2.x, and is not likely
to be in the future." -- librsync.sourceforge.net

So, it is of no practical use to setup. Therefore, removing all
rsync related files and code from setup.

* rsync: Directory removed.
* Makefile.am: Remove rsync support from the buildsystem.
* configure.in: Ditto.
* README: Since it seems vanishingly unlikely that it will ever happen,
    remove rsync support from the wishlist.
* io_stream_rsync.cc: Remove.
* io_stream_rsync.h: Remove.

20 years ago2004-04-25 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 25 Apr 2004 15:00:13 +0000 (15:00 +0000)]
2004-04-25  Robert Collins  <rbtcollins@hotmail.com>

* package_meta.cc (packagemeta::set_requirements): fix problem with libpcre0 not being pulled in automatically.

20 years ago2004-04-25 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 25 Apr 2004 13:05:04 +0000 (13:05 +0000)]
2004-04-25  Robert Collins  <rbtcollins@hotmail.com>

* IniDBBuilderPackage.cc (dumpAndList): Move out to packageversion for reuse.
* package_meta.cc (packagemeta::logAllVersions): log dependencies.
* package_version.cc (packageversion::depends): provide a const accessor.
(dumpAndList): Moved from INIDBBuilder.cc.
* package_version.h: declare new method and function.

20 years ago2003-12-21 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 20 Dec 2003 22:29:58 +0000 (22:29 +0000)]
2003-12-21  Robert Collins  <rbtcollins@hotmail.com>

* main.cc (main): Update to head libgetopt++ syntax.

20 years ago2003-12-10 20:45:32 GMT Robert Collins <rbtcollins@hotmail.com> patch-17
Robert Collins [Wed, 10 Dec 2003 20:53:22 +0000 (20:53 +0000)]
2003-12-10 20:45:32 GMT Robert Collins <rbtcollins@hotmail.com> patch-17

    Summary:
      bump library version
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-17

    modified files:
     Makefile.am src/OptionSet.cc

2003-12-10 13:14:39 GMT Robert Collins <rbtcollins@hotmail.com> patch-16

    Summary:
      extract argumentless parsing logic
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-16

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc

2003-12-10 12:25:55 GMT Robert Collins <rbtcollins@hotmail.com> patch-15

    Summary:
      simplify logic by consolidating Process calls in OptionSet::doOption
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-15

    modified files:
     src/OptionSet.cc

2003-12-10 12:24:22 GMT Robert Collins <rbtcollins@hotmail.com> patch-14

    Summary:
      move option value passing out of the direct path of option processing
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-14

    modified files:
     src/OptionSet.cc

2003-12-10 12:21:32 GMT Robert Collins <rbtcollins@hotmail.com> patch-13

    Summary:
      return actual Option results
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-13

    modified files:
     src/OptionSet.cc

2003-12-10 12:19:39 GMT Robert Collins <rbtcollins@hotmail.com> patch-12

    Summary:
      extract OptionSet::findOption
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-12

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc

2003-12-10 12:14:36 GMT Robert Collins <rbtcollins@hotmail.com> patch-11

    Summary:
      make OptionSet::processOne() return void
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-11

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc

2003-12-10 12:10:42 GMT Robert Collins <rbtcollins@hotmail.com> patch-10

    Summary:
      extract method OptionSet::doOption
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-10

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc

2003-12-10 11:57:05 GMT Robert Collins <rbtcollins@hotmail.com> patch-9

    Summary:
      extract method OptionSet::isOption
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-9

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc

2003-12-10 11:48:31 GMT Robert Collins <rbtcollins@hotmail.com> patch-8

    Summary:
      eliminate passed in self reference to OptionSet::processOne
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-8

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc

2003-12-10 11:36:01 GMT Robert Collins <rbtcollins@hotmail.com> patch-7

    Summary:
      remove OptionState class
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-7

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc

2003-12-10 11:32:33 GMT Robert Collins <rbtcollins@hotmail.com> patch-6

    Summary:
      remove OptionStateFinder class
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-6

    modified files:
     src/OptionSet.cc

2003-12-10 06:52:51 GMT Robert Collins <rbtcollins@hotmail.com> patch-5

    Summary:
      use up option values that are in the next argv slot
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-5

    modified files:
     src/OptionSet.cc

2003-12-10 06:47:33 GMT Robert Collins <rbtcollins@hotmail.com> patch-4

    Summary:
      support step by step parsing - using non options to switch 'mode'
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-4

    modified files:
     include/getopt++/OptionSet.h src/OptionSet.cc
     tests/OptionSet.cc

2003-12-10 04:37:57 GMT Robert Collins <rbtcollins@hotmail.com> patch-3

    Summary:
      deprecate the DefaultOptionSet approach for chaining options
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-3

    modified files:
     include/getopt++/BoolOption.h include/getopt++/Option.h
     include/getopt++/OptionSet.h include/getopt++/StringOption.h
     src/BoolOption.cc src/OptionSet.cc src/StringOption.cc
     tests/BoolOptionTest.cc tests/OptionSet.cc tests/testoption.cc

2003-12-10 04:01:28 GMT Robert Collins <rbtcollins@hotmail.com> patch-2

    Summary:
      remove getopt logic
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-2

    removed files:
     include/.arch-ids/cdefs.h.id include/.arch-ids/getopt.h.id
     include/cdefs.h include/getopt.h src/.arch-ids/getopt.c.id
     src/getopt.c

    modified files:
     Makefile.am configure.in include/getopt++/DefaultFormatter.h
     include/getopt++/OptionSet.h include/getopt++/StringOption.h
     src/BoolOption.cc src/StringOption.cc

2003-12-10 03:50:09 GMT Robert Collins <rbtcollins@hotmail.com> patch-1

    Summary:
      add test case, and reimplement getopt from scratch
    Revision:
      libgetoptplusplus--own-getopt--1.0--patch-1

    new files:
     tests/.arch-ids/OptionSet.cc.id tests/OptionSet.cc

    modified files:
     Makefile.am include/getopt++/BoolOption.h
     include/getopt++/DefaultFormatter.h include/getopt++/Option.h
     include/getopt++/OptionSet.h include/getopt++/StringOption.h
     src/BoolOption.cc src/OptionSet.cc src/StringOption.cc

2003-12-09 06:32:21 GMT Robert Collins <rbtcollins@hotmail.com> base-0

    Summary:
      initial import
    Revision:
      libgetoptplusplus--own-getopt--1.0--base-0

    (automatically generated log message)

    new files:
     COPYING ChangeLog Makefile.am README bootstrap.sh configure.in
     include/cdefs.h include/getopt++/BoolOption.h
     include/getopt++/DefaultFormatter.h
     include/getopt++/GetOption.h include/getopt++/Option.h
     include/getopt++/OptionSet.h include/getopt++/StringOption.h
     include/getopt.h src/BoolOption.cc src/GetOption.cc
     src/Option.cc src/OptionSet.cc src/StringOption.cc
     src/getopt.c tests/BoolOptionTest.cc tests/optioniterator.cc
     tests/testoption.cc

20 years agoadd a BoolOption testcase
Robert Collins [Thu, 27 Nov 2003 13:17:34 +0000 (13:17 +0000)]
add a BoolOption testcase

20 years ago2003-11-16 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 16 Nov 2003 10:06:46 +0000 (10:06 +0000)]
2003-11-16 Robert Collins  <rbtcollins@hotmail.com>

* src/OptionSet.cc (OptionSet::Process): Call the default optionset
if one is supplied and no options are in the default.

20 years ago2003-11-2 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 2 Nov 2003 08:40:50 +0000 (08:40 +0000)]
2003-11-2  Robert Collins  <rbtcollins@hotmail.com>

* ControlAdjuster.h (ControlPosition::CP_MIDDLE): Rename to
CP_CENTERED.
* ControlAdjuster.cc: Ditto.

20 years ago2003-10-31 Frank Richter <frichter@gmx.li>
Robert Collins [Sat, 1 Nov 2003 07:23:47 +0000 (07:23 +0000)]
2003-10-31  Frank Richter  <frichter@gmx.li>

* localdir.cc (OnNext): When SelectDirectoryA() fails, display a
message with the error returned from the system instead of just
'could not change dir'. Also, offer the user to 'Retry', 'Ignore' the
error or 'Abort' the directory change.

20 years ago2003-10-31 Frank Richter <frichter@gmx.li>
Robert Collins [Sat, 1 Nov 2003 07:21:28 +0000 (07:21 +0000)]
2003-10-31  Frank Richter  <frichter@gmx.li>

* propsheet.cc (PropSheetWndProc): Don't do child resizing if a the
window gets minimized. Otherwise some glitches (e.g. wrong child
sizes) occur.
Added support for WM_GETMINMAXINFO. Prevents the property sheet from
getting smaller than the original size.

20 years ago2003-11-1 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 1 Nov 2003 07:04:39 +0000 (07:04 +0000)]
2003-11-1  Robert Collins  <rbtcollins@hotmail.com>

        * ControlAdjuster.h (ControlDimension): Add.
        (ControlAdjuster): Factor adjust functionality into ControlInfo.
        * ControlAdjuster.cc (ControlAdjuster::adjust): Ditto.
        (ControlAdjuster::ControlInfo::adjust): Ditto.

20 years ago2003-10-31 Igor Pechtchanski <pechtcha@cs.nyu.edu>
Robert Collins [Sat, 1 Nov 2003 05:58:46 +0000 (05:58 +0000)]
2003-10-31  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

* ControlAdjuster.h (ControlPosition): New enum type.
(ControlInfo::horizontalPos, ControlInfo::verticalPos): New
instance variables.
(ControlInfo::anchorLeft, ControlInfo::anchorTop,
ControlInfo::anchorRight, ControlInfo::anchorBottom): Remove.
* ControlAdjuster.cc (ControlAdjuster::AdjustControls): Switch to
using position specifiers instead of anchors.
* choose.cc (ChooserControlsInfo): Ditto.
* proppage.cc (DefaultControlsInfo): Ditto.
* propsheet.cc (PropSheetControlsInfo): Ditto.
* site.cc (SiteControlsInfo): Position specifiers for site
selection dialog controls.
* threebar.cc (ThreeBarControlsInfo): Position specifiers for
progress dialog controls.

20 years ago2003-10-27 Ralf Habacker <ralf.habacker@freenet.de>
Robert Collins [Mon, 27 Oct 2003 19:49:46 +0000 (19:49 +0000)]
2003-10-27  Ralf Habacker  <ralf.habacker@freenet.de>

* main.cc (HelpOption): New instance.
(main): Added help command line option handling.
* localdir.cc (LocalDirOption): New instance.
(LocalDirSetting::load): allow setting localdir from command line.

20 years ago2003-10-16 Frank Richter <frichter@gmx.li>
Robert Collins [Sun, 26 Oct 2003 19:38:30 +0000 (19:38 +0000)]
2003-10-16  Frank Richter  <frichter@gmx.li>

* ControlAdjuster.cc: New file, helper to move elements of a dialog
along when the it's resized.
* ControlAdjuster.h: Ditto.
* Makefile.am: Add new source files.
* proppage.cc (PropertyPage::DialogProc): Adjust some common
controls (Cygwin icon top right, separator below) when a page is
resized.
(PropertyPage::PropertyPage): Dito.
* propsheet.cc (IsDialog): New. Test whether a window is a dialog.
Used internally by resize logic.
(EnumPages): New. Used internally by resize logic: resizes the
property sheet's individual pages.
(PropSheetWndProc): New. Hook for the propery sheet window proc.
(PropSheetProc): More style tweaks, add maximize box and thick border
as well. Hook into the property sheet's window proc.
(PropSheet::AdjustPageSize): New. Adjust the metrics of a single page
to fit nicely into the property sheet. Part of resize logic.
* res.rc (All dialogs): The top-right Cygwin icon and top separator
now have IDs distinct from IDC_STATIC, so their metrics can be
adjusted upon a resize. Also, all those Cygwin icons are at the exact
same spot now.
* choose.cc (ChooserPage::ChooserPage): Now the controls on the
chooser page move/size when the page size is changed.
* choose.h: Dito.

20 years ago2003-10-23 Jerry D. Hedden <jerry@hedden.us>
Robert Collins [Sun, 26 Oct 2003 12:02:52 +0000 (12:02 +0000)]
2003-10-23  Jerry D. Hedden <jerry@hedden.us>

        * ConnectionSetting.cc (ConnectionSetting::load): Load proxysettings.
        (ConnectionSetting::save): Save proxy settings.

20 years ago2003-10-07 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Mon, 6 Oct 2003 22:19:59 +0000 (22:19 +0000)]
2003-10-07  Robert Collins <rbtcollins@hotmail.com>

        * proppage.h (PropertyPage::wantsActivation): const correctness fix.

20 years ago2003-08-19 Max Bowsher <maxb@ukf.net>
Max Bowsher [Tue, 19 Aug 2003 10:07:53 +0000 (10:07 +0000)]
2003-08-19  Max Bowsher  <maxb@ukf.net>

* win32.h: Define NOMINMAX only if not already defined - because
libstdc++-v3 3.3.1 defines NOMINMAX itself.

20 years ago2003-08-03 Max Bowsher <maxb@ukf.net>
Max Bowsher [Sun, 3 Aug 2003 21:24:02 +0000 (21:24 +0000)]
2003-08-03  Max Bowsher  <maxb@ukf.net>

* ChangeLog: Fix broken line-wrapping throughout. Clarify that
"Ran automake" in 2003-07-26 entry was in bz2lib and zlib subdirs.

20 years ago2003-08-03 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Sun, 3 Aug 2003 16:25:18 +0000 (16:25 +0000)]
2003-08-03  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

* propsheet.cc (Copyright): Update copyright dates.
(PropSheet::PropSheet): Remove NumPropPages initialization.
(PropSheet::CreatePages): Use PropertyPages.size() instead of
NumPropPages.
(PropSheet::Create): Ditto.
(PropSheet::AddPage): Change to use new PropertyPages std::vector<>.
* propsheet.h (Copyright): Update copyright dates.
(File Scope): Include <vector>.
(PropSheet::PropertyPages): Change from array to vector<>.
(PropSheet::NumPropPages): Remove.

20 years ago2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Sat, 2 Aug 2003 00:02:01 +0000 (00:02 +0000)]
2003-08-02  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

Changes modified by Max Bowsher  <maxb@ukf.net>
* splash.cc (Copyright): Update copyright dates.
(SplashPage::OnInit): Remove call to SetDlgItemFont().  Now handled in
base class.
* proppage.h (PropertyPage::setTitleFont): Declare.
* proppage.cc (Copyright): Update copyright dates.
(PropertyPage::DialogProc WM_INITDIALOG): Move all font setting code,
including that from splash.cc into new function...
(PropertyPage::setTitleFont): Create, using moved code. Change font
"MS Sans Serif" to "MS Shell Dlg" in line with recent res.rc change.
Set font for IDC_STATIC_WELCOME_TITLE here, to allow easy re-use of
style for future "Finished" page.

20 years ago2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Fri, 1 Aug 2003 23:54:14 +0000 (23:54 +0000)]
2003-08-02  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

* propsheet.cc: Include "resource.h".
(PropSheet::Create): Add the Cygwin icon in the left of the title bar.

20 years ago2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Fri, 1 Aug 2003 22:20:13 +0000 (22:20 +0000)]
2003-08-01  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

* proppage.cc (PropertyPage::FirstDialogProcReflector): Modify comment.

20 years ago2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Fri, 1 Aug 2003 22:17:04 +0000 (22:17 +0000)]
2003-08-01  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

* proppage.h (Copyright): Update copyright dates.
(PropertyPage): Document OnNext and OnBack.

20 years agoWhitespace.
Max Bowsher [Fri, 1 Aug 2003 10:41:36 +0000 (10:41 +0000)]
Whitespace.

20 years ago2003-07-31 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Thu, 31 Jul 2003 12:21:21 +0000 (12:21 +0000)]
2003-07-31  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

* proppage.cc (PropertyPage::Create): Use more self-documenting
MAKEINTRESOURCE() instead of cast to LPCSTR.

20 years ago2003-07-31 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Thu, 31 Jul 2003 10:49:43 +0000 (10:49 +0000)]
2003-07-31  Robert Collins  <rbtcollins@hotmail.com>

* README: Mark completed items complete.

20 years agoUpdate README
Robert Collins [Thu, 31 Jul 2003 10:48:20 +0000 (10:48 +0000)]
Update README

20 years agocheck line ending behaviour
Robert Collins [Thu, 31 Jul 2003 10:44:28 +0000 (10:44 +0000)]
check line ending behaviour

20 years ago2003-07-31 Pierre Humblet <pierre.humblet@ieee.org>
Max Bowsher [Wed, 30 Jul 2003 23:24:18 +0000 (23:24 +0000)]
2003-07-31  Pierre Humblet  <pierre.humblet@ieee.org>

* main.cc (set_default_sec): Set token owner from token user.
Always try to set the token primary group to Users or Admins.

20 years ago2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
Igor Peshansky [Wed, 30 Jul 2003 23:10:35 +0000 (23:10 +0000)]
2003-07-30  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

* String++.h (String::replace): New instance functions.
* String++.cc (String::replace): Implement.
* filemanip.cc (backslash): Change to use String::replace.
* desktop.cc (make_cygwin_bat): Escape '%' in path.

20 years ago2003-07-11 Igor Pechtchanski <pechtcha@cs.nyu.edu>
Igor Peshansky [Wed, 30 Jul 2003 23:04:49 +0000 (23:04 +0000)]
2003-07-11  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

* String++.h (TOSTRING): New macro.
* UserSettings.cc (UserSettings::deRegisterSetting): Fix
erroneous __LINE__/__FILE__ usage.
* download.cc (validateCachedPackage, check_for_cached): Ditto.
* geturl.cc (getUrlToStream): Ditto.
* install.cc (md5_one): Ditto.

20 years ago2003-07-30 Max Bowsher <maxb@ukf.net>
Max Bowsher [Wed, 30 Jul 2003 21:49:53 +0000 (21:49 +0000)]
2003-07-30  Max Bowsher  <maxb@ukf.net>

* ini.cc (do_ini_thread): Return bool.
(do_ini_thread_reflector): Put returned bool in lParam.
* threebar.cc (WM_APP_SETUP_INI_DOWNLOAD_COMPLETE): Rework for new
meaning of lParam. Replace erroneous use of do_fromcwd with
SetActivePageByID (IDD_SOURCE).

20 years agoRun d2u.
Max Bowsher [Wed, 30 Jul 2003 10:41:43 +0000 (10:41 +0000)]
Run d2u.

20 years agoWhitespace.
Max Bowsher [Wed, 30 Jul 2003 09:20:48 +0000 (09:20 +0000)]
Whitespace.

20 years ago2003-07-30 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Wed, 30 Jul 2003 09:04:27 +0000 (09:04 +0000)]
2003-07-30  Robert Collins  <rbtcollins@hotmail.com>

* ConnectionSetting.cc: New file, persist connection type selection.
* ConnectionSetting.h: Ditto.
* net.cc: Hold a ConnectionSetting instance to trigger the logic.
(NetPage::OnInit): Don't force net_method to any value.
* Makefile.am: Add new source files.

20 years ago2003-07-30 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Wed, 30 Jul 2003 08:44:51 +0000 (08:44 +0000)]
2003-07-30  Robert Collins  <rbtcollins@hotmail.com>

* SourceSetting.cc: New file, persist source selection.
* SourceSetting.h: Ditto.
* source.cc: Hold a Source setting instance to trigger the logic.
* Makefile.am: Add new source files.

20 years ago2003-07-30 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Wed, 30 Jul 2003 08:13:09 +0000 (08:13 +0000)]
2003-07-30  Robert Collins  <rbtcollins@hotmail.com>

* UserSettings.h (UserSettings::settingFileForLoad): Extracted method
from LocalDirSetting::load().
* UserSettings.cc (UserSettings::settingFileForLoad): Ditto.
* UserSettings.h (UserSettings::settingFileForSave): Extracted method
from LocalDirSetting::save().
* UserSettings.cc (UserSettings::settingFileForSave): Ditto.
* localdir.cc (LocalDirSetting::load): Extract location logic to
UserSettings.
(LocalDirSetting::save): Extract location logic to UserSettings.
* site.cc (SiteSetting::getSavedSites): Use
UserSettings::settingFileForLoad.
(SiteSetting::save): Use UserSettings::settingFileForSave.

20 years ago2003-07-30 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Wed, 30 Jul 2003 07:26:47 +0000 (07:26 +0000)]
2003-07-30  Robert Collins  <rbtcollins@hotmail.com>

* PickView.cc: Adjust ::GetClientRect(..) to the inherited one
throughout.

20 years agoIndentation.
Max Bowsher [Wed, 30 Jul 2003 00:04:56 +0000 (00:04 +0000)]
Indentation.

20 years ago2003-07-29 Max Bowsher <maxb@ukf.net>
Max Bowsher [Tue, 29 Jul 2003 14:14:06 +0000 (14:14 +0000)]
2003-07-29  Max Bowsher  <maxb@ukf.net>

Based on a patch by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
* AntiVirus.cc (AntiVirusPage::wantsActivation): Define.
* AntiVirus.h (AntiVirusPage::wantsActivation): Declare.
* localdir.cc (LocalDirPage::OnBack): Remove logic subsumed by
RootPage::wantsActivation.
* proppage.cc (PropertyPage::DialogProc): Call wantsActivation(),
and skip to next page in sequence if activation is refused.
* proppage.h (PropertyPage::wantsActivation): Default implementation.
* root.cc (RootPage::wantsActivation): Define.
* root.h (RootPage::wantsActivation): Declare.
* source.cc: Don't include "AntiVirus.h".
(SourcePage::OnNext): Remove logic subsumed by
RootPage::wantsActivation.
(SourcePage::OnBack): Remove logic subsumed by
AntiVirusPage::wantsActivation.
* splash.cc: Don't include "AntiVirus.h" or "dialog.h".
(SplashPage::OnNext): Remove - subsumed by
AntiVirusPage::wantsActivation.
* splash.h (SplashPage::OnNext): Remove declaration.

20 years ago2003-07-29 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 29 Jul 2003 10:48:31 +0000 (10:48 +0000)]
2003-07-29  Robert Collins  <rbtcollins@hotmail.com>

* PickView.h (PickView::refresh): New method.
* PickView.cc (PickView::refresh): Extracted from various
ChooserPage callers.
* choose.cc: Use PickView::refresh wherever possible.

20 years ago2003-07-29 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 29 Jul 2003 10:41:13 +0000 (10:41 +0000)]
2003-07-29  Robert Collins  <rbtcollins@hotmail.com>

* choose.h (ChooserPage::createListView): Remove last parameter.
(ChooserPage::getDefaultListViewSize): Extracted method.
* choose.cc (ChooserPage::createListView): Remove last parameter.
(ChooserPage::getDefaultListViewSize): Extracted method.

20 years ago2003-07-29 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 29 Jul 2003 10:34:50 +0000 (10:34 +0000)]
2003-07-29  Robert Collins  <rbtcollins@hotmail.com>

* choose.cc (ChooserPage::createListView): Remove unneeded
parameter.
* choose.h: Ditto.

20 years ago2003-07-29 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 29 Jul 2003 10:07:22 +0000 (10:07 +0000)]
2003-07-29  Robert Collins  <rbtcollins@hotmail.com>

* package_db.h (packagedb::fillMissingCategory): Move from ChooserPage.
* choose.h (ChooserPage::fillMissingCategory): Delete.
* package_db.cc (packagedb::fillMissingCategory): Move from ChooserPage.
* choose.cc (ChooserPage::fillMissingCategory): Delete and adjust
callers.

20 years ago2003-07-29 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Tue, 29 Jul 2003 09:54:13 +0000 (09:54 +0000)]
2003-07-29  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

* dialog.h (do_fromcwd): Change function declaration.
* fromcwd.cc (do_fromcwd): Change return type to bool.  Eliminate
use of next_dialog, return true or false instead.
* localdir.cc (LocalDirPage::OnNext): Use do_fromcwd()'s return
value instead of next_dialog.

20 years ago2003-07-29 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 29 Jul 2003 09:41:26 +0000 (09:41 +0000)]
2003-07-29  Robert Collins  <rbtcollins@hotmail.com>

* PickView.h (CATEGORY_EXPANDED): Move from choose.h
(CATEGORY_COLLAPSED): Move from choose.cc.
(PickView::setViewMode): Move from ChooserPage.
* choose.h (CATEGORY_EXPANDED): Delete.
(CATEGORY_COLLAPSED): Delete.
(ChooserPage::setViewMode): Delete.
* PickView.cc (PickView::setViewMode): Move from ChooserPage.
* chooser.cc (ChooserPage::setViewMode): Delete, and adjust callers
throughout.

20 years ago2003-07-28 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
Max Bowsher [Mon, 28 Jul 2003 17:47:00 +0000 (17:47 +0000)]
2003-07-28  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>

* AntiVirus.cc (AntiVirusPage::OnNext): Do not explicitly specify the
page to display next, since it follows in the default page ordering
anyway.

20 years ago2003-07-28 Max Bowsher <maxb@ukf.net>
Max Bowsher [Mon, 28 Jul 2003 09:55:19 +0000 (09:55 +0000)]
2003-07-28  Max Bowsher  <maxb@ukf.net>

* dialog.h: (NEXT): Remove obsolete macro.
* site.cc (save_dialog): Remove use of NEXT(), and non-functional
unnecessary error handler.

20 years ago2003-07-28 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Mon, 28 Jul 2003 08:32:07 +0000 (08:32 +0000)]
2003-07-28  Robert Collins  <rbtcollins@hotmail.com>

* package_meta.h (packagemeta::addToCategoryAll): Declare.
* package_meta.cc (packagemeta::addToCategoryAll): New method,
separated to allow clear iteration.
* choose.cc (ChooserPage::fillMissingCategory): BUGFIX: "all" is
meant to be added unconditionally.

20 years agoRun d2u on choose.cc - strip ^Ms accidentally introduced in 2.123
Max Bowsher [Sun, 27 Jul 2003 13:55:08 +0000 (13:55 +0000)]
Run d2u on choose.cc - strip ^Ms accidentally introduced in 2.123

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 13:18:01 +0000 (13:18 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

        * Generic.h: New file, home for generic programming tools.
        (visit_if): Move here from package_meta.cc.
        Adjust to be fully parameterised.
        * package_meta.h (packagemeta::hasNoCategories): Query for generic
        programming.
        (packagemeta::setDefaultCategories): set categories for packages
        with none.
        * package_meta.cc: Move visit_if out. Adjust users for
        full paramterised operation.
        (packagemeta::hasNoCategories): Implement.
        (packagemeta::setDefaultCategories): Implement.
        * choose.cc (ChooserPage::fillMissingCategory): Use visit_if to
        reduce duplicate code.
        (ChooserPage::setExistence): Delete.
        * choose.h (ChooserPage::setExistence): Rename to
        packagedb::setExistence.
        * package_db.h (packagedb::setExistence): Declare.
        * package_db.cc (packagedb::setExistence): Copy from choose.cc

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 10:29:53 +0000 (10:29 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

        * localdir.h (LocalDirPage::OnInit): Remove.
        * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting
        ::load().
        (LocalDirSetting::load): Copied from LocalDirPage::OnInit.
        * site.h (SitePage::OnInit): Remove.
        (SitePage::getSavedSites): New member, replaces get_saved_sites.
        (SitePage::registerSavedSite): New member, replaces
        register_saved_site.
        * site.cc (SitePage::OnInit): Move to SiteSetting::load().
        (SiteSetting::load): Copied from SitePage::OnInit.
        (SitePage::getSavedSites): Renamed from get_saved_sites.
        (SitePage::registerSavedSite): Renamed from register_saved_site.
        (do_download_site_info_thread): Don't look at the list size for
        determining if the download was successful.

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 10:13:11 +0000 (10:13 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

        * choose.h (ChooserPage::setViewMode): Remove HWND from
        signature.
        (ChooserPage::defaultTrust): Ditto.
        Move to PickView.
        (ChooserPage::ifChecked): Use Window helper function
        IsButtonChecked.
        * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND()
        throughout.
        Update all callers with new signature.
        (ChooserPage::defaultTrust): Ditto.
        Move to PickView.
        * PickView.h (PickView::defaultTrust): Declare.
        * PickView.cc (PickView::defaultTrust): Copy from chooser.cc.

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 09:52:02 +0000 (09:52 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

        * PickView.h (PickView::lv): Eliminate.
        * PickView.cc (PickView::init): Replace use of lv with
        GetHWND().
        (PickView::list_click): Ditto.
        * choose.h (ChooserPage::lv): Eliminate.
        * choose.cc: Replace lv with chooser->GetHWND()
        throughout.

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 09:40:06 +0000 (09:40 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

* PickView.h (PickView::chooser): Eliminate.
(PickView::list_vscroll): Make non-static.
(PickView::list_hscroll): Ditto.
(PickView::list_click): Ditto.
(PickView::paint): Ditto.
* PickView.cc (PickView::list_vscroll): Eliminate use
of PickView::chooser.
(PickView::list_hscroll): Ditto.
(PickView::list_click): Ditto.
(PickView::paint): Ditto.
* choose.cc (Chooser::createListView): Eliminate use
of PickView::chooser.

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 09:18:02 +0000 (09:18 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

* PickView.h (PickView): Inherit from Window.
(PickView::RegisterWindows): Move from ChooserPage.
(PickView::listview_proc): Likewise.
(PickView::paint): Ditto.
(PickView::list_click): Ditto.
(PickView::list_hscroll): Ditto.
(PickView::list_vscroll): Ditto.
(PickView::lv): Ditto.
(PickView::chooser): Ditto.
(PickView::Create): Override Windows::Create as we migrate.
(PickView::registerWindowClass): Renamed RegisterWindows.
(PickView::WindowClassAtom): Prevent double registration.
(PickView::init): Declare.
* PickView.cc: Adjust for new inheritance.
(PickView::RegisterWindows): Move from ChooserPage.
(PickView::listview_proc): Likewise.
(PickView::paint): Ditto.
(PickView::list_click): Ditto.
(PickView::list_hscroll): Ditto.
(PickView::list_vscroll): Ditto.
(PickView::lv): Ditto.
(PickView::chooser): Ditto.
(PickView::Create): Introduce stub.
(PickView::RegisterWindows): Rename
(PickView::init): Extracted from constructor to allow
reordering.
* chooser.h (ChooserPage::registerWindows): Rename to
PickView::RegisterWindows.
(ChooserPage::listview_proc): Likewise.
(ChooserPage::paint): Ditto.
(ChooserPage::list_click): Ditto.
(ChooserPage::list_hscroll): Ditto.
(ChooserPage::list_vscroll): Ditto.
(ChooserPage::lv): Duplicate into PickView, observe
as non-static.
(ChooserPage::chooser): Ditto.
* chooser.cc (ChooserPage::registerWindows): Delete.
(ChooserPage::listview_proc): Ditto.
(ChooserPage::paint): Ditto.
(ChooserPage::list_click): Ditto.
(ChooserPage::list_hscroll): Ditto.
(ChooserPage::list_vscroll): Ditto.
(ChooserPage::createListView): Create() on PickView.
* window.h (Window::RegisterWindowClass): Make virtual
to allow Create to become a Template Method, and rename
to registerWindowClass as it's not static.
* window.cc (Window::registerWindowClass): Ditto.
(Window::FirstWindowProcReflector): BUGFIX: Set window
handle to prevent races with the window procedure.

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 01:48:02 +0000 (01:48 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

* choose.cc (set_view_mode): Rename to ChooserPage::setViewMode.
(default_trust): Rename to ChooserPage::defaultTrust.
(fill_missing_category): Rename to ChooserPage::fillMissingCategory.
(set_existence): Rename to ChooserPage::setExistence.
(register_windows): Rename to ChooserPage::registerWindows.
(listview_proc): Rename to ChooserPage::listview_proc.
(paint): Rename to ChooserPage::paint.
(list_click): Rename to ChooserPage::list_click.
(list_hscroll): Rename to ChooserPage::list_hscroll.
(list_vscroll): Rename to ChooserPage::list_vscroll.
(lv): Rename to ChooserPage::lv.
(chooser): Rename to ChooserPage::chooser.
* choose.h (ChooserPage::setViewMode): Declare.
(ChooserPage::defaultTrust): Declare.
(ChooserPage::fillMissingCategory): Declare.
(ChooserPage::setExistence): Declare.
(ChooserPage::registerWindows): Declare.
(ChooserPage::listview_proc): Declare.
(ChooserPage::paint): Declare.
(ChooserPage::list_click): Declare.
(ChooserPage::list_hscroll): Declare.
(ChooserPage::list_vscroll): Declare.
(ChooserPage::lv): Declare.
(ChooserPage::chooser): Declare.

20 years ago2003-07-27 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 00:47:01 +0000 (00:47 +0000)]
2003-07-27  Robert Collins  <rbtcollins@hotmail.com>

        * choose.cc (create_listview): Use for_each instead of explicit                 iteration.
        (create_listview): Rename to ChooserPage::createListview.
        * package_meta.h (packagemeta::set_requirements): Explicitly separate           the 1 and 2 parameter versions.                                         CVS: ----------------------------------------------------------------------

20 years ago2003-07-26 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 27 Jul 2003 00:12:36 +0000 (00:12 +0000)]
2003-07-26  Robert Collins  <rbtcollins@hotmail.com>

* String++.h (String::operator !=): Declare for char * and String.
* String++.cc (String::operator !=): Implement.
* package_meta.cc(StringConcatenator): Move above all users.
(_visit_if): Predicate support for visitors.
(packagemeta::getReadableCategoryList): Refactor to use
StringConcatenator with a predicate.
* choose.h: Remove unneeded c++ guards.

20 years ago2003-07-26 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 26 Jul 2003 14:39:28 +0000 (14:39 +0000)]
2003-07-26  Robert Collins  <rbtcollins@hotmail.com>

* choose.cc (scan_downloaded_files): Rename to packagemeta::ScanDownloadedFiles.
(scanAVersion): Rename to packageversion::scan.
(GetParentRect): Rename to ChooserPage::getParentRect.
* choose.h (ChooserPage::getParentRect): Declare.
* package_meta.h (packagemeta::ScanDownloadedFiles): Declare.
* package_version.h (packageversion::scan): Declare.
* package_version.cc (packageversion::scan): Move from choose.cc
* package_meta.cc (packagemeta::ScanDownloadedFiles): Move from choose.cc

20 years ago2003-07-26 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 26 Jul 2003 13:35:21 +0000 (13:35 +0000)]
2003-07-26  Robert Collins  <rbtcollins@hotmail.com>

* choose.cc (ChooserPage::OnNext): log before starting activity threads.
(ChooserPage::OnInit): Remove temporary variable frame.
(ChooserPage::setPrompt): Extract method from OnInit.
(choose_inst_text): Remove unused variable.
* choose.h(ChooserPage::setPrompt): Declare
* res.rc (IDD_CHOOSE): Bugfix: the chooser was setting a non-present
caption.

20 years ago2003-07-26 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 26 Jul 2003 13:12:16 +0000 (13:12 +0000)]
2003-07-26  Robert Collins  <rbtcollins@hotmail.com>

Remove package specific code from choose.cc.
Update copyrights where appropriate.
* choose.cc(ChooserPage::OnNext): Extract logging to
packagemeta::logSelectionStatus.
* package_meta.cc(packagemeta::logSelectionStatus): Extract from
ChooserPage::OnNext.
(StringConcatenator): helper for logSelectionStatus.
(action_caption): Make const.
* package_meta.h(packagemeta): Declare logSelectionStatus.
(packagemeta::action_caption): Make const.
* package_version.cc(packageversion::sourcePackage): Make const.
* package_version.h(packageversion::sourcePackage): Make const.

20 years ago2003-07-26 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 26 Jul 2003 12:13:18 +0000 (12:13 +0000)]
2003-07-26  Robert Collins  <rbtcollins@hotmail.com>

* choose.cc: Update copyright.
(ChooserPage::keepClicked): Extracted from OnMessageCmd.
(ChooserPage::changeTrust): Ditto.
* choose.h (ChooserPage): Declare keepClicked and changeTrust.
(ChooserPage::ifChecked): Extracted from OnMessageCmd.
* package_meta.h (SetRequirement): Adapter for visiting package collections.

20 years ago2003-07-26 Max Bowsher <maxb@ukf.net>
Max Bowsher [Sat, 26 Jul 2003 10:22:09 +0000 (10:22 +0000)]
2003-07-26  Max Bowsher  <maxb@ukf.net>

* tests/.cvsignore: New file, listing Makefile.in.

This page took 0.081776 seconds and 5 git commands to generate.