/* Copyright (C) 2018 * swift project Community / Contributors * * This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, * including this file, may be copied, modified, propagated, or distributed except according to the terms * contained in the LICENSE file. */ #include "listmodeltimestampobjects.h" #include "allmodelcontainers.h" #include #include using namespace BlackMisc; using namespace BlackMisc::Aviation; namespace BlackGui { namespace Models { template CListModelTimestampObjects::CListModelTimestampObjects(const QString &translationContext, QObject *parent) : CListModelBase(translationContext, parent) { } template void CListModelTimestampObjects::addTimestampColumns() { CListModelBaseNonTemplate::m_columns.addColumn(CColumn::standardString("timestamp", ObjectType::IndexUtcTimestampFormattedMdhmsz)); CListModelBaseNonTemplate::m_columns.addColumn(CColumn("ms", ObjectType::IndexMSecsSinceEpoch, new CIntegerFormatter())); } template class CListModelTimestampObjects; template class CListModelTimestampObjects; template class CListModelTimestampObjects; template class CListModelTimestampObjects; template CListModelTimestampWithOffsetObjects::CListModelTimestampWithOffsetObjects(const QString &translationContext, QObject *parent) : CListModelTimestampObjects(translationContext, parent) { } template void CListModelTimestampWithOffsetObjects::push_frontKeepLatestAdjustedFirst(const ObjectType &object, int max) { this->beginInsertRows(QModelIndex(), 0, 0); CListModelBase::m_container.push_frontKeepLatestAdjustedFirst(object, max); this->endInsertRows(); } template void CListModelTimestampWithOffsetObjects::addTimestampOffsetColumns() { CListModelTimestampObjects::addTimestampColumns(); CListModelBaseNonTemplate::m_columns.addColumn(CColumn("ms adj.", ObjectType::IndexAdjustedMsWithOffset, new CIntegerFormatter())); CListModelBaseNonTemplate::m_columns.addColumn(CColumn("offset", ObjectType::IndexOffsetMs, new CIntegerFormatter())); } template class CListModelTimestampWithOffsetObjects; template class CListModelTimestampWithOffsetObjects; template class CListModelTimestampWithOffsetObjects; } // namespace } // namespace