Is Prime via fluid

  1. fluid IsPrimeGUI.fl
  2. create new class (IsPrimeGUI)
  3. add constructor (IsPrimeGUI())
  4. add window to the constructor (new Group Window) name the window win
  5. add input textbox (named question)
  6. add button (named askQuestion) label is "Is prime?"
  7. add output textbox (named answer)
  8. now save, write code and take a look at the source code
  9. Note, there is no main!! You will need an IsPrimeMain.cxx main that creates an instance of IsPrimeGUI (and shows the window!!) (not done automagically by what we have created so far).
  10. ok, now you need a Makefile, here is my Makefile (examine its contents after class).
  11. Now you can make IsPrime
  12. Add in code handled by the IsPrime button press