File: buttonscell.h

package info (click to toggle)
colorcode 0.8.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,224 kB
  • sloc: cpp: 8,331; makefile: 57
file content (40 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef BUTTONSCELL_H
#define BUTTONSCELL_H

#include <QtWidgets>
#include <QWidget>
#include "cellbtn.h"

class ButtonsCell : public QWidget
{
    Q_OBJECT

    public:
        static const int ACTIONID_NONE;
        static const int ACTIONID_PLAY;
        static const int ACTIONID_SAVE;
        static const int ACTIONID_COPY;
        static const int ACTIONID_DELETE;

        ButtonsCell(QWidget* parent = 0, int hideBtn = 0);

        int GetActionId();

    signals:
        void CellButtonClickedSignal();

    protected slots:
        void ButtonClickedSlot();

    private:
        CellBtn *mDeleteBtn;
        CellBtn *mPlayBtn;
        CellBtn *mSaveBtn;
        CellBtn *mCopyBtn;

        QList<CellBtn*> mButtonsList;

        int mActionId;
};

#endif // BUTTONSCELL_H