Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
authorStefan Vogel <sv@exept.de>
Sat, 09 Mar 2013 00:47:27 +0100
changeset 6022 6d21e8a9929a
parent 6021 95e38167b702
child 6023 4b20fb242062
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
stx_libview.st
--- a/stx_libview.st	Fri Mar 08 11:06:07 2013 +0100
+++ b/stx_libview.st	Sat Mar 09 00:47:27 2013 +0100
@@ -56,10 +56,31 @@
     )
 !
 
-preRequisites
+mandatoryPreRequisites
+    "list all required mandatory packages.
+     Packages are mandatory, if they contain superclasses of the package's classes
+     or classes which are extended by this package.
+     This list can be maintained manually or (better) generated and
+     updated by scanning the superclass hierarchies
+     (the browser has a menu function for that)
+     However, often too much is found, and you may want to explicitely
+     exclude individual packages in the #excludedFromPreRequisites method."
+
     ^ #(
-	#'stx:libbasic'    "Object - superclass of MappedPalette "
-	#'stx:libbasic2'    "IntegerArray - referenced by XWorkstation>>supportedTargetAtoms "
+        #'stx:libbasic'    "MessageSend - superclass of WindowEvent::ButtonMultiPressEvent "
+    )
+!
+
+referencedPreRequisites
+    "list all packages containing classes referenced by the packages's members.
+     This list can be maintained manually or (better) generated and
+     updated by looking for global variable accesses
+     (the browser has a menu function for that)
+     However, often too much is found, and you may want to explicitely
+     exclude individual packages in the #excludedFromPreRequisites method."
+
+    ^ #(
+        #'stx:libbasic2'    "Text - referenced by SimpleView>>shortcutAndTranslatedStringFrom: "
     )
 ! !
 
@@ -363,18 +384,28 @@
         GradientBackground
         WidgetEvent
         (XEmbedContainerView unix)
-    ).
-
-    "Modified: / 30-06-2011 / 10:25:39 / cg"
+        XWorkstation
+        GLXWorkstation
+    )
 !
 
 extensionMethodNames
+    "lists the extension methods which are to be included in the project.
+     Entries are 2-element array literals, consisting of class-name and selector."
+
     ^ #(
     )
 ! !
 
 !stx_libview class methodsFor:'description - project information'!
 
+applicationIconFileName
+    "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
+
+    ^ nil
+    "/ ^ self applicationName
+!
+
 companyName
     "Return a companyname which will appear in <lib>.rc"
 
@@ -395,14 +426,28 @@
     ^ 'Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 1998-2012'
 
     "Modified: / 18-07-2012 / 19:12:02 / cg"
+!
+
+productInstallDirBaseName
+    "Returns a default installDir which will appear in <app>.nsi.
+     This is usually not the one you want to keep"
+
+    ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
+!
+
+productName
+    "Return a product name which will appear in <lib>.rc"
+
+    ^ 'Smalltalk/X'
 ! !
 
 !stx_libview class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.61 2013-02-28 22:20:11 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.62 2013-03-08 23:47:27 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.61 2013-02-28 22:20:11 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.62 2013-03-08 23:47:27 stefan Exp $'
 ! !
+