ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
src
widgets
common
ListWidget.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2009 - 2022 Arzel Jérôme <myst6re@gmail.com>
2
// SPDX-FileCopyrightText: 2023 Chris Rizzitello <sithlord48@gmail.com>
3
// SPDX-License-Identifier: LGPL-3.0-or-later
4
5
#pragma once
6
7
#include <QWidget>
8
#include <QToolBar>
9
#include <QListWidget>
10
#include <QEvent>
11
12
#include <ff7tkqtwidgets_export.h>
13
14
class
FF7TKQTWIDGETS_EXPORT
ListWidget
:
public
QWidget
15
{
16
Q_OBJECT
17
public
:
18
enum
ActionType
{
19
Add, Remove,
Up
, Down, Cut, Copy, Paste
20
};
21
22
explicit
ListWidget
(QWidget *parent =
nullptr
);
23
void
addSeparator(
bool
invisible =
false
);
24
QAction *addAction(ActionType type,
const
QString &overrideText = QString(),
bool
visible =
true
);
25
26
QToolBar *toolBar()
const
;
27
QListWidget *listWidget()
const
;
28
signals:
29
void
addTriggered();
30
void
removeTriggered();
31
void
cutTriggered();
32
void
copyTriggered();
33
void
pasteTriggered();
34
void
upTriggered();
35
void
downTriggered();
36
protected
:
37
void
changeEvent(QEvent *e);
38
private
:
39
QToolBar *_toolBar;
40
QListWidget *_listWidget;
41
};
ListWidget::ActionType
ActionType
Definition:
ListWidget.h:18
ListWidget
Definition:
ListWidget.h:14
ListWidget::Up
@ Up
Definition:
ListWidget.h:19
Generated by
1.8.17