diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-28 22:44:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-31 23:30:34 +0900 |
commit | f9abd9d505434c9244c03eac708e29a0ca042f6b (patch) | |
tree | 30a197ab4c413849188bc131ff859212e636c821 /src/app/ActionMan/useractionpage.h | |
parent | 14d42d284de233f9937becf3fc9ee0dabede3b21 (diff) | |
download | krusader-r14.1.x.tar.gz krusader-r14.1.x.zip |
Restructure source foldersr14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 086012dcad8a976a0dabbb7cbc20c9cb612cdfa9)
Diffstat (limited to 'src/app/ActionMan/useractionpage.h')
-rw-r--r-- | src/app/ActionMan/useractionpage.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/app/ActionMan/useractionpage.h b/src/app/ActionMan/useractionpage.h new file mode 100644 index 0000000..2a117f6 --- /dev/null +++ b/src/app/ActionMan/useractionpage.h @@ -0,0 +1,74 @@ +// +// C++ Interface: useractionpage +// +// Description: +// +// +// Author: Shie Erlich and Rafi Yanai <>, (C) 2006 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef USERACTIONPAGE_H +#define USERACTIONPAGE_H + +#include <tqwidget.h> + +class UserActionListView; +class ActionProperty; +class TQToolButton; + +/** + * @author Jonas Bähr +*/ +class UserActionPage : public TQWidget { +TQ_OBJECT + +public: + UserActionPage( TQWidget* parent ); + ~UserActionPage(); + + /** + * Be sure to call this function before you delete this page!! + * @return true if this page can be closed + */ + bool readyToQuit(); + + void applyChanges(); + +signals: + void changed(); ///< emited on changes to an action (used to enable the apply-button) + void applied(); ///< emited when changes are applied to an action (used to disable the apply-button) + +private: + /** + * If there are modifications in the property-widget, the user is asked + * what to do. Apply, discard or continue editing. In the first case, + * saving is done in this function. + * @return true if a new action can be loaded in the property-widget. + */ + bool continueInSpiteOfChanges(); + /** + * applyes all changes by writing the actionfile and emits "applied" + */ + void apply(); + + //bool _modified; ///< true if the action-tree was changed (= changes were applied to an action) + UserActionListView *actionTree; + ActionProperty *actionProperties; + TQToolButton *importButton, *exportButton; + TQToolButton *copyButton, *pasteButton; + TQToolButton *removeButton, *newButton; + +private slots: + void slotChangeCurrent(); //loads a new action into the detail-view + void slotUpdateAction(); //updates the action to the xml-file + void slotNewAction(); + void slotRemoveAction(); + void slotImport(); + void slotExport(); + void slotToClip(); + void slotFromClip(); +}; + +#endif //USERACTIONPAGE_H |