On Tue, 21 Oct 2003 02:39:30 +0200 (Romance Daylight Time) Vadim Zeitlin <[EMAIL 
PROTECTED]> wrote:

> On Mon, 20 Oct 2003 14:25:24 -0400 (EDT) Richard Welty <[EMAIL PROTECTED]> wrote:
> 
> RW> if i need a dialog resembling but not the same as, say,
> RW> wxFolderFiltersDialog (to allow the user to pick an arbitrary set of
> RW> filters to apply to a selected set of messages), do i just cut-and-paste

>  No, please, anything but not this. Duplicated code is [much] worse than no
> code at all.

didn't think so, although i saw some duplicated code in the area of Filter
Folders. i'll clean that up.
 
> RW> and develope my new dialog, or is there some standard for reusability?

>  If you can't use the existing dialog, extract the part of it which you can
> use in a base class and derive the existing class and your new dialog from
> it. It may be a bit more work now than cut-and-pasting but it's a huge
> saving globally.

i think there's some useful restructuring to be done with the folders that
present checklists of filters. i'll commence on that momentarily.
 
> RW>   (i know the answer in java land, but this ain't java land...)

>  I suspect it is the same... I even suspect it is also the same in all
> other languages, C and assembler included.

agreed. but the OO model in C++ has certain weaknesses that make
some things slightly more challenging[1]. i'm still working on
remembering the stuff i used to know about how the OO model in C++
works.

in the java world, i'd just make any GUI entity that might be reused
into a bean and move on...

richard
[1] the loss of type information across casts to superclasses being
a major problem in the past, i don't know what current thinking is.
-- 
Richard Welty                                         [EMAIL PROTECTED]
Averill Park Networking                                         518-573-7592
    Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to