module FoxTails

module FTWarning
  #
  # FXApp.warn(string)
  #
  # Issue a warning that will appear ass soon as possible.
  # This is useful when the condition occurs in non-GUI code
  # that doesn't have a window for the warning to belong to.
  #
  def self.warn(str)
    app = FXApp.instance
    app.addChore do
      FXMessageBox.warning(app.getMainWindow(), ## ??
        MBOX_OK, "Warning!", str)
    end
  end
  ## warnings should have classes, and there should be a checkbox to hide
  ## all warnings of that class
end

end