libyui-ncurses
 
Loading...
Searching...
No Matches
NCOptionalWidgetFactory Class Reference

#include <NCOptionalWidgetFactory.h>

Inheritance diagram for NCOptionalWidgetFactory:
Collaboration diagram for NCOptionalWidgetFactory:

Protected Member Functions

 NCOptionalWidgetFactory ()
 
virtual ~NCOptionalWidgetFactory ()
 
bool hasDumbTab ()
 
NCDumbTabcreateDumbTab (YWidget *parent)
 
bool hasTimeField ()
 
YTimeField * createTimeField (YWidget *parent, const std::string &label)
 
bool hasDateField ()
 
YDateField * createDateField (YWidget *parent, const std::string &label)
 

Friends

class YNCursesUI
 

Detailed Description

Widget factory for optional ("special") widgets.

Remember to always check with the corresponding "has..()" method if the current UI actually provides the requested widget. Otherwise the "create...()" method will throw an exception.

Constructor & Destructor Documentation

◆ NCOptionalWidgetFactory()

NCOptionalWidgetFactory::NCOptionalWidgetFactory ( )
protected

Constructor.

Use YUI::optionalWidgetFactory() to get the singleton for this class.

◆ ~NCOptionalWidgetFactory()

NCOptionalWidgetFactory::~NCOptionalWidgetFactory ( )
protectedvirtual

Destructor.


The documentation for this class was generated from the following files: