mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Issue #77 Move GlobalIndex enum from CPropertyIndex to CPropertyIndexRef
This commit is contained in:
@@ -84,7 +84,7 @@ namespace BlackGui
|
||||
|
||||
CColumn CColumn::emptyColumn()
|
||||
{
|
||||
CColumn col = CColumn("", "", CPropertyIndex::GlobalIndexEmpty, new CEmptyFormatter());
|
||||
CColumn col = CColumn("", "", CPropertyIndexRef::GlobalIndexEmpty, new CEmptyFormatter());
|
||||
col.setWidthPercentage(1);
|
||||
return col;
|
||||
}
|
||||
@@ -276,7 +276,7 @@ namespace BlackGui
|
||||
{
|
||||
if (m_columns.isEmpty()) { return false; }
|
||||
const CColumn c = m_columns.last();
|
||||
return c.getPropertyIndex() == CPropertyIndex::GlobalIndexEmpty;
|
||||
return c.getPropertyIndex() == CPropertyIndexRef::GlobalIndexEmpty;
|
||||
}
|
||||
|
||||
const CDefaultFormatter *CColumns::getFormatter(const QModelIndex &index) const
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace BlackGui
|
||||
static CColumn standardString(const QString &headerName, const QString &toolTip, const BlackMisc::CPropertyIndex &propertyIndex, int alignment = CDefaultFormatter::alignDefault());
|
||||
|
||||
//! Get a standard string object formatted column
|
||||
static CColumn orderColumn(const BlackMisc::CPropertyIndex &propertyIndex = BlackMisc::CPropertyIndex::GlobalIndexIOrderable, int alignment = CDefaultFormatter::alignRightVCenter());
|
||||
static CColumn orderColumn(const BlackMisc::CPropertyIndex &propertyIndex = BlackMisc::CPropertyIndexRef::GlobalIndexIOrderable, int alignment = CDefaultFormatter::alignRightVCenter());
|
||||
|
||||
//! Get a standard integer value formatted column
|
||||
static CColumn standardInteger(const QString &headerName, const QString &toolTip, const BlackMisc::CPropertyIndex &propertyIndex, int alignment = CDefaultFormatter::alignRightVCenter());
|
||||
|
||||
@@ -107,8 +107,8 @@ namespace BlackGui
|
||||
// special cases
|
||||
switch (propertyIndexFront)
|
||||
{
|
||||
case CPropertyIndex::GlobalIndexLineNumber: return QVariant::fromValue(row + 1);
|
||||
case CPropertyIndex::GlobalIndexEmpty: return {};
|
||||
case CPropertyIndexRef::GlobalIndexLineNumber: return QVariant::fromValue(row + 1);
|
||||
case CPropertyIndexRef::GlobalIndexEmpty: return {};
|
||||
default: break; // continue here
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace BlackGui
|
||||
//! Properties by index
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexInRangeOnly = BlackMisc::CPropertyIndex::GlobalIndexCAtcStationsSettings,
|
||||
IndexInRangeOnly = BlackMisc::CPropertyIndexRef::GlobalIndexCAtcStationsSettings,
|
||||
IndexValidFrequencyOnly
|
||||
};
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace BlackGui
|
||||
//! Properties by index
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexFloatingMargins = BlackMisc::CPropertyIndex::GlobalIndexCDockWidgetSettings,
|
||||
IndexFloatingMargins = BlackMisc::CPropertyIndexRef::GlobalIndexCDockWidgetSettings,
|
||||
IndexFloatingFramelessMargins,
|
||||
IndexDockedMargins,
|
||||
IndexFrameless,
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace BlackGui
|
||||
//! Properties by index
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexWidgetStyle = BlackMisc::CPropertyIndex::GlobalIndexCGeneralGuiSettings,
|
||||
IndexWidgetStyle = BlackMisc::CPropertyIndexRef::GlobalIndexCGeneralGuiSettings,
|
||||
IndexPreferredSelection
|
||||
};
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace BlackGui
|
||||
//! Properties by index
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexMargins = BlackMisc::CPropertyIndex::GlobalIndexCNavigatorSettings,
|
||||
IndexMargins = BlackMisc::CPropertyIndexRef::GlobalIndexCNavigatorSettings,
|
||||
IndexFrameless,
|
||||
IndexColumns
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace BlackGui
|
||||
//! Properties by index
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexPopupPrivateMessages = BlackMisc::CPropertyIndex::GlobalIndexCTextMessageSettings,
|
||||
IndexPopupPrivateMessages = BlackMisc::CPropertyIndexRef::GlobalIndexCTextMessageSettings,
|
||||
IndexPopupSupervisorMessages,
|
||||
IndexPopupFrequencyMessages,
|
||||
IndexPopupAllMessages,
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace BlackGui
|
||||
//! Properties by index
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexAtc = BlackMisc::CPropertyIndex::GlobalIndexCViewUpdateSettings,
|
||||
IndexAtc = BlackMisc::CPropertyIndexRef::GlobalIndexCViewUpdateSettings,
|
||||
IndexAircraft,
|
||||
IndexRendering,
|
||||
IndexUser
|
||||
|
||||
Reference in New Issue
Block a user