jv_statascripteditor.st
changeset 0 da028ec9cc07
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jv_statascripteditor.st	Fri Mar 13 22:51:48 2015 +0000
@@ -0,0 +1,162 @@
+"{ Package: 'jv:statascripteditor' }"
+
+"{ NameSpace: Smalltalk }"
+
+ApplicationDefinition subclass:#jv_statascripteditor
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'* Projects & Packages *'
+!
+
+
+!jv_statascripteditor class methodsFor:'description'!
+
+excludedFromPreRequisites
+    "list packages which are to be explicitely excluded from the automatic constructed
+     prerequisites list. If empty, everything that is found along the inheritance of any of
+     my classes is considered to be a prerequisite package."
+
+    ^ #(
+    )
+!
+
+isGUIApplication
+    "return true, if this is a GUI application.
+     (these need more libraries and use a different startup procedure)"
+
+    ^ true
+!
+
+mandatoryPreRequisites
+    "list packages which are mandatory as a prerequisite.
+     This are packages containing superclasses of my classes and classes which
+     are extended by myself.
+     They are mandatory, because we need these packages as a prerequisite for loading and compiling.
+     This method is generated automatically,
+     by searching along the inheritance chain of all of my classes."
+
+    ^ #(
+        #'stx:libbasic'    "ApplicationDefinition - superclass of jv_statascripteditor"
+        #'stx:libtool'    "MultiViewToolApplication - superclass of StataScriptEditor"
+        #'stx:libview2'    "ApplicationModel - superclass of StataScriptEditor"
+    )
+!
+
+referencedPreRequisites
+    "list packages which are a prerequisite, because they contain
+     classes which are referenced by my classes.
+     We do not need these packages as a prerequisite for compiling or loading,
+     however, a class from it may be referenced during execution and having it
+     unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
+     includes explicit checks for the package being present.
+     This method is generated automatically,
+     by searching all classes (and their packages) which are referenced by my classes."
+
+    ^ #(
+        #'stx:libbasic2'    "UUID - referenced by StataScriptEditorMain class>>applicationUUID"
+        #'stx:libwidg'    "HVScrollableView - referenced by StataScriptEditor>>createWorkspace"
+    )
+!
+
+subProjects
+    "list packages which are known as subprojects.
+     This method is generated automatically; however, when generating automatically,
+     packages are only added - never removed, unless listed in #excludedFromSubProjects."
+
+    ^ #(
+)
+! !
+
+!jv_statascripteditor class methodsFor:'description - contents'!
+
+classNamesAndAttributes
+    "lists the classes which are to be included in the project.
+     Each entry in the list may be: a single class-name (symbol),
+     or an array-literal consisting of class name and attributes.
+     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
+
+    ^ #(
+        "<className> or (<className> attributes...) in load order"
+        StataScriptEditor
+        StataScriptEditorMain
+        StataScriptLogImporter
+        StataScriptLogParser
+        #'jv_statascripteditor'
+    )
+!
+
+extensionMethodNames
+    "list class/selector pairs of extensions.
+     A correponding method with real names must be present in my concrete subclasses"
+
+    ^ #(
+    )
+! !
+
+!jv_statascripteditor 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
+    "Returns a company string which will appear in <lib>.rc.
+     Under win32, this is placed into the dlls file-info"
+
+    ^ 'Jan Vrany'
+
+    "Modified: / 05-02-2015 / 06:31:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+description
+    "Returns a description string which will appear in nt.def / bc.def"
+
+    ^ 'Simple Editor for STATA .do files'
+
+    "Modified: / 05-02-2015 / 06:31:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+legalCopyright
+    "Returns a copyright string which will appear in <lib>.rc.
+     Under win32, this is placed into the dlls file-info"
+
+    ^ 'COPYRIGHT (C) 2015 Jan Vrany'
+
+    "Modified: / 05-02-2015 / 06:32:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+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
+    "Returns a product name which will appear in <lib>.rc.
+     Under win32, this is placed into the dlls file-info.
+     This method is usually redefined in a concrete application definition"
+
+    ^ 'Stata Script Editor'
+
+    "Modified: / 05-02-2015 / 06:32:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
+!jv_statascripteditor class methodsFor:'description - startup'!
+
+startupClassName
+    "the class that starts the show in its startupSelector method"
+
+    ^ 'StataScriptEditorMain'
+! !
+
+!jv_statascripteditor class methodsFor:'documentation'!
+
+version_HG
+    ^ '$Changeset: <not expanded> $'
+! !
+