* Added CDB option to project type selection * show CDB source files in popup * define header paths separately * made generic content summary in wizzard and use it everywhere * fixed file paths not canonical in analysis * refactored wizzard content paths to use summary instead of subpaths * refactored files popup to simpler communication with content bug id = 35
45 lines
672 B
C++
45 lines
672 B
C++
#ifndef QT_WINDOW_STACK
|
|
#define QT_WINDOW_STACK
|
|
|
|
#include <vector>
|
|
|
|
#include <QWidget>
|
|
|
|
class QtWindowStackElement
|
|
: public QWidget
|
|
{
|
|
public:
|
|
QtWindowStackElement(QWidget* parent = nullptr);
|
|
|
|
virtual void showWindow() = 0;
|
|
virtual void hideWindow() = 0;
|
|
};
|
|
|
|
|
|
class QtWindowStack
|
|
: public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void empty();
|
|
void pop();
|
|
void push();
|
|
|
|
public:
|
|
QtWindowStack(QObject* parent = nullptr);
|
|
|
|
QtWindowStackElement* getTopWindow();
|
|
size_t getWindowCount();
|
|
|
|
public slots:
|
|
void pushWindow(QtWindowStackElement* window);
|
|
void popWindow();
|
|
void clearWindows();
|
|
|
|
private:
|
|
std::vector<QtWindowStackElement*> m_stack;
|
|
};
|
|
|
|
#endif // QT_WINDOW_STACK
|