Changeset View
Changeset View
Standalone View
Standalone View
krusader/ActionMan/actionproperty.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | /** | 28 | /** | ||
29 | * Use this widget where ever you need to manipulate a UserAction | 29 | * Use this widget where ever you need to manipulate a UserAction | ||
30 | */ | 30 | */ | ||
31 | class ActionProperty : public QWidget, public Ui::ActionProperty | 31 | class ActionProperty : public QWidget, public Ui::ActionProperty | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | public: | 34 | public: | ||
35 | explicit ActionProperty(QWidget *parent = 0, KrAction *action = 0); | 35 | explicit ActionProperty(QWidget *parent = nullptr, KrAction *action = nullptr); | ||
36 | ~ActionProperty(); | 36 | ~ActionProperty() override; | ||
37 | 37 | | |||
38 | /** | 38 | /** | ||
39 | * @return the currently displayed action | 39 | * @return the currently displayed action | ||
40 | */ | 40 | */ | ||
41 | KrAction* action() { | 41 | KrAction* action() { | ||
42 | return _action; | 42 | return _action; | ||
43 | }; | 43 | }; | ||
44 | 44 | | |||
45 | /** | 45 | /** | ||
46 | * This inits the widget with the actions properties. | 46 | * This inits the widget with the actions properties. | ||
47 | * If no action is provided, the last used will be taken! | 47 | * If no action is provided, the last used will be taken! | ||
48 | * It also resets the changed() state. | 48 | * It also resets the changed() state. | ||
49 | * @param action the action which should be displayd | 49 | * @param action the action which should be displayd | ||
50 | */ | 50 | */ | ||
51 | void updateGUI(KrAction *action = 0); | 51 | void updateGUI(KrAction *action = nullptr); | ||
52 | 52 | | |||
53 | /** | 53 | /** | ||
54 | * This writes the displayed properties back into the action. | 54 | * This writes the displayed properties back into the action. | ||
55 | * If no action is provided, the last used will be taken! | 55 | * If no action is provided, the last used will be taken! | ||
56 | * It also resets the changed() state. | 56 | * It also resets the changed() state. | ||
57 | * @param action the action which should be manipulated | 57 | * @param action the action which should be manipulated | ||
58 | */ | 58 | */ | ||
59 | void updateAction(KrAction *action = 0); | 59 | void updateAction(KrAction *action = nullptr); | ||
60 | 60 | | |||
61 | /** | 61 | /** | ||
62 | * clears everything | 62 | * clears everything | ||
63 | */ | 63 | */ | ||
64 | void clear(); | 64 | void clear(); | ||
65 | 65 | | |||
66 | /** | 66 | /** | ||
67 | * @return true if all properties got valid values | 67 | * @return true if all properties got valid values | ||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |