Clean up a little bit main class App, move some code to new helper classes.

This commit is contained in:
Martín Lucas Golini
2024-09-05 00:07:31 -03:00
parent 93925c1460
commit 5382496f08
7 changed files with 689 additions and 604 deletions
+51
View File
@@ -0,0 +1,51 @@
#ifndef SETTINGSACTIONS_HPP
#define SETTINGSACTIONS_HPP
#include <eepp/ee.hpp>
namespace ecode {
class App;
class SettingsActions {
public:
explicit SettingsActions( App* app ) : mApp( app ) {}
void checkForUpdates( bool fromStartup = false );
void aboutEcode();
void ecodeSource();
void setLineBreakingColumn();
void setLineSpacing();
void setCursorBlinkingTime();
void setIndentTabCharacter();
void setFoldRefreshFreq();
void setUIScaleFactor();
void setUIFontSize();
void setEditorFontSize();
void setTerminalFontSize();
void setUIPanelFontSize();
private:
App* mApp{ nullptr };
String i18n( const std::string& key, const String& def );
void checkForUpdatesResponse( Http::Response response, bool fromStartup );
};
} // namespace ecode
#endif