eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DidYouKnowTipViewer':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: DidYouKnowTipViewer


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--DidYouKnowTipViewer

Package:
stx:libhtml
Category:
System-Documentation
Version:
rev: 1.43 date: 2024/03/19 11:50:28
user: cg
file: DidYouKnowTipViewer.st directory: libhtml
module: stx stc-classLibrary: libhtml

Description:


shows 'did you know' tips.
The tips are found in a folder as individual html documents,
which are chosen randomly.


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2008 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

image specs
o  stxIcon
stxIcon

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:DidYouKnowTipViewer andSelector:#windowSpec
     DidYouKnowTipViewer new openInterface:#windowSpec
     DidYouKnowTipViewer open

o  windowSpecToAddTip
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:DidYouKnowTipViewer andSelector:#windowSpecToAddTip
     DidYouKnowTipViewer new openInterface:#windowSpecToAddTip

menu specs
o  mainMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:DidYouKnowTipViewer andSelector:#mainMenu
     (Menu new fromLiteralArrayEncoding:(DidYouKnowTipViewer mainMenu)) startUp


Instance protocol:

aspects
o  allTipsShownHolder

o  currentTipTextHolder

o  currentTipURLHolder

o  htmlTextForNewTip

o  iconHolder

o  infoHolder

o  nextTipEnabledHolder

o  publishTipToExeptHolder

o  showEnglishTips

o  showTipOfTheDayAtStartupHolder

o  textAcceptChannel

o  tipTitleHolder

initialization
o  defaultIcon

o  initialize
(comment from inherited method)
nothing done here;
but can be redefined in concrete applications

o  postBuildWith: aBuilder
(comment from inherited method)
this is sent after an interface is built from a spec,
but only iff the appModel is not the same as the topView's app
(i.e. if it is not a build for the same appModel again).
In the other case, postBuildAsSubcanvasWith is invoked.
Can be redefined in subclasses for additional setup after
the view has been built, but not yet opened.

menu actions
o  checkTipsDirectory

o  chooseTip

o  clearHistory

o  doAddTip
send an email to stx-support@exept.de

o  openAddTipWindow

o  openDocumentation
This method was generated by the Browser.
It will be invoked when the menu-item 'help-documentation' is selected.
Also called when <F1> is pressed

o  openEditorOnCurrentTip

menu-dynamic
o  historyMenu

private
o  addToTipHistory: aTipName

o  chooseRandomTip
self new chooseRandomTip

o  isInTipHistory: aTip

o  noMoreTipsInfoText

o  noTipsInfoText

o  showNextTip
self new showNextTip

o  showNoMoreTipsInfo

o  showNoTipsInfo

o  showText: tipText

o  showTipFile: tipFilename
|tipText|

o  showTipFromHistory: tipName

o  tipsDirectory
look for a folder named:
docDir / lang / 'didYouKnowTips
where docDir is the ST/X doc/online folder

Usage example(s):

     self basicNew tipsDirectory 


Examples:


Starting the application:
  DidYouKnowTipViewer open



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:23:39 GMT