Added CompositView, which implements both View and ViewLayout, for combining Views to one Widget. The layout can be set to either horizontal or vertical. SearchView, RefreshView and UndoRedoView are combined to one DockWidget by the ComponentManager now. fortune cookie message = You'll get more secure and confident with your relationship with your co-workers.
38 lines
883 B
C++
38 lines
883 B
C++
#ifndef QT_UNDO_REDO_VIEW_H
|
|
#define QT_UNDO_REDO_VIEW_H
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "component/view/UndoRedoView.h"
|
|
#include "qt/element/QtUndoRedo.h"
|
|
#include "qt/utility/QtThreadedFunctor.h"
|
|
|
|
class QtUndoRedoView : public UndoRedoView
|
|
{
|
|
public:
|
|
QtUndoRedoView(ViewLayout* viewLayout);
|
|
~QtUndoRedoView();
|
|
|
|
// View implementation
|
|
virtual void createWidgetWrapper();
|
|
virtual void initView();
|
|
virtual void refreshView();
|
|
|
|
// UndoRedo view implementation
|
|
virtual void setRedoButtonEnabled(bool enabled);
|
|
virtual void setUndoButtonEnabled(bool enabled);
|
|
|
|
private:
|
|
void doSetRedoButtonEnabled(bool enabled);
|
|
void doSetUndoButtonEnabled(bool enabled);
|
|
|
|
QtThreadedFunctor<bool> m_setRedoButtonEnabledFunctor;
|
|
QtThreadedFunctor<bool> m_setUndoButtonEnabledFunctor;
|
|
|
|
void setStyleSheet();
|
|
QtUndoRedo* m_widget;
|
|
};
|
|
|
|
#endif // !QT_UNDO_REDO_VIEW_H
|