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>
This commit is contained in:
848 files changed
+89305
-100020
No files matched your search
Executable → Regular
+44
-88
@@ -1,128 +1,84 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ltstimelineclassic_export.h"
|
||||
#include "EventList.h"
|
||||
#include "PassiveEventContainer.h"
|
||||
#include "ltstimelineclassic_export.h"
|
||||
|
||||
namespace LtsTimelineClassic
|
||||
{
|
||||
|
||||
class Item;
|
||||
using ItemList = QList<Item *>;
|
||||
|
||||
|
||||
class Item;
|
||||
using ItemList = QList<Item*>;
|
||||
|
||||
class LTSTIMELINECLASSIC_EXPORT Item
|
||||
{
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Item(const Item &) = delete;
|
||||
Item &operator=(const Item &) = delete;
|
||||
const EventGraphicList getEventGraphics() const;
|
||||
public:
|
||||
Item(const Item&) = delete;
|
||||
Item& operator=(const Item&) = delete;
|
||||
const EventGraphicList getEventGraphics() const;
|
||||
|
||||
|
||||
explicit Item(const QString& name, const QString& identifier = QString());
|
||||
|
||||
explicit Item(const QString &name, const QString &identifier = QString());
|
||||
~Item();
|
||||
|
||||
|
||||
void addItem(Item* item);
|
||||
|
||||
~Item();
|
||||
bool removeEvent(int eventId);
|
||||
|
||||
|
||||
void setEventListChanged();
|
||||
|
||||
void addItem(Item *item);
|
||||
const QString path() const;
|
||||
|
||||
bool removeEvent(int eventId);
|
||||
PassiveEventContainer* getPevcon();
|
||||
|
||||
void setEventListChanged();
|
||||
const EventGraphicList getCurrentEGLFromPevcon() const;
|
||||
|
||||
const QString path() const;
|
||||
void setParent(Item* parent);
|
||||
|
||||
|
||||
const QString& getName() const;
|
||||
|
||||
|
||||
void setName(const QString& name)
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
|
||||
|
||||
const QString& getIdentifier() const
|
||||
{
|
||||
return m_identifier;
|
||||
}
|
||||
|
||||
PassiveEventContainer *getPevcon();
|
||||
ItemList* getChildren();
|
||||
|
||||
const EventGraphicList getCurrentEGLFromPevcon() const;
|
||||
Item* getParent() const;
|
||||
|
||||
|
||||
void addEvent(Event* event);
|
||||
|
||||
EventList getFullEventList(bool recursive = true, bool getHiddenEvents = false) const;
|
||||
|
||||
|
||||
ItemList getFullItemList(bool recursive = true) const;
|
||||
|
||||
void setParent(Item *parent);
|
||||
Item* child(int row) const;
|
||||
|
||||
|
||||
int indexOfParent() const;
|
||||
|
||||
const QString &getName() const;
|
||||
int childCount() const;
|
||||
|
||||
void setName(const QString &name) { m_name = name; }
|
||||
int visibleChildCount() const;
|
||||
|
||||
const QString &getIdentifier() const { return m_identifier; }
|
||||
bool hasVisibleEvents() const;
|
||||
|
||||
|
||||
private:
|
||||
QString m_name;
|
||||
QString m_identifier;
|
||||
ItemList* m_children;
|
||||
Item* m_parent;
|
||||
PassiveEventContainer* m_pevcon;
|
||||
EventList m_eventList;
|
||||
|
||||
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;
|
||||
bool m_eventListChanged;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace LtsTimelineClassic
|
||||
Reference in new issue
Block a user