/*
 * Copyright (C) 2020, KylinSoft Co., Ltd.
 *
 * 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 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 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 <https://www.gnu.org/licenses/>.
 */
#ifndef SELECTMORECOMMAND_H
#define SELECTMORECOMMAND_H
#include <QWidget>
#include <QPushButton>
#include <QLayout>
#include <QLabel>
#include <QPropertyAnimation>
#include "mypushbutton.h"
#include "selectmorecommand.h"
#include <QDebug>
#include <QQuickWidget>
#include <QQuickItem>
#include <QMenu>
#include <QAction>
#include <QVariantList>
#include <QSettings>
#include <QDir>
#include <QAbstractListModel>
#include <QObject>
#include <QDebug>

#include "commandtemplatelist.h"
#include "./global/kaglobal.h"
#include <windowmanager/windowmanager.h>


class SelectMoreCommandWidget : public QWidget
{
    Q_OBJECT
public:
    explicit SelectMoreCommandWidget (QWidget *parent =nullptr);
    void initSelectMoreCommandWidget();
    int getPromptId();
public slots:
    void setWidgetWidth(const int width);
    void setWidgetHeight(const int height);
signals:
    void sigCurrentCommandText(const QString &text,const int currentId);
    void sigStartSetHeight();
public slots:
    void sendButtonText(const QString &currentButtonText,const int currentId);
private:
    QHBoxLayout *m_hLayoutMain;
    QQuickWidget *m_quickWidget;
};

#endif //SELECTMORECOMMAND_H
