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"
49#include "NCMenuButton.h"
50#include "NCMultiLineEdit.h"
51#include "NCMultiSelectionBox.h"
52#include "NCPackageSelectorPluginStub.h"
53#include "NCProgressBar.h"
54#include "NCPushButton.h"
55#include "NCRadioButton.h"
56#include "NCRadioButtonGroup.h"
57#include "NCReplacePoint.h"
58#include "NCRichText.h"
59#include "NCSelectionBox.h"
64#include "NCLayoutBox.h"
82 virtual NCDialog * createDialog ( YDialogType dialogType, YDialogColorMode colorMode = YDialogNormalColor );
88 virtual NCLayoutBox * createLayoutBox ( YWidget * parent, YUIDimension dim );
89 virtual NCButtonBox * createButtonBox ( YWidget * parent );
96 virtual NCPushButton * createPushButton ( YWidget * parent,
const std::string & label );
97 virtual NCLabel * createLabel ( YWidget * parent,
const std::string & text,
bool isHeading =
false,
bool isOutputField =
false );
98 virtual NCInputField * createInputField ( YWidget * parent,
const std::string & label,
bool passwordMode =
false );
99 virtual NCCheckBox * createCheckBox ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
100 virtual NCRadioButton * createRadioButton ( YWidget * parent,
const std::string & label,
bool isChecked =
false );
101 virtual NCComboBox * createComboBox ( YWidget * parent,
const std::string & label,
bool editable =
false );
102 virtual NCSelectionBox * createSelectionBox ( YWidget * parent,
const std::string & label );
103 virtual NCTree * createTree ( YWidget * parent,
const std::string & label,
bool multiselection =
false,
bool recursiveselection =
false );
104 virtual NCTable * createTable ( YWidget * parent, YTableHeader * tableHeader,
bool multiSelection =
false );
105 virtual NCProgressBar * createProgressBar ( YWidget * parent,
const std::string & label,
int maxValue = 100 );
106 virtual NCRichText * createRichText ( YWidget * parent,
const std::string & text = std::string(),
bool plainTextMode =
false );
113 virtual NCIntField * createIntField ( YWidget * parent,
const std::string & label,
int minVal,
int maxVal,
int initialVal );
114 virtual NCMenuButton * createMenuButton ( YWidget * parent,
const std::string & label );
115 virtual NCMenuBar * createMenuBar ( YWidget * parent );
116 virtual NCMultiLineEdit * createMultiLineEdit ( YWidget * parent,
const std::string & label );
117 virtual NCImage * createImage ( YWidget * parent,
const std::string & imagePath,
bool animated =
false );
118 virtual NCLogView * createLogView ( YWidget * parent,
const std::string & label,
int visibleLines,
int storedLines = 0 );
119 virtual NCMultiSelectionBox*createMultiSelectionBox ( YWidget * parent,
const std::string & label );
120 virtual YPackageSelector * createPackageSelector ( YWidget * parent,
long ModeFlags = 0 );
121 virtual NCBusyIndicator * createBusyIndicator ( YWidget * parent,
const std::string & label,
int timeout = 1000 );
124 virtual YWidget * createPkgSpecial ( YWidget * parent,
const std::string & subwidgetName );
131 virtual NCSpacing * createSpacing ( YWidget * parent, YUIDimension dim,
bool stretchable =
false, YLayoutSize_t size = 0.0 );
132 virtual NCEmpty * createEmpty ( YWidget * parent );
133 virtual NCAlignment * createAlignment ( YWidget * parent, YAlignmentType horAlignment, YAlignmentType vertAlignment );
134 virtual NCSquash * createSquash ( YWidget * parent,
bool horSquash,
bool vertSquash );
141 virtual NCFrame * createFrame ( YWidget * parent,
const std::string & label );
142 virtual NCCheckBoxFrame * createCheckBoxFrame ( YWidget * parent,
const std::string & label,
bool checked );
157 virtual NCItemSelector * createItemSelector ( YWidget * parent,
bool enforceSingleSelection =
true );
158 virtual NCCustomStatusItemSelector * createCustomStatusItemSelector ( YWidget * parent,
const YItemCustomStatusVector & customStates );
Definition NCAlignment.h:35
Definition NCBusyIndicator.h:42
Definition NCCheckBoxFrame.h:38
Definition NCCheckBox.h:35
Definition NCComboBox.h:38
Definition NCCustomStatusItemSelector.h:82
Definition NCIntField.h:35
Definition NCItemSelector.h:302
Definition NCLayoutBox.h:37
Definition NCLogView.h:35
Definition NCMultiLineEdit.h:36
Definition NCMultiSelectionBox.h:36
Definition NCProgressBar.h:37
Definition NCReplacePoint.h:37
Definition NCRichText.h:36
Definition NCSelectionBox.h:36
Definition NCSpacing.h:37
Definition YNCursesUI.h:39