26 #ifndef NCWidgetFactory_h 27 #define NCWidgetFactory_h 30 #include <yui/YWidgetFactory.h> 32 #include "NCAlignment.h" 33 #include "NCBusyIndicator.h" 34 #include "NCButtonBox.h" 35 #include "NCCheckBox.h" 36 #include "NCCheckBoxFrame.h" 37 #include "NCComboBox.h" 38 #include "NCCustomStatusItemSelector.h" 43 #include "NCInputField.h" 44 #include "NCIntField.h" 45 #include "NCItemSelector.h" 47 #include "NCLogView.h" 48 #include "NCMenuButton.h" 49 #include "NCMultiLineEdit.h" 50 #include "NCMultiSelectionBox.h" 51 #include "NCPackageSelectorPluginStub.h" 52 #include "NCProgressBar.h" 53 #include "NCPushButton.h" 54 #include "NCRadioButton.h" 55 #include "NCRadioButtonGroup.h" 56 #include "NCReplacePoint.h" 57 #include "NCRichText.h" 58 #include "NCSelectionBox.h" 59 #include "NCSpacing.h" 63 #include "NCLayoutBox.h" 81 virtual NCDialog * createDialog ( YDialogType dialogType, YDialogColorMode colorMode = YDialogNormalColor );
87 virtual NCLayoutBox * createLayoutBox ( YWidget * parent, YUIDimension dim );
88 virtual NCButtonBox * createButtonBox ( YWidget * parent );
95 virtual NCPushButton * createPushButton ( YWidget * parent,
const std::string & label );
96 virtual NCLabel * createLabel ( YWidget * parent,
const std::string & text,
bool isHeading =
false,
bool isOutputField =
false );
97 virtual NCInputField * createInputField ( YWidget * parent,
const std::string & label,
bool passwordMode =
false );
98 virtual NCCheckBox * createCheckBox ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
99 virtual NCRadioButton * createRadioButton ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
100 virtual NCComboBox * createComboBox ( YWidget * parent,
const std::string & label,
bool editable =
false );
101 virtual NCSelectionBox * createSelectionBox ( YWidget * parent,
const std::string & label );
102 virtual NCTree * createTree ( YWidget * parent,
const std::string & label,
bool multiselection =
false,
bool recursiveselection =
false );
103 virtual NCTable * createTable ( YWidget * parent, YTableHeader * tableHeader,
bool multiSelection =
false );
104 virtual NCProgressBar * createProgressBar ( YWidget * parent,
const std::string & label,
int maxValue = 100 );
105 virtual NCRichText * createRichText ( YWidget * parent,
const std::string & text = std::string(),
bool plainTextMode =
false );
112 virtual NCIntField * createIntField ( YWidget * parent,
const std::string & label,
int minVal,
int maxVal,
int initialVal );
113 virtual NCMenuButton * createMenuButton ( YWidget * parent,
const std::string & label );
114 virtual NCMultiLineEdit * createMultiLineEdit ( YWidget * parent,
const std::string & label );
115 virtual NCImage * createImage ( YWidget * parent,
const std::string & imagePath,
bool animated =
false );
116 virtual NCLogView * createLogView ( YWidget * parent,
const std::string & label,
int visibleLines,
int storedLines = 0 );
117 virtual NCMultiSelectionBox*createMultiSelectionBox ( YWidget * parent,
const std::string & label );
118 virtual YPackageSelector * createPackageSelector ( YWidget * parent,
long ModeFlags = 0 );
119 virtual NCBusyIndicator * createBusyIndicator ( YWidget * parent,
const std::string & label,
int timeout = 1000 );
122 virtual YWidget * createPkgSpecial ( YWidget * parent,
const std::string & subwidgetName );
129 virtual NCSpacing * createSpacing ( YWidget * parent, YUIDimension dim,
bool stretchable =
false, YLayoutSize_t size = 0.0 );
130 virtual NCEmpty * createEmpty ( YWidget * parent );
131 virtual NCAlignment * createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment );
132 virtual NCSquash * createSquash ( YWidget * parent,
bool horSquash,
bool vertSquash );
139 virtual NCFrame * createFrame ( YWidget * parent,
const std::string & label );
140 virtual NCCheckBoxFrame * createCheckBoxFrame ( YWidget * parent,
const std::string & label,
bool checked );
155 virtual NCItemSelector * createItemSelector ( YWidget * parent,
bool enforceSingleSelection =
true );
156 virtual NCCustomStatusItemSelector * createCustomStatusItemSelector ( YWidget * parent,
const YItemCustomStatusVector & customStates );
178 #endif // NCWidgetFactory_h