This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2024_Stanislav_Mykhailenko/Lesson_5/Task_2/cardindex.h
Stanislav Mykhailenko 9a82d4a921
Add Lesson 5 Task 2
2024-07-22 23:58:22 +03:00

38 lines
622 B
C++

#ifndef CARDINDEX_H
#define CARDINDEX_H
#include <QMainWindow>
#include <QListWidget>
#include <record.h>
QT_BEGIN_NAMESPACE
namespace Ui {
class CardIndex;
}
QT_END_NAMESPACE
class CardIndex : public QMainWindow
{
Q_OBJECT
public:
CardIndex(QWidget *parent = nullptr);
~CardIndex();
private slots:
void filter();
void add();
void edit();
void remove();
void select(QListWidgetItem *);
private:
Ui::CardIndex *ui;
QVector<Record *> m_records;
Record *findRecordByTitle(QString title);
void reloadRecords();
void setRecordData(Record *);
};
#endif // CARDINDEX_H