Author: sh-sh-sh Date: Mon Jul 2 13:28:36 2007 New Revision: 39103 URL: http://svn.opensuse.org/viewcvs/yast?rev=39103&view=rev Log: cleanup Modified: branches/tmp/sh/mod-ui/core/libyui/src/YAlignment.h branches/tmp/sh/mod-ui/core/libyui/src/YBarGraph.h branches/tmp/sh/mod-ui/core/libyui/src/YCheckBox.h branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.cc branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.h branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h branches/tmp/sh/mod-ui/core/libyui/src/YDate.h branches/tmp/sh/mod-ui/core/libyui/src/YDialog.h branches/tmp/sh/mod-ui/core/libyui/src/YDownloadProgress.h branches/tmp/sh/mod-ui/core/libyui/src/YDumbTab.h branches/tmp/sh/mod-ui/core/libyui/src/YEmpty.h branches/tmp/sh/mod-ui/core/libyui/src/YFrame.h branches/tmp/sh/mod-ui/core/libyui/src/YImage.h branches/tmp/sh/mod-ui/core/libyui/src/YIntField.h branches/tmp/sh/mod-ui/core/libyui/src/YLogView.h branches/tmp/sh/mod-ui/core/libyui/src/YMenuButton.h branches/tmp/sh/mod-ui/core/libyui/src/YMultiLineEdit.h branches/tmp/sh/mod-ui/core/libyui/src/YMultiProgressMeter.h branches/tmp/sh/mod-ui/core/libyui/src/YMultiSelectionBox.h branches/tmp/sh/mod-ui/core/libyui/src/YPackageSelector.h branches/tmp/sh/mod-ui/core/libyui/src/YPartitionSplitter.h branches/tmp/sh/mod-ui/core/libyui/src/YProgressBar.h branches/tmp/sh/mod-ui/core/libyui/src/YPushButton.h branches/tmp/sh/mod-ui/core/libyui/src/YRadioButton.h branches/tmp/sh/mod-ui/core/libyui/src/YRadioButtonGroup.h branches/tmp/sh/mod-ui/core/libyui/src/YReplacePoint.h branches/tmp/sh/mod-ui/core/libyui/src/YSelectionBox.h branches/tmp/sh/mod-ui/core/libyui/src/YSlider.h branches/tmp/sh/mod-ui/core/libyui/src/YSquash.h branches/tmp/sh/mod-ui/core/libyui/src/YTable.h branches/tmp/sh/mod-ui/core/libyui/src/YTime.h branches/tmp/sh/mod-ui/core/libyui/src/YTree.h branches/tmp/sh/mod-ui/core/libyui/src/YWizard.h Modified: branches/tmp/sh/mod-ui/core/libyui/src/YAlignment.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YAlignment.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YAlignment.h Mon Jul 2 13:28:36 2007 @@ -27,6 +27,7 @@ /** * Implementation of all the alignment widgets: + * * - Left, Right, HCenter, * - Top, Bottom, VCenter, * - HVCenter @@ -34,14 +35,15 @@ **/ class YAlignment : public YSingleChildContainerWidget { -public: +protected: /** * Constructor. **/ - YAlignment( YWidget * parent, - YAlignmentType horAlign, - YAlignmentType vertAlign ); + YAlignment( YWidget * parent, + YAlignmentType horAlign, + YAlignmentType vertAlign ); +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YBarGraph.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YBarGraph.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YBarGraph.h Mon Jul 2 13:28:36 2007 @@ -22,18 +22,17 @@ #include <ycp/YCPList.h> #include "YWidget.h" -/** - * @short Implementation of the BarGraph widget - **/ + class YBarGraph : public YWidget { -public: +protected: /** * Constructor **/ YBarGraph( const YWidgetOpt & opt ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YCheckBox.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YCheckBox.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YCheckBox.h Mon Jul 2 13:28:36 2007 @@ -38,12 +38,13 @@ class YCheckBox : public YWidget { -public: +protected: /** * Constructor. **/ YCheckBox( YWidget * parent, const string & label ); - + +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.cc (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.cc Mon Jul 2 13:28:36 2007 @@ -45,7 +45,7 @@ : YSelectionWidget( parent, label ) , priv( new YComboBoxPrivate( editable ) { - + YUI_CHECK_NEW( priv ); } Modified: branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YComboBox.h Mon Jul 2 13:28:36 2007 @@ -22,9 +22,29 @@ #include "YSelectionWidget.h" class YMacroRecorder; - class YComboBoxPrivate; + +/** + * ComboBox (a.k.a. "drop down box", "drop down selection"): + * + * A widget with a drop-down list of predefined values to select from. + * Optionally, this widget can be created in "editable" mode which means that + * the user can freely enter any text. + * + * In non-editable mode, a ComboBox works very much like a SelectionBox that + * uses fewer screen space. In that mode, it is recommended to use + * selectedItem() to retrieve its current value and selectItem() to set it. + * + * In editable mode, a ComboBox is more like an InputField with a list to pick + * predefined values from (for less typing). In that mode, it is recommended to + * use value() and setValue(). + * + * In either mode, it might be dangerous to use the iterators the + * (itemsBegin(), itemsEnd()) the base class (YSelectionWidget) provides to + * find the currently selected item: The items' "selected" flag may or may not + * be up to date. YComboBox::selectedItem() makes sure they are up to date. + **/ class YComboBox : public YSelectionWidget { protected: @@ -58,50 +78,60 @@ bool editable() const; /** - * Return the value of this combo box: + * Return the value of this ComboBox: * * The text of a list item if the user (or the appplication) selected a - * list item or the content of the combo box's input field if the combo box + * list item or the content of the ComboBox's input field if the ComboBox * is editable and the user (or the application) entered text there. * - * Notice that YSelectionBox::selectedItem() might not be very reliable for - * combo boxes. Better use this function instead. + * See also YComboBox::selectedItem(). **/ string value(); /** - * Set the value of this combo box by string. - * For editable combo boxes, set the content of the combo box's input - * field. + * Set the value of this ComboBox by string: Try to find a list item with + * that label and select it. + * + * If there is no matching list item, editable ComboBoxes will set their + * input field to that text. Non-editable ComboBoxes will throw an + * exception. + * + * See also selectItem(). **/ void setValue( const string & newText ); /** - * Return the (first) selected item or 0 if none is selected. + * Return the (first) selected item or 0 if none is selected or if this + * ComboBox is editable and the user entered something that does not match + * any of the ComboBox's list items (in that case, use value() instead). * * Reimplemented from YSelectionWidget for better reliability: This will - * compare an editable combo box's user input against the text labels of + * compare an editable ComboBox's user input against the text labels of * all items and try to return an item if there is any match. **/ virtual const YItem * selectedItem(); - + /** - * Return all selected items. + * Return all selected items. + * + * This is not particularly useful for ComboBoxes since there can be no + * more than one selected item anyway; * better use selectedItem() or + * value() instead. * * This function does not transfer ownership of those items to the caller, * so don't try to delete them! * * Reimplemented from YSelectionWidget for better reliability. **/ - virtual YCosntItemCollection selectedItems(); + virtual YConstItemCollection selectedItems(); /** - * Select or deselect an item. + * Select or deselect an item. See also setValue(). * * Reimplemented from YSelectionWidget. **/ virtual void selectItem( YItem * item, bool selected = true ); - + /** * Get the valid input characters. No input validation is performed (i.e., * the user can enter anything) if this is empty. @@ -150,7 +180,7 @@ protected: /** - * Return this combo box's current value as text. + * Return this ComboBox's current value as text. * * Called internally from value(), selectedItem() and related. * @@ -160,7 +190,7 @@ /** * - * Set this combo box's current value as text. + * Set this ComboBox's current value as text. * * Called internally whenever the content is to change * programmatically. Don't call setValue() or selectItem() from here. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YContainerWidget.h Mon Jul 2 13:28:36 2007 @@ -29,12 +29,13 @@ **/ class YContainerWidget : public YWidget { -public: +protected: /** * Constructor. **/ YContainerWidget( const YWidgetOpt & opt ); +public: /** * Cleans up: Deletes all child widgets. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YDate.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YDate.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YDate.h Mon Jul 2 13:28:36 2007 @@ -22,19 +22,17 @@ #include "YWidget.h" #include <ycp/YCPString.h> -/** - * Implementation of the Date and Heading widgets - **/ + class YDate : public YWidget { -public: - +protected: /** * Creates a new date * @param text the initial text of the date **/ YDate( const YWidgetOpt & opt, const YCPString & label ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YDialog.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YDialog.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YDialog.h Mon Jul 2 13:28:36 2007 @@ -29,13 +29,12 @@ class YDialog : public YSingleChildContainerWidget { -public: +protected: /** * Constructor. **/ YDialog( const YWidgetOpt & opt ); -protected: /** * Destructor. * Don't delete a dialog directly, use YDialog::deleteCurrentDialog(). Modified: branches/tmp/sh/mod-ui/core/libyui/src/YDownloadProgress.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YDownloadProgress.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YDownloadProgress.h Mon Jul 2 13:28:36 2007 @@ -23,13 +23,10 @@ #include <ycp/YCPString.h> #include <ycp/YCPInteger.h> -/** - * @short Implementation of the Slider widget - **/ + class YDownloadProgress : public YWidget { -public: - +protected: /** * Constructor **/ @@ -38,6 +35,7 @@ const YCPString & filename, int expectedSize ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YDumbTab.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YDumbTab.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YDumbTab.h Mon Jul 2 13:28:36 2007 @@ -22,18 +22,16 @@ #include "YContainerWidget.h" #include <ycp/YCPString.h> -/** - * Implementation of the YDumbTab widget - **/ + class YDumbTab : public YContainerWidget { -public: - +protected: /** * Constructor **/ YDumbTab( const YWidgetOpt & opt ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YEmpty.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YEmpty.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YEmpty.h Mon Jul 2 13:28:36 2007 @@ -28,12 +28,13 @@ class YEmpty : public YWidget { -public: +protected: /** * Constructor. **/ YEmpty( YWidget * parent ); +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YFrame.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YFrame.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YFrame.h Mon Jul 2 13:28:36 2007 @@ -29,12 +29,13 @@ class YFrame : public YSingleChildContainerWidget { -public: +protected: /** * Constructor. **/ YFrame( YWidget * parent, const string & label ); +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YImage.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YImage.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YImage.h Mon Jul 2 13:28:36 2007 @@ -27,9 +27,6 @@ class YImagePrivate; -/** - * @short Implementation of the Image widget - **/ class YImage : public YWidget { public: Modified: branches/tmp/sh/mod-ui/core/libyui/src/YIntField.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YIntField.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YIntField.h Mon Jul 2 13:28:36 2007 @@ -23,13 +23,10 @@ #include <ycp/YCPString.h> #include <ycp/YCPInteger.h> -/** - * @short Implementation of the IntField widget - **/ + class YIntField : public YWidget { -public: - +protected: /** * Constructor **/ @@ -39,6 +36,7 @@ int maxValue, int initialValue ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YLogView.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YLogView.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YLogView.h Mon Jul 2 13:28:36 2007 @@ -25,12 +25,10 @@ using std::deque; -/** - * @short Implementation of the LogView widget - **/ + class YLogView : public YWidget { -public: +protected: /** * Constructor. **/ @@ -39,6 +37,7 @@ int visibleLines, int maxLines ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YMenuButton.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YMenuButton.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YMenuButton.h Mon Jul 2 13:28:36 2007 @@ -31,12 +31,9 @@ typedef vector<YMenuItem *>::const_iterator YMenuItemListConstIterator; -/** - * @short Implementation of the MenuButton widget - **/ class YMenuButton : public YWidget { -public: +protected: /** * Constructor * @param opt widget options @@ -44,6 +41,7 @@ **/ YMenuButton( const YWidgetOpt & opt, YCPString label ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YMultiLineEdit.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YMultiLineEdit.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YMultiLineEdit.h Mon Jul 2 13:28:36 2007 @@ -23,21 +23,19 @@ #include <ycp/YCPString.h> #include <deque> - class YMacroRecorder; -/** - * @short Implementation of the MultiLineEdit widget - **/ + class YMultiLineEdit : public YWidget { -public: +protected: /** * Constructor. **/ YMultiLineEdit( const YWidgetOpt & opt, const YCPString & label ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YMultiProgressMeter.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YMultiProgressMeter.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YMultiProgressMeter.h Mon Jul 2 13:28:36 2007 @@ -24,15 +24,9 @@ #include <vector> -/** - * Implementation of the VMultiProgressMeter and HMultiProgressMeter widgets - **/ class YMultiProgressMeter : public YWidget { -public: - - typedef long long Value_t; - +protected: /** * Constructor **/ @@ -40,12 +34,15 @@ bool horizontal, const YCPList & maxValues ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. **/ virtual const char * widgetClass() { return "YMultiProgressMeter"; } + typedef long long Value_t; + /** * Implements the ui command changeWidget. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YMultiSelectionBox.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YMultiSelectionBox.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YMultiSelectionBox.h Mon Jul 2 13:28:36 2007 @@ -26,13 +26,10 @@ class YMacroRecorder; -/** - * @short Implementation of the MultiSelectionBox widget. - **/ + class YMultiSelectionBox : public YSelectionWidget { -public: - +protected: /** * Constructor * @param text the initial text of the MultiSelectionBox label @@ -40,6 +37,7 @@ **/ YMultiSelectionBox( const YWidgetOpt & opt, YCPString label ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YPackageSelector.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YPackageSelector.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YPackageSelector.h Mon Jul 2 13:28:36 2007 @@ -34,8 +34,7 @@ class YPackageSelector : public YWidget { -public: - +protected: /** * Constructor. * @@ -44,6 +43,7 @@ **/ YPackageSelector( YWidget * parent, long modeFlags = 0 ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YPartitionSplitter.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YPartitionSplitter.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YPartitionSplitter.h Mon Jul 2 13:28:36 2007 @@ -26,13 +26,10 @@ class YMacroRecorder; -/** - * @short Implementation of the Slider widget - **/ + class YPartitionSplitter : public YWidget { -public: - +protected: /** * Constructor **/ @@ -48,6 +45,7 @@ const YCPString & freeFieldLabel, const YCPString & newPartFieldLabel ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YProgressBar.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YProgressBar.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YProgressBar.h Mon Jul 2 13:28:36 2007 @@ -23,13 +23,10 @@ #include <ycp/YCPString.h> #include <ycp/YCPInteger.h> -/** - * @short Implementation of the ProgressBar widget - **/ + class YProgressBar : public YWidget { -public: - +protected: /** * Constructor. **/ @@ -38,6 +35,7 @@ const YCPInteger & maxProgress, const YCPInteger & initialProgress ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YPushButton.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YPushButton.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YPushButton.h Mon Jul 2 13:28:36 2007 @@ -28,12 +28,13 @@ class YPushButton : public YWidget { -public: +protected: /** * Constructor. **/ YPushButton( YWidget * parent, const string & label ); +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YRadioButton.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YRadioButton.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YRadioButton.h Mon Jul 2 13:28:36 2007 @@ -46,7 +46,7 @@ **/ class YRadioButton : public YWidget { -public: +protected: /** * Constructor. * @@ -65,6 +65,7 @@ **/ YRadioButton( YWidget * parent, const string & label ); +public: /** * Destructor: Removes the button from the radio button group. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YRadioButtonGroup.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YRadioButtonGroup.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YRadioButtonGroup.h Mon Jul 2 13:28:36 2007 @@ -31,12 +31,13 @@ class YRadioButtonGroup : public YSingleChildContainerWidget { -public: +protected: /** * Constructor. **/ YRadioButtonGroup( YWidget * parent ); +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YReplacePoint.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YReplacePoint.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YReplacePoint.h Mon Jul 2 13:28:36 2007 @@ -23,12 +23,13 @@ class YReplacePoint : public YSingleChildContainerWidget { -public: +protected: /** * Constructor **/ YReplacePoint( YWidget * parent ); +public: /** * Show a newly added child. The application using the ReplacePoint is * required to call this after the new child is created. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YSelectionBox.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YSelectionBox.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YSelectionBox.h Mon Jul 2 13:28:36 2007 @@ -26,13 +26,14 @@ class YSelectionBox : public YSelectionWidget { -public: +protected: /** * Constructor. **/ YSelectionBox( YWidget * parent, const string & label ); +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YSlider.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YSlider.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YSlider.h Mon Jul 2 13:28:36 2007 @@ -25,13 +25,10 @@ class YMacroRecorder; -/** - * @short Implementation of the Slider widget - **/ + class YSlider : public YWidget { -public: - +protected: /** * Constructor **/ @@ -41,6 +38,7 @@ int maxValue, int initialValue ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YSquash.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YSquash.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YSquash.h Mon Jul 2 13:28:36 2007 @@ -34,8 +34,7 @@ **/ class YSquash : public YSingleChildContainerWidget { -public: - +protected: /** * Constructor. * @@ -44,6 +43,7 @@ **/ YSquash( YWidget * parent, bool horSquash, bool vertSquash ); +public: /** * Destructor. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YTable.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YTable.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YTable.h Mon Jul 2 13:28:36 2007 @@ -50,14 +50,14 @@ **/ class YTable : public YWidget { -public: - +protected: /** * Creates a new and empty Table * @param num_cols The number of columns of the table **/ YTable( const YWidgetOpt & opt, int num_cols ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YTime.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YTime.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YTime.h Mon Jul 2 13:28:36 2007 @@ -22,19 +22,17 @@ #include "YWidget.h" #include <ycp/YCPString.h> -/** - * Implementation of the Time and Heading widgets - **/ + class YTime : public YWidget { -public: - +protected: /** * Creates a new date * @param text the initial text of the date **/ YTime( const YWidgetOpt & opt, const YCPString & label ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. Modified: branches/tmp/sh/mod-ui/core/libyui/src/YTree.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YTree.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YTree.h Mon Jul 2 13:28:36 2007 @@ -32,15 +32,11 @@ typedef vector<YTreeItem *>::const_iterator YTreeItemListConstIterator; -/** - * @short Implementation of the Tree widget - **/ class YTree : public YWidget { friend class YTreeItem; - -public: - + +protected: /** * Constructor * @param opt the widget options @@ -49,6 +45,7 @@ YTree( const YWidgetOpt & opt, YCPString label ); +public: /** * Destructor. Frees all tree items. **/ Modified: branches/tmp/sh/mod-ui/core/libyui/src/YWizard.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/src/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/src/YWizard.h (original) +++ branches/tmp/sh/mod-ui/core/libyui/src/YWizard.h Mon Jul 2 13:28:36 2007 @@ -28,21 +28,18 @@ #define YWizardID "wizard" #define YWizardContentsReplacePointID "contents" -/** - * @short Implementation of the SelectionBox widget. - **/ class YWizard: public YWidget { -public: - +protected: /** - * Constructor + * Constructor. **/ YWizard( const YWidgetOpt & opt, const YCPValue & backButtonId, const YCPString & backButtonLabel, const YCPValue & abortButtonId, const YCPString & abortButtonLabel, const YCPValue & nextButtonId, const YCPString & nextButtonLabel ); +public: /** * Returns a descriptive name of this widget class for logging, * debugging etc. @@ -65,11 +62,11 @@ /** * Returns the current tree selection or an empty string if nothing is - * selected or there is no tree. + * selected or there is no tree. **/ virtual YCPString currentTreeSelection() { return YCPString( "" ); } - + // Data members YCPValue _backButtonId; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org