From 67f5b38391f8e24f5605cf08d5889adb570d720e Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 22 Oct 2016 04:18:31 +0200 Subject: [PATCH] UI finetuning and minor code formatting --- src/blackcore/simulator.h | 1 - .../components/aircraftcombinedtypeselector.h | 1 - src/blackgui/components/atcstationcomponent.h | 1 - src/blackgui/components/internalscomponent.ui | 233 ++++++++++-------- .../settingssimulatormessagescomponent.ui | 34 ++- .../models/statusmessagelistmodel.cpp | 2 +- 6 files changed, 159 insertions(+), 113 deletions(-) diff --git a/src/blackcore/simulator.h b/src/blackcore/simulator.h index b8a275be8..6a3d3548c 100644 --- a/src/blackcore/simulator.h +++ b/src/blackcore/simulator.h @@ -44,7 +44,6 @@ namespace BlackMisc namespace BlackCore { - //! Interface to a simulator. class BLACKCORE_EXPORT ISimulator : public QObject, diff --git a/src/blackgui/components/aircraftcombinedtypeselector.h b/src/blackgui/components/aircraftcombinedtypeselector.h index 998245941..d73ec7f98 100644 --- a/src/blackgui/components/aircraftcombinedtypeselector.h +++ b/src/blackgui/components/aircraftcombinedtypeselector.h @@ -24,7 +24,6 @@ class QWidget; namespace BlackMisc { namespace Aviation { class CAircraftIcaoCode; } } namespace Ui { class CAircraftCombinedTypeSelector; } - namespace BlackGui { namespace Components diff --git a/src/blackgui/components/atcstationcomponent.h b/src/blackgui/components/atcstationcomponent.h index e9a68814d..d3925d3e4 100644 --- a/src/blackgui/components/atcstationcomponent.h +++ b/src/blackgui/components/atcstationcomponent.h @@ -33,7 +33,6 @@ class QWidget; namespace BlackMisc { namespace Aviation { class CCallsign; } } namespace Ui { class CAtcStationComponent; } - namespace BlackGui { class CDockWidgetInfoArea; diff --git a/src/blackgui/components/internalscomponent.ui b/src/blackgui/components/internalscomponent.ui index 0d9209946..e8f1892b3 100644 --- a/src/blackgui/components/internalscomponent.ui +++ b/src/blackgui/components/internalscomponent.ui @@ -6,7 +6,7 @@ 0 0 - 277 + 282 450 @@ -118,10 +118,10 @@ - + - WORK IN PROGRES!!!!! + WORK IN PROGRESS! @@ -154,7 +154,7 @@ - WORK IN PROGRES!!!!! + WORK IN PROGRESS! @@ -167,7 +167,7 @@ 0 - 0 + 4 0 @@ -176,39 +176,34 @@ 0 - - - Aircraft - - - - 2 - + + - 4 + 2 - 6 + 0 - 4 - - 2 - + + 0 + + + + + Aircraft: + + + + - - - 0 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised + + + 0 + 25 + @@ -256,13 +251,13 @@ - 6 + 4 4 - 6 + 4 4 @@ -275,13 +270,6 @@ 6 - - - - Landing - - - @@ -289,6 +277,13 @@ + + + + Landing + + + @@ -296,13 +291,6 @@ - - - - 2 - - - @@ -310,41 +298,6 @@ - - - - 1 - - - - - - - Flaps %: - - - - - - - 4 - - - - - - - 3 - - - - - - - Spoilers - - - @@ -352,17 +305,17 @@ - - + + - Nav + Flaps %: - - + + - Lights: + Spoilers @@ -373,6 +326,13 @@ + + + + Lights: + + + @@ -380,10 +340,10 @@ - - + + - 5 + Nav @@ -404,6 +364,13 @@ + + + + all off + + + @@ -418,20 +385,6 @@ - - - - 6 - - - - - - - all off - - - @@ -446,6 +399,78 @@ + + + + + 0 + 20 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 1 + + + + + + + 2 + + + + + + + 3 + + + + + + + 4 + + + + + + + 5 + + + + + + + 6 + + + + + + diff --git a/src/blackgui/components/settingssimulatormessagescomponent.ui b/src/blackgui/components/settingssimulatormessagescomponent.ui index e62bf9ae5..e1bed949d 100644 --- a/src/blackgui/components/settingssimulatormessagescomponent.ui +++ b/src/blackgui/components/settingssimulatormessagescomponent.ui @@ -6,8 +6,8 @@ 0 0 - 268 - 254 + 262 + 242 @@ -25,7 +25,19 @@ Technical messages - + + + 6 + + + 6 + + + 6 + + + 6 + @@ -53,7 +65,7 @@ - wanrings + warnings @@ -85,7 +97,19 @@ Message type - + + + 6 + + + 6 + + + 6 + + + 6 + diff --git a/src/blackgui/models/statusmessagelistmodel.cpp b/src/blackgui/models/statusmessagelistmodel.cpp index 847bde440..8a9bc054d 100644 --- a/src/blackgui/models/statusmessagelistmodel.cpp +++ b/src/blackgui/models/statusmessagelistmodel.cpp @@ -46,8 +46,8 @@ namespace BlackGui CColumn col = CColumn("severity", CStatusMessage::IndexIcon); col.setSortPropertyIndex(CStatusMessage::IndexSeverityAsString); this->m_columns.addColumn(col); - this->m_columns.addColumn(CColumn::standardString("category", CStatusMessage::IndexCategoryHumanReadableOrTechnicalAsString)); this->m_columns.addColumn(CColumn::standardString("message", CStatusMessage::IndexMessage)); + this->m_columns.addColumn(CColumn::standardString("category", CStatusMessage::IndexCategoryHumanReadableOrTechnicalAsString)); this->m_sortColumn = CStatusMessage::IndexUtcTimestamp; this->m_sortOrder = Qt::DescendingOrder;