2023-03-08 16:02:05 +01:00

34 lines
734 B
C++

/******************************************************************************
* Copyright (C) 2021 Edelhirsch Software GmbH
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#pragma once
#include <QskLinearBox.h>
#include "MainItem.h"
class QskPushButton;
class MenuBar final : public QskLinearBox
{
Q_OBJECT
public:
QSK_SUBCONTROLS( Panel )
MenuBar( QQuickItem* parent );
Q_SIGNALS:
void pageChangeRequested( const int index );
public Q_SLOTS:
void setActivePage( const int index );
private:
void populate();
QskPushButton* m_buttons[ Cube::NumPositions ];
uint m_currentIndex;
};