Scaffold Qt6 Widgets app for Milestone 0
This commit is contained in:
37
src/profiles_window.h
Normal file
37
src/profiles_window.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef ORBITHUB_PROFILES_WINDOW_H
|
||||
#define ORBITHUB_PROFILES_WINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QString>
|
||||
|
||||
#include <QPointer>
|
||||
#include <vector>
|
||||
|
||||
class QListWidget;
|
||||
class QListWidgetItem;
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class SessionWindow;
|
||||
|
||||
class ProfilesWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ProfilesWindow(QWidget* parent = nullptr);
|
||||
|
||||
private:
|
||||
QLineEdit* m_searchBox;
|
||||
QListWidget* m_profilesList;
|
||||
QPushButton* m_newButton;
|
||||
QPushButton* m_editButton;
|
||||
QPushButton* m_deleteButton;
|
||||
std::vector<QPointer<SessionWindow>> m_sessionWindows;
|
||||
|
||||
void setupUi();
|
||||
void populateSampleProfiles();
|
||||
void filterProfiles(const QString& query);
|
||||
void openSessionForItem(QListWidgetItem* item);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user