Pith - whittle
whittle/src/ui/SchemeDialogs.h [0.7 kb]
Modified: 19:51:46 130 026 (27 Jul 026)
0 Days Ago
#pragma once
#include <QDialog>
#include <QString>
#include <QStringList>

class QLineEdit; class QListWidget; class QPushButton;

namespace whittle {

class SaveSchemeDialog : public QDialog {
    Q_OBJECT
public:
    SaveSchemeDialog(const QStringList& existing, bool allowSave = true,
                     QWidget* parent = nullptr);
    QString schemeName() const;

    bool listChanged() const { return m_listChanged; }

private slots:
    void validate();
    void tryAccept();
    void onDelete();

private:
    QLineEdit*   m_edit = nullptr;
    QListWidget* m_list = nullptr;
    QPushButton* m_ok   = nullptr;
    QPushButton* m_del  = nullptr;
    QStringList  m_existing;
    bool m_allowSave   = true;
    bool m_listChanged = false;
};

}
Updates
Whittle - Linux 130.026
Wedge - Android 126.026
Wedge - Linux 124.026
Shim - Android 117.026
Miter - 114.026
Dev
TVShow (227) 'CSA'
TVShow (228) 'APT'
TVProgram (83) 'BXT'
Miter Update(s)
Peen (Messaging)

Menu
Calendar
Project Tin (024/029)
Miter
RSS Feed
User Avatar
@vgmlr
=SUM(parts)