kde-workspace/plasma/applets/notes/notes.h
Ivailo Monev 5d8583e545 plasma: save and restore the spell checking state in notes applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-07 09:09:35 +03:00

49 lines
1.4 KiB
C++

/*
This file is part of the KDE project
Copyright (C) 2024 Ivailo Monev <xakepa10@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2, as published by the Free Software Foundation.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef NOTES_H
#define NOTES_H
#include <Plasma/PopupApplet>
class NotesAppletWidget;
class NotesApplet : public Plasma::PopupApplet
{
Q_OBJECT
public:
NotesApplet(QObject *parent, const QVariantList &args);
// Plasma::Applet reimplementation
void init() final;
// Plasma::PopupApplet reimplementation
QGraphicsWidget* graphicsWidget() final;
// Plasma::Applet reimplementations
public Q_SLOTS:
void configChanged();
protected:
void saveState(KConfigGroup &group) const final;
private:
friend NotesAppletWidget;
NotesAppletWidget *m_noteswidget;
};
#endif // NOTES_H