libyui
3.3.3
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
;
25
class
YPropertyEditorPriv
;
26
27
/**
28
* An internal helper class for displaying the widget property editor
29
* in the spy dialog.
30
* @see YDialogSpy
31
*/
32
class
YPropertyEditor
33
{
34
public
:
35
/**
36
* Constructor
37
* @param widget the target widget
38
*/
39
YPropertyEditor
(
YWidget
* widget);
40
41
virtual
~
YPropertyEditor
();
42
43
/**
44
* Display a popup for editing a widget property.
45
* @param property name of the property to edit
46
* @return true if the property has been changed, false otherwise
47
*/
48
bool
edit
(
const
std::string &property);
49
50
private
:
51
52
ImplPtr<YPropertyEditorPriv>
priv;
53
};
54
55
#endif
YWidget
Abstract base class of all UI widgets.
Definition:
YWidget.h:54
YPropertyEditor
An internal helper class for displaying the widget property editor in the spy dialog.
Definition:
YPropertyEditor.h:32
ImplPtr< YPropertyEditorPriv >
YPropertyEditor::edit
bool edit(const std::string &property)
Display a popup for editing a widget property.
Definition:
YPropertyEditor.cc:284
YPropertyEditor::YPropertyEditor
YPropertyEditor(YWidget *widget)
Constructor.
Definition:
YPropertyEditor.cc:289
YPropertyEditorPriv
Definition:
YPropertyEditor.cc:37
src
YPropertyEditor.h
Generated by
1.8.17