Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
47 lines
985 B
C++
47 lines
985 B
C++
#pragma once
|
|
|
|
#include "./screen.hpp"
|
|
|
|
#include "./chat_gui/theme.hpp"
|
|
#include "./chat_gui/file_selector.hpp"
|
|
|
|
#include <solanaceae/util/simple_config_model.hpp>
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
// fwd
|
|
extern "C" {
|
|
struct SDL_Renderer;
|
|
} // C
|
|
|
|
struct StartScreen final : public Screen {
|
|
SDL_Renderer* _renderer;
|
|
Theme& _theme;
|
|
SimpleConfigModel _conf;
|
|
FileSelector _fss;
|
|
|
|
bool _new_save {false};
|
|
std::string _user_name {"unnamed-tomato"};
|
|
|
|
bool _show_password {false};
|
|
std::string _password;
|
|
|
|
std::string _tox_profile_path {"unnamed-tomato.tox"};
|
|
std::vector<std::string> queued_plugin_paths;
|
|
|
|
std::string _error_string;
|
|
|
|
StartScreen(void) = delete;
|
|
StartScreen(const std::vector<std::string_view>& args, SDL_Renderer* renderer, Theme& theme);
|
|
~StartScreen(void) = default;
|
|
|
|
// return nullptr if not next
|
|
// sets bool quit to true if exit
|
|
Screen* render(float, bool&) override;
|
|
Screen* tick(float, bool&) override;
|
|
|
|
// use default nextRender and nextTick
|
|
};
|
|
|