libyui  3.12.1
YPropertyEditor.h
1 /*
2  Copyright (C) 2016 SUSE LLC
3 
4  This library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU Lesser General Public License as
6  published by the Free Software Foundation; either version 2.1 of the
7  License, or (at your option) version 3.0 of the License. This library
8  is distributed in the hope that it will be useful, but WITHOUT ANY
9  WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11  License for more details. You should have received a copy of the GNU
12  Lesser General Public License along with this library; if not, write
13  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14  Floor, Boston, MA 02110-1301 USA
15 */
16 
17 #ifndef YPropertyEditor_h
18 #define YPropertyEditor_h
19 
20 #include <string>
21 
22 #include "ImplPtr.h"
23 
24 class YWidget;
26 
27 /**
28  * An internal helper class for displaying the widget property editor
29  * in the spy dialog.
30  * @see YDialogSpy
31  */
33 {
34 public:
35  /**
36  * Constructor
37  * @param widget the target widget
38  */
39  YPropertyEditor( YWidget * widget );
40 
41  /**
42  * Destructor
43  **/
44  virtual ~YPropertyEditor();
45 
46  /**
47  * Display a popup for editing a widget property.
48  * @param property name of the property to edit
49  * @return true if the property has been changed, false otherwise
50  */
51  bool edit( const std::string & property );
52 
53 private:
54 
56 };
57 
58 #endif
YWidget
Abstract base class of all UI widgets.
Definition: YWidget.h:55
YPropertyEditor
An internal helper class for displaying the widget property editor in the spy dialog.
Definition: YPropertyEditor.h:33
ImplPtr< YPropertyEditorPriv >
YPropertyEditor::edit
bool edit(const std::string &property)
Display a popup for editing a widget property.
Definition: YPropertyEditor.cc:295
YPropertyEditor::~YPropertyEditor
virtual ~YPropertyEditor()
Destructor.
Definition: YPropertyEditor.cc:307
YPropertyEditor::YPropertyEditor
YPropertyEditor(YWidget *widget)
Constructor.
Definition: YPropertyEditor.cc:301
YPropertyEditorPriv
Definition: YPropertyEditor.cc:41