This change adds font size and font family to the ApplicationSettings to have a single point for manipulating them. The font size can also be changed via the menu or the zoomIn and zoomOut shortcuts on all platforms.
33 lines
613 B
C++
33 lines
613 B
C++
#include "component/controller/RefreshController.h"
|
|
|
|
#include "utility/messaging/type/MessageRefresh.h"
|
|
|
|
#include "component/view/RefreshView.h"
|
|
|
|
RefreshController::RefreshController()
|
|
: m_autoRefreshEnabled(false)
|
|
{
|
|
}
|
|
|
|
RefreshController::~RefreshController()
|
|
{
|
|
}
|
|
|
|
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>();
|
|
}
|