25 #ifndef NCWidgetFactory_h 26 #define NCWidgetFactory_h 29 #include <yui/YWidgetFactory.h> 31 #include "NCAlignment.h" 32 #include "NCBusyIndicator.h" 33 #include "NCButtonBox.h" 34 #include "NCCheckBox.h" 35 #include "NCCheckBoxFrame.h" 36 #include "NCComboBox.h" 41 #include "NCInputField.h" 42 #include "NCIntField.h" 44 #include "NCLogView.h" 45 #include "NCMenuButton.h" 46 #include "NCMultiLineEdit.h" 47 #include "NCMultiSelectionBox.h" 48 #include "NCPackageSelectorPluginStub.h" 49 #include "NCProgressBar.h" 50 #include "NCPushButton.h" 51 #include "NCRadioButton.h" 52 #include "NCRadioButtonGroup.h" 53 #include "NCReplacePoint.h" 54 #include "NCRichText.h" 55 #include "NCSelectionBox.h" 56 #include "NCSpacing.h" 60 #include "NCLayoutBox.h" 78 virtual NCDialog * createDialog ( YDialogType dialogType, YDialogColorMode colorMode = YDialogNormalColor );
84 virtual NCLayoutBox * createLayoutBox ( YWidget * parent, YUIDimension dim );
85 virtual NCButtonBox * createButtonBox ( YWidget * parent );
92 virtual NCPushButton * createPushButton ( YWidget * parent,
const std::string & label );
93 virtual NCLabel * createLabel ( YWidget * parent,
const std::string & text,
bool isHeading =
false,
bool isOutputField =
false );
94 virtual NCInputField * createInputField ( YWidget * parent,
const std::string & label,
bool passwordMode =
false );
95 virtual NCCheckBox * createCheckBox ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
96 virtual NCRadioButton * createRadioButton ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
97 virtual NCComboBox * createComboBox ( YWidget * parent,
const std::string & label,
bool editable =
false );
98 virtual NCSelectionBox * createSelectionBox ( YWidget * parent,
const std::string & label );
99 virtual NCTree * createTree ( YWidget * parent,
const std::string & label,
bool multiselection =
false,
bool recursiveselection =
false );
100 virtual NCTable * createTable ( YWidget * parent, YTableHeader * tableHeader,
bool multiSelection =
false );
101 virtual NCProgressBar * createProgressBar ( YWidget * parent,
const std::string & label,
int maxValue = 100 );
102 virtual NCRichText * createRichText ( YWidget * parent,
const std::string & text = std::string(),
bool plainTextMode =
false );
109 virtual NCIntField * createIntField ( YWidget * parent,
const std::string & label,
int minVal,
int maxVal,
int initialVal );
110 virtual NCMenuButton * createMenuButton ( YWidget * parent,
const std::string & label );
111 virtual NCMultiLineEdit * createMultiLineEdit ( YWidget * parent,
const std::string & label );
112 virtual NCImage * createImage ( YWidget * parent,
const std::string & imagePath,
bool animated =
false );
113 virtual NCLogView * createLogView ( YWidget * parent,
const std::string & label,
int visibleLines,
int storedLines = 0 );
114 virtual NCMultiSelectionBox*createMultiSelectionBox ( YWidget * parent,
const std::string & label );
115 virtual YPackageSelector * createPackageSelector ( YWidget * parent,
long ModeFlags = 0 );
116 virtual NCBusyIndicator * createBusyIndicator ( YWidget * parent,
const std::string & label,
int timeout = 1000 );
119 virtual YWidget * createPkgSpecial ( YWidget * parent,
const std::string & subwidgetName );
126 virtual NCSpacing * createSpacing ( YWidget * parent, YUIDimension dim,
bool stretchable =
false, YLayoutSize_t size = 0.0 );
127 virtual NCEmpty * createEmpty ( YWidget * parent );
128 virtual NCAlignment * createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment );
129 virtual NCSquash * createSquash ( YWidget * parent,
bool horSquash,
bool vertSquash );
136 virtual NCFrame * createFrame ( YWidget * parent,
const std::string & label );
137 virtual NCCheckBoxFrame * createCheckBoxFrame ( YWidget * parent,
const std::string & label,
bool checked );
167 #endif // NCWidgetFactory_h