Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
authorStefan Vogel <sv@exept.de>
Sat, 09 Mar 2013 00:54:36 +0100
changeset 4179 d033737183e6
parent 4178 ce92a9ae0fee
child 4180 71610b2b34fa
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
stx_libwidg2.st
--- a/stx_libwidg2.st	Fri Mar 08 10:50:50 2013 +0100
+++ b/stx_libwidg2.st	Sat Mar 09 00:54:36 2013 +0100
@@ -69,21 +69,35 @@
     )
 !
 
-preRequisites
-    "list all required packages.
+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 and looking for
-     global variable accesses. (the browser has a menu function for that)
-     Howevery, often too much is found, and you may want to explicitely
-     exclude individual packages in the #excludedFromPrerequisites method."
+     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 LinkButton "
-        #'stx:libbasic2'    "List - superclass of HierarchicalFileList "
-        #'stx:libui'    "DataSetColumnSpec - referenced by ListModelView::TableRenderer::ColumnDescriptor>>dataSetColumnSpec: "
-        #'stx:libview'    "GraphicsMedium - superclass of ImageView "
-        #'stx:libview2'    "Model - superclass of TabItem "
-        #'stx:libwidg'    "DialogBox - superclass of EnterBoxWithList "
+        #'stx:libbasic'    "Notification - superclass of ProgressNotification "
+        #'stx:libbasic2'    "List - superclass of HierarchicalList "
+        #'stx:libview'    "TopView - superclass of ExtendedComboBox::MenuWrapper "
+        #'stx:libview2'    "ApplicationModel - superclass of PrintingDialog "
+        #'stx:libwidg'    "ListView - superclass of FilenameEditField "
+    )
+!
+
+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:libui'    "DividerSpec - referenced by Separator>>specClass "
     )
 ! !
 
@@ -228,6 +242,13 @@
 
 !stx_libwidg2 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"
 
@@ -246,14 +267,28 @@
     ^ 'Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 1998-2012'
 
     "Modified: / 18-07-2012 / 19:12:17 / 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_libwidg2 class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/stx_libwidg2.st,v 1.44 2012-10-23 13:59:24 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/stx_libwidg2.st,v 1.45 2013-03-08 23:54:36 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg2/stx_libwidg2.st,v 1.44 2012-10-23 13:59:24 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/stx_libwidg2.st,v 1.45 2013-03-08 23:54:36 stefan Exp $'
 ! !
+