From: spixx Date: Sat, 11 Nov 2006 11:48:29 +0000 (+0000) Subject: added help button and dialog X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=891f5a5472453a604ef955badd82cdef62bbcf57;p=lsystem3d.git added help button and dialog --- diff --git a/src/gui.h b/src/gui.h index b5664c8..1eae6e0 100644 --- a/src/gui.h +++ b/src/gui.h @@ -1,6 +1,6 @@ // Copyright (C) 2006 Erik Dahlberg // -// This file is part of LSystem3d. +// This file is part of LSystem3D. // // LSystem3D is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -44,6 +44,7 @@ public: enum { ID_GENERATE = FXMainWindow::ID_LAST, + ID_HELP, ID_LAST }; @@ -61,7 +62,7 @@ public: void create(); /** - * Called by the system when the "generate"-button is pressed + * Called by the system when the "Generate" button is pressed * @param sender the sender object * @param selector message type and id * @param data event related data @@ -69,6 +70,15 @@ public: */ long onGenerateButtonPressed(FXObject *sender, FXSelector selector, void *data); + /** + * Called by the system when the "Help" button is pressed + * @param sender the sender object + * @param selector message type and id + * @param data event related data + * @return + */ + long onHelpButtonPressed(FXObject *sender, FXSelector selector, void *data); + protected: /** @@ -83,10 +93,12 @@ private: FXTextField *_axiomTextField; // Axiom FXText *_rulesText; // Rules FXRealSpinner *_angleRealSpinner; // Angle - FXSpinner *_iterationsSpinner; // Iterations + FXSpinner *_depthSpinner; // Depth FXRealSpinner *_diameterRealSpinner; // Diameter - FXRealSpinner *_diameterFactorRealSpinner; // Diameter factor //TODO: "diameter factor"? + FXRealSpinner *_diameterFactorRealSpinner; // Diameter factor + + FXMessageBox *_helpMessageBox; // Help dialog LindenmayerSystem *_lsystem; // The Lindenmayer-system