Files
torstenandCopilot d6b6ffce7c Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 14:46:29 +02:00

85 lines
1.5 KiB
C++

#pragma once
#include "EventList.h"
#include "PassiveEventContainer.h"
#include "ltstimelineclassic_export.h"
namespace LtsTimelineClassic
{
class Item;
using ItemList = QList<Item*>;
class LTSTIMELINECLASSIC_EXPORT Item
{
public:
Item(const Item&) = delete;
Item& operator=(const Item&) = delete;
const EventGraphicList getEventGraphics() const;
explicit Item(const QString& name, const QString& identifier = QString());
~Item();
void addItem(Item* item);
bool removeEvent(int eventId);
void setEventListChanged();
const QString path() const;
PassiveEventContainer* getPevcon();
const EventGraphicList getCurrentEGLFromPevcon() const;
void setParent(Item* parent);
const QString& getName() const;
void setName(const QString& name)
{
m_name = name;
}
const QString& getIdentifier() const
{
return m_identifier;
}
ItemList* getChildren();
Item* getParent() const;
void addEvent(Event* event);
EventList getFullEventList(bool recursive = true, bool getHiddenEvents = false) const;
ItemList getFullItemList(bool recursive = true) const;
Item* child(int row) const;
int indexOfParent() const;
int childCount() const;
int visibleChildCount() const;
bool hasVisibleEvents() const;
private:
QString m_name;
QString m_identifier;
ItemList* m_children;
Item* m_parent;
PassiveEventContainer* m_pevcon;
EventList m_eventList;
bool m_eventListChanged;
};
} // namespace LtsTimelineClassic