Skip to content

Implemented double click features for : taxiways, ground vehicules, drapped polygones#45

Open
IlyassBa wants to merge 43 commits intoX-Plane:masterfrom
IlyassBa:feature/double-click-features
Open

Implemented double click features for : taxiways, ground vehicules, drapped polygones#45
IlyassBa wants to merge 43 commits intoX-Plane:masterfrom
IlyassBa:feature/double-click-features

Conversation

@IlyassBa
Copy link
Contributor

No description provided.

Marco Auer and others added 30 commits August 19, 2025 14:39
…argets now don't properly link against the necessary libraries. Worked around that by not building the proj executables, and by linking WED against these needed libraries manually.
Added new field in metadate to define the airport altimeter (QNH/QFE)
…a way to have all configurations be able to find the dependencies, so instead just generate three separate projects.
@mauer
Copy link
Contributor

mauer commented Jan 27, 2026

Hi @IlyassBa,

Can you add a description to the Pull Request, please? I'm not sure which feature you implemented and how it works. In addition, please rebase to wed_270_release.

I tried to compile the topic branch on macOS, but it failed. In this state its unmergable - just like the other Pull Request. It's important that branches compile on Linux, Windows and macOS.

@IlyassBa IlyassBa force-pushed the feature/double-click-features branch from 5feaece to d5b9c4f Compare January 28, 2026 21:20
@IlyassBa
Copy link
Contributor Author

IlyassBa commented Jan 29, 2026

Hi @mauer ,

I rebased from wed_270_release,

The features that i added in here as stated in the name is :

  • OnDoubleClick::Ground Vehicles
  • OnDoubleClick::Draped Polygons
  • OnDoubleClick::Taxiways

Code wise, its repeated for the three features so i will explain just one and the same applies to all of them.

  1. Initial Checks:
if (mParent == nullptr) break;
if (gModeratorMode == 0) {
    cell_bounds[0] -= mEditInfo.indent_level * mCellIndent;
    CreateEdit(cell_bounds);
    mClickCellX = cell_x;
    mClickCellY = cell_y;
    return 1;
}

=> Here i am checking if no parent table and if moderator mode is disabled.

  1. Preparing for Double-Click Logic:

=> I stored the clicked cell coordinates, retrieved the cell's content and toggled the firstDoubleClick boolean ( Read point 4 about why firstDoubleClick )

  1. Double-Click Behavior:

=> If the double clicked cell name is Taxiways i loop all cells (including the ones inside taxiways) to enable the hidden property then i loop inside the Taxiways sub cells and disable the hidden property and then use the DispatchHandleCommand() to enable the SlippyMapESRI

( same for Drapped Polygons and Ground Vehicule )

  1. Second Double-Click Behavior:

This wasn't in the WED Moderator Request Changes PDF, but it makes it easier to go back so if you want me to remove it i just add a comment.

in here I am doing the same thing as in point 3 but i am disabling the hidden property for the the cells.

@IlyassBa
Copy link
Contributor Author

IlyassBa commented Jan 29, 2026

Regarding the macOS issue. I currently don’t own a MacBook, but if you can share the macOS error, I’ll be able to get a better understanding of what’s going on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants