tools/tooluidemo/ortooluidemo_tool.h

tools/tooluidemo/ortooluidemo_tool.h
#ifndef __ORTOOL_UIDEMO_TOOL_H__
#define __ORTOOL_UIDEMO_TOOL_H__
/***************************************************************************************
Autodesk(R) Open Reality(R) Samples
(C) 2009 Autodesk, Inc. and/or its licensors
All rights reserved.
AUTODESK SOFTWARE LICENSE AGREEMENT
Autodesk, Inc. licenses this Software to you only upon the condition that
you accept all of the terms contained in the Software License Agreement ("Agreement")
that is embedded in or that is delivered with this Software. By selecting
the "I ACCEPT" button at the end of the Agreement or by copying, installing,
uploading, accessing or using all or any portion of the Software you agree
to enter into the Agreement. A contract is then formed between Autodesk and
either you personally, if you acquire the Software for yourself, or the company
or other legal entity for which you are acquiring the software.
AUTODESK, INC., MAKES NO WARRANTY, EITHER EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE REGARDING THESE MATERIALS, AND MAKES SUCH MATERIALS AVAILABLE SOLELY ON AN
"AS-IS" BASIS.
IN NO EVENT SHALL AUTODESK, INC., BE LIABLE TO ANYONE FOR SPECIAL, COLLATERAL,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR ARISING OUT OF PURCHASE
OR USE OF THESE MATERIALS. THE SOLE AND EXCLUSIVE LIABILITY TO AUTODESK, INC.,
REGARDLESS OF THE FORM OF ACTION, SHALL NOT EXCEED THE PURCHASE PRICE OF THE
MATERIALS DESCRIBED HEREIN.
Autodesk, Inc., reserves the right to revise and improve its products as it sees fit.
Autodesk and Open Reality are registered trademarks or trademarks of Autodesk, Inc.,
in the U.S.A. and/or other countries. All other brand names, product names, or
trademarks belong to their respective holders.
GOVERNMENT USE
Use, duplication, or disclosure by the U.S. Government is subject to restrictions as
set forth in FAR 12.212 (Commercial Computer Software-Restricted Rights) and
DFAR 227.7202 (Rights in Technical Data and Computer Software), as applicable.
Manufacturer is Autodesk, Inc., 10 Duke Street, Montreal, Quebec, Canada, H3C 2L7.
***************************************************************************************/
//--- SDK include
#include <fbsdk/fbsdk.h>
//--- Registration defines
#define ORTOOLUIDEMO__CLASSNAME ORToolUIDemo
#define ORTOOLUIDEMO__CLASSSTR "ORToolUIDemo"
class ORToolUIDemo : public FBTool
{
//--- FiLMBOX Tool declaration.
FBToolDeclare( ORToolUIDemo, FBTool );
public:
//--- FiLMBOX Construction/Destruction,
virtual bool FBCreate();
virtual void FBDestroy();
// UI Management
void UICreate ();
void UICreateLayout0 ();
void UICreateLayout1 ();
void UICreateLayout2 ();
void UICreateLayout3 ();
void UICreateLayout4 ();
void UICreateLayout5 ();
void UICreateLayout6 ();
void UICreateLayout7 ();
void UICreateLayout8 ();
void UICreateLayout9 ();
void UIConfigure ();
void UIConfigureLayout0 ();
void UIConfigureLayout1 ();
void UIConfigureLayout2 ();
void UIConfigureLayout3 ();
void UIConfigureLayout4 ();
void UIConfigureLayout5 ();
void UIConfigureLayout6 ();
void UIConfigureLayout7 ();
void UIConfigureLayout8 ();
void UIConfigureLayout9 ();
// UI Callbacks
void EventToolIdle ( HISender pSender, HKEvent pEvent );
void EventToolInput ( HISender pSender, HKEvent pEvent );
void EventToolPaint ( HISender pSender, HKEvent pEvent );
void EventToolShow ( HISender pSender, HKEvent pEvent );
void EventToolResize ( HISender pSender, HKEvent pEvent );
void EventTabPanelChange ( HISender pSender, HKEvent pEvent );
void EventButtonPopupClick ( HISender pSender, HKEvent pEvent );
void EventButtonClosePopupClick ( HISender pSender, HKEvent pEvent );
void EventButtonFilePopupClick ( HISender pSender, HKEvent pEvent );
void EventButtonProgressClick ( HISender pSender, HKEvent pEvent );
void EventButtonMessageBoxClick ( HISender pSender, HKEvent pEvent );
void EventButtonMessageCheckClick( HISender pSender, HKEvent pEvent );
void EventButtonMessageValueClick( HISender pSender, HKEvent pEvent );
void EventButtonPreviousProperty ( HISender pSender, HKEvent pEvent );
void EventButtonNextProperty ( HISender pSender, HKEvent pEvent );
void EventButtonInsetClick ( HISender pSender, HKEvent pEvent );
void EventContainerDragAndDrop ( HISender pSender, HKEvent pEvent );
void EventContainerDblClick ( HISender pSender, HKEvent pEvent );
void EventListPropertyChange ( HISender pSender, HKEvent pEvent );
void EventSceneChange ( HISender pSender, HKEvent pEvent );
void SetupPropertyList( FBModel* pModel );
private:
//--- Demonstration objects
// Main
FBLayout mLayout [10 ];
FBTabPanel mTabPanel;
FBLabel mLabelDirections;
FBScene* mScene;
// Layout 0
FBButton mButton [6 ];
// Layout 1
FBList mList [2 ];
// Layout 2
FBLabel mLabel;
FBEdit mEdit;
FBEditNumber mEditNumber;
FBEditColor mEditColor;
FBEditVector mEditVector;
FBEditTimeCode mTimeCode;
// Layout 3
FBVisualContainer mContainer [12];
// Layout 4
FBImageContainer mImage;
FBSlider mSlider [ 2];
FBThermometer mThermometer;
FBView mView;
// Layout 5
FBSpread mSpread;
// Layout 6
FBLayoutRegion mLayoutRegion [12];
FBButton mButtonInset;
// Layout 7
FBLabel mLabelDirectionsProperties;
FBVisualContainer mContainerModel;
FBList mListProperties;
FBEditProperty mEditProperty;
FBEditPropertyModern mEditPropertyModern;
FBButton mButtonPreviousProperty;
FBButton mButtonNextProperty;
// Layout 8
FBButton mButtonPopup;
FBPopup mPopup;
FBButton mButtonClosePopup;
FBButton mButtonFilePopup;
FBButton mButtonProgress;
FBButton mButtonMessageBox;
FBButton mButtonMessageCheck;
FBButton mButtonMessageValue;
// Layout 9
FBTree mTree;
void AddToTree( FBTreeNode* pNode, FBComponent* pComp, bool pAddRoot=true );
};
#endif /* __ORTOOL_UIDEMO_TOOL_H__ */