00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YWizard.h 00014 00015 Author: Stefan Hundhammer <sh@suse.de> 00016 00017 /-*/ 00018 00019 #ifndef YWizard_h 00020 #define YWizard_h 00021 00022 #include "YContainerWidget.h" 00023 #include <ycp/YCPString.h> 00024 #include <ycp/YCPValue.h> 00025 00026 class YMacroRecorder; 00027 00028 #define YWizardID "wizard" 00029 #define YWizardContentsReplacePointID "contents" 00030 00034 class YWizard: public YContainerWidget 00035 { 00036 public: 00037 00041 YWizard( const YWidgetOpt & opt, 00042 const YCPValue & backButtonId, const YCPString & backButtonLabel, 00043 const YCPValue & abortButtonId, const YCPString & abortButtonLabel, 00044 const YCPValue & nextButtonId, const YCPString & nextButtonLabel ); 00045 00050 virtual char *widgetClass() { return "YWizard"; } 00051 00056 virtual YCPValue command( const YCPTerm & command ); 00057 00061 YCPValue queryWidget( const YCPSymbol & property ); 00062 00063 00064 protected: 00065 00070 virtual YCPString currentTreeSelection() { return YCPString( "" ); } 00071 00072 00073 // Data members 00074 00075 YCPValue _backButtonId; 00076 YCPString _backButtonLabel; 00077 YCPValue _abortButtonId; 00078 YCPString _abortButtonLabel; 00079 YCPValue _nextButtonId; 00080 YCPString _nextButtonLabel; 00081 }; 00082 00083 00084 #endif // YWizard_h