1 /***************************************************************************
3 NListtree.mcc - New Listtree MUI Custom Class
4 Copyright (C) 1999-2001 by Carsten Scholling
5 Copyright (C) 2001-2014 NList Open Source Team
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 NList classes Support Site: http://www.sf.net/projects/nlist-classes
21 ***************************************************************************/
23 /******************************************************************************/
27 /******************************************************************************/
29 #include <proto/exec.h>
30 #include <proto/intuition.h>
32 /******************************************************************************/
34 /* MCC/MCP name and version */
36 /* ATTENTION: The FIRST LETTER of NAME MUST be UPPERCASE */
38 /******************************************************************************/
40 #include "NListtree.h"
44 /******************************************************************************/
45 /* include the minimal startup code to be able to start the class from a */
46 /* shell without crashing the system */
47 /******************************************************************************/
48 #include "shellstart.c"
50 #define VERSION LIB_VERSION
51 #define REVISION LIB_REVISION
53 #define CLASS MUIC_NListtree
54 #define SUPERCLASS MUIC_NList
56 #define INSTDATA NListtree_Data
58 #define USERLIBID CLASS " " LIB_REV_STRING " [" SYSTEMSHORT "/" CPU "] (" LIB_DATE ") " LIB_COPYRIGHT
59 #define MASTERVERSION 19
64 #define USEDCLASSESP used_mcps
65 static const char *used_mcps
[] = { "NListtree.mcp", "NListviews.mcp", NULL
};
67 #define MIN_STACKSIZE 8192
69 /******************************************************************************/
70 /* define the functions used by the startup code ahead of including mccinit.c */
71 /******************************************************************************/
72 static BOOL
ClassInit(UNUSED
struct Library
*base
);
73 static VOID
ClassExpunge(UNUSED
struct Library
*base
);
75 /******************************************************************************/
76 /* include the lib startup code for the mcc/mcp (and muimaster inlines) */
77 /******************************************************************************/
80 /******************************************************************************/
81 /* define all implementations of our user functions */
82 /******************************************************************************/
83 static BOOL
ClassInit(UNUSED
struct Library
*base
)
85 if(StartClipboardServer() == TRUE
)
94 static VOID
ClassExpunge(UNUSED
struct Library
*base
)
96 ShutdownClipboardServer();