Files
neutrino/src/gui/lcd4l_setup.h
Thilo Graf 9621bc4a98 lcd4linux: add slots for more user involvement
Keeps gui stuff away from parts of /src/driver and
callbacks with messages should inform the user about possible
operations during activation or deactivation of service.
Reason: long breaks are mediating
freeze or unknown status that leave the user in the dark.
2021-06-30 19:32:57 +02:00

66 lines
1.6 KiB
C++

/*
lcd4l setup
Copyright (C) 2012 'defans'
Homepage: http://www.bluepeercrew.us/
Copyright (C) 2012-2018 'vanhofen'
Homepage: http://www.neutrino-images.de/
Modded (C) 2016 'TangoCash'
(C) 2021, Thilo Graf 'dbt'
License: GPL
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __lcd4l_setup__
#define __lcd4l_setup__
#include "gui/widget/menue.h"
#include "gui/widget/hintbox.h"
#include <sigc++/signal.h>
class CLCD4lSetup : public CMenuTarget, CChangeObserver
{
private:
bool lcd4l_display_type_changed;
int temp_lcd4l_display_type;
int temp_lcd4l_skin;
int temp_lcd4l_brightness;
int width;
int show();
int showTypeSetup();
//messages
CHint *hint;
void removeHint();
void showHint(const std::string &text);
//slots
sigc::slot<void> sl_start, sl_stop, sl_restart, sl_remove;
public:
static CLCD4lSetup* getInstance();
CLCD4lSetup();
~CLCD4lSetup();
int exec(CMenuTarget *parent, const std::string &actionkey);
virtual bool changeNotify(const neutrino_locale_t OptionName, void * /*data*/);
void connectSlots();
};
#endif