Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
73e4011
add departure tracker
BenWalker01 Dec 27, 2025
046dd8c
correct includes
BenWalker01 Dec 27, 2025
cb76a99
correct include order
BenWalker01 Dec 27, 2025
7743b76
oops
BenWalker01 Dec 27, 2025
74dc6c8
fix circular import
BenWalker01 Dec 27, 2025
339d812
fix msvc errors
BenWalker01 Dec 27, 2025
e513317
refactor: remove unnecessary include of stdafx.h and adjust include o…
BenWalker01 Dec 27, 2025
007bf89
start time at liftoff
BenWalker01 Dec 27, 2025
da42d83
change to use SID now
BenWalker01 Dec 27, 2025
a8d6590
attempt to get airborne QSY
BenWalker01 Dec 27, 2025
5b0d12a
auto formatting :/
BenWalker01 Dec 27, 2025
26dfd44
use the vertical speeed to work out if the plane is airborne
BenWalker01 Dec 27, 2025
c99045b
apparently not that easy
BenWalker01 Dec 27, 2025
ab86ca7
Thanks Euroscope.h
BenWalker01 Dec 27, 2025
614d408
swap wording
BenWalker01 Dec 27, 2025
66ea6be
add to list once on the roll
BenWalker01 Dec 27, 2025
a167fa5
remove once above 6
BenWalker01 Dec 27, 2025
dbf9da6
update spacing
BenWalker01 Dec 27, 2025
8a9e69d
show dep window
BenWalker01 Dec 27, 2025
bfd104c
correct some logic meaning new planes were not being added
BenWalker01 Dec 27, 2025
352ffe3
try logging
BenWalker01 Dec 27, 2025
08fcde0
clean up loggin
BenWalker01 Dec 27, 2025
21a3dca
enable loging
BenWalker01 Dec 27, 2025
f949c46
simplify departure detection
BenWalker01 Dec 27, 2025
5f612a3
log, and hide/display the window on demand
BenWalker01 Dec 27, 2025
409a1c3
apparently isAcOnRunway doesn't work the way I thought it did
BenWalker01 Dec 27, 2025
e7e8b7a
more logs
BenWalker01 Dec 27, 2025
1a647b3
don't remove aircraft that aren't airborne
BenWalker01 Dec 27, 2025
e1511c0
Add trigger to QSY
BenWalker01 Dec 27, 2025
ceed5bb
remove unneeded logging, and disable by default
BenWalker01 Dec 27, 2025
2a20dd6
correct drawing order
BenWalker01 Dec 27, 2025
e14c9a0
right justify QSY
BenWalker01 Dec 27, 2025
5f1fd12
draw a box around the QSY button
BenWalker01 Dec 27, 2025
f36d7ad
logs for QSY button
BenWalker01 Dec 27, 2025
e5d59f3
check registered ac
BenWalker01 Dec 27, 2025
f068776
match what we are looking for
BenWalker01 Dec 27, 2025
d6967e5
update logging for sId
BenWalker01 Dec 27, 2025
cbb9877
sort by time, and LOG!
BenWalker01 Dec 27, 2025
c52ecc3
log buttons
BenWalker01 Dec 27, 2025
4bff9e6
brute log clicks
BenWalker01 Dec 27, 2025
ffbcdd0
fix window
BenWalker01 Dec 27, 2025
bc4da3f
correct the order of buttons
BenWalker01 Dec 27, 2025
adf78ce
re allow moving the window
BenWalker01 Dec 27, 2025
445eebb
remove QSY logging
BenWalker01 Dec 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
423 changes: 222 additions & 201 deletions vSMR/Constant.hpp

Large diffs are not rendered by default.

1,655 changes: 895 additions & 760 deletions vSMR/InsetWindow.cpp

Large diffs are not rendered by default.

49 changes: 26 additions & 23 deletions vSMR/InsetWindow.h
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
#pragma once
#include "SMRRadar.hpp"
#include "EuroScopePlugIn.h"
#include <string>
#include <map>
#include "Logger.h"
#include <map>
#include <string>

using namespace std;
using namespace EuroScopePlugIn;

class CInsetWindow
{
class CSMRRadar;

class CInsetWindow {
public:
CInsetWindow(int Id);
virtual ~CInsetWindow();
CInsetWindow(int Id);
virtual ~CInsetWindow();

// Definition
int m_Id = -1, m_Scale = 15, m_Filter = 5500;
RECT m_Area = {200, 200, 600, 500};
POINT m_Offset = {0, 0}, m_OffsetInit = {0, 0}, m_OffsetDrag = {0, 0};
bool m_Grip = false;
double m_Rotation = 0;

// Definition
int m_Id = -1, m_Scale = 15, m_Filter = 5500;
RECT m_Area = { 200, 200, 600, 500 };
POINT m_Offset = { 0, 0 }, m_OffsetInit = { 0, 0 }, m_OffsetDrag = { 0, 0 };
bool m_Grip = false;
double m_Rotation = 0;
map<string, double> m_TagAngles;

map<string, double> m_TagAngles;
virtual void render(HDC Hdc, CSMRRadar *radar_screen, Gdiplus::Graphics *gdi,
POINT mouseLocation,
multimap<string, string> DistanceTools);
virtual void setAirport(string icao);
virtual POINT projectPoint(CPosition pos);
virtual void OnClickScreenObject(const char *sItemString, POINT Pt,
int Button);
virtual bool OnMoveScreenObject(const char *sObjectId, POINT Pt, RECT Area,
bool released);

virtual void render(HDC Hdc, CSMRRadar * radar_screen, Graphics* gdi, POINT mouseLocation, multimap<string, string> DistanceTools);
virtual void setAirport(string icao);
virtual POINT projectPoint(CPosition pos);
virtual void OnClickScreenObject(const char * sItemString, POINT Pt, int Button);
virtual bool OnMoveScreenObject(const char * sObjectId, POINT Pt, RECT Area, bool released);

private:
string icao;
map<string, CPosition> AptPositions;
string icao;
map<string, CPosition> AptPositions;
};

Loading