2018-11-08 23:34:42 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/common/Emoticons.h *
|
|
|
|
* *
|
|
|
|
* Copyright (C) 2010, Retroshare Team <retroshare.project@gmail.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
2010-09-14 17:47:11 +00:00
|
|
|
|
|
|
|
#ifndef _EMOTICONS_H
|
|
|
|
#define _EMOTICONS_H
|
|
|
|
|
2019-10-05 19:53:24 +02:00
|
|
|
#include <QVector>
|
|
|
|
|
2010-09-14 17:47:11 +00:00
|
|
|
class QWidget;
|
|
|
|
class QString;
|
|
|
|
|
|
|
|
class Emoticons
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void load();
|
|
|
|
static void showSmileyWidget(QWidget *parent, QWidget *button, const char *slotAddMethod, bool above);
|
2019-06-30 23:20:25 +02:00
|
|
|
static void showStickerWidget(QWidget *parent, QWidget *button, const char *slotAddMethod, bool above);
|
2019-10-05 23:18:41 +02:00
|
|
|
static QString importedStickerPath();
|
2010-09-14 17:47:11 +00:00
|
|
|
|
2019-07-01 01:54:15 +02:00
|
|
|
private:
|
|
|
|
static void loadToolTips(QWidget *container);
|
2019-10-05 23:18:41 +02:00
|
|
|
static void loadSmiley();
|
|
|
|
static void refreshStickerTabs(QVector<QString>& stickerTabs, QString foldername);
|
|
|
|
static void refreshStickerTabs(QVector<QString>& stickerTabs);
|
2010-09-14 17:47:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|