ui: removed auto refresh

This commit is contained in:
Eberhard Graether
2016-08-24 13:28:28 +02:00
parent 994a749b80
commit 01f740276b
10 changed files with 4 additions and 98 deletions
@@ -1,11 +1,8 @@
#include "component/controller/RefreshController.h"
#include "utility/messaging/type/MessageRefresh.h"
#include "component/view/RefreshView.h"
RefreshController::RefreshController()
: m_autoRefreshEnabled(false)
{
}
@@ -17,19 +14,6 @@ void RefreshController::clear()
{
}
void RefreshController::handleMessage(MessageAutoRefreshChanged* message)
{
m_autoRefreshEnabled = message->enabled;
}
void RefreshController::handleMessage(MessageWindowFocus* message)
{
if (m_autoRefreshEnabled)
{
MessageRefresh().dispatch();
}
}
RefreshView* RefreshController::getView()
{
return Controller::getView<RefreshView>();
@@ -2,16 +2,11 @@
#define REFRESH_CONTROLLER_H
#include "component/controller/Controller.h"
#include "utility/messaging/MessageListener.h"
#include "utility/messaging/type/MessageAutoRefreshChanged.h"
#include "utility/messaging/type/MessageWindowFocus.h"
class RefreshView;
class RefreshController
: public Controller
, public MessageListener<MessageAutoRefreshChanged>
, public MessageListener<MessageWindowFocus>
{
public:
RefreshController();
@@ -20,12 +15,7 @@ public:
virtual void clear();
private:
virtual void handleMessage(MessageAutoRefreshChanged* message);
virtual void handleMessage(MessageWindowFocus* message);
RefreshView* getView();
bool m_autoRefreshEnabled;
};
#endif // REFRESH_CONTROLLER_H