VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfLauncherQt Library API Changes

Table of Contents

This document describes the public API changes in the vrfLauncherQt library between VR-Forces 5.2 and VR-Forces 5.3.

It covers the following public headers:

Changes that are internal to an implementation or limited to comments are not listed.

Breaking Changes

DtAddApplicationDialog::myGroup changed type

The display group field of the add-application dialog was converted from a free-text entry to a selection list, so the type of the public member changed:

// 5.2
QLineEdit* myGroup;
// 5.3
QComboBox* myGroup;

myGroup is a public member, so any code that reads or writes it directly must be updated. QLineEdit and QComboBox share no common API for this purpose, so the call sites have to be rewritten rather than retyped:

// 5.2
dialog->myGroup->setText(group);
QString group = dialog->myGroup->text();
// 5.3
dialog->myGroup->setCurrentText(group);
QString group = dialog->myGroup->currentText();

The combo box is editable, so a group name that is not already in the list can still be typed in. Populate the list of offered names with the new setAvailableGroups method described under Additions. Derived dialogs that connected to QLineEdit signals such as textChanged must connect to the QComboBox equivalents (currentTextChanged, editTextChanged).

DtInstallationFinder is no longer Windows-only

In 5.2 the entire contents of vrfLauncherQt/installationFinder.h were wrapped in #ifdef _WIN32, and the header included <windows.h>. In 5.3 the conditional compilation guard and the <windows.h> include were both removed; DtInstallationFinder is now declared and implemented on all supported platforms.

Two consequences affect existing source:

Code that guarded its own use of DtInstallationFinder with #ifdef _WIN32 still compiles, but the guard is now unnecessary and suppresses the functionality on Linux. Remove the guard to obtain installation discovery on both platforms.

Code that relied on installationFinder.h transitively supplying <windows.h> no longer compiles. Include <windows.h> explicitly where Win32 types or functions are used.

The behavior of findHighestMakVersionByName is platform-dependent. On Windows it enumerates the HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\MAK Technologies registry key and falls back to a scan of the MAK install root. On Linux it performs a bounded recursive scan of the install root ($MAK_INSTALL_DIR, otherwise $HOME/MAK). The parameter remains the Windows-style product name; it is translated internally on Linux. No call site change is required.

DtInstallationFinder private helpers were removed

The private static helpers readRegistryString and enumerateSubKeys were removed from the class declaration. They were private, so this affects only code that subverted access control or that declared friend relationships with DtInstallationFinder. There is no replacement; registry access is now confined to the implementation.

Additions

launcherConfig.h and DtLauncherConfig

A new public header declares DtLauncherConfig, which reads launcher tool configuration from launcherConfig.json in the settings directory. The class parses the file on construction and exposes the result through two accessors:

{
public:
QString vrLinkConfigFileEditor() const;
QString parseError() const;
};

vrLinkConfigFileEditor returns the configured VR-Link configuration file editor executable path, or an empty string when none is configured. parseError returns a non-empty description when launcherConfig.json could not be parsed; check it before acting on the configured values.

DtAddApplicationDialog::setAvailableGroups

virtual void setAvailableGroups(const std::vector<std::string>& groups);

Populates the myGroup combo box with the display group names to offer. Call it after init when presenting the dialog so that existing groups appear in the drop-down. The header now includes <string> and <vector> for this signature.

DtApplicationSetsWidget::resolveExecutablePath

static std::string resolveExecutablePath(const std::string& xmlExecutablePath);

Resolves an executable path as declared in an application XML to an existing path on disk. Environment variable references are expanded through DtAppPathResolver, then the path is tried as-declared, with the platform executable extension appended, and on Linux with a trailing _64 stripped from the filename stem. The first candidate that exists is returned; an empty string means no candidate was found. Use this instead of consuming the XML path directly when locating a launcher-managed executable, because the shared launcher XMLs use Windows-style binary names that do not match the Linux binaries.

DtInstallationFinder::extractVersionFromName is now public

static std::string extractVersionFromName(const std::string& appName);

This helper existed in 5.2 as a private static method and is now part of the public interface. It extracts a version string such as 5.12 or 5.10b from an install directory name or registry subkey name, including a single trailing patch letter when one is present at a token boundary. Patch letters order case-insensitively, so 5.10 < 5.10a < 5.10b < 5.11.

DtVrfLauncherMainWidget::onNicAddressChanged

protected slots:
virtual void onNicAddressChanged(const QString&);

A new protected virtual slot that responds to a change of the selected network interface address. Derived classes may override it. Because the slot is virtual and protected, a derived class that declares a member with the same name and a different signature will hide the base declaration; rename such members if a build error appears after upgrading.

Summary of Header Changes

Header Breaking Additions
addApplicationDialog.h myGroup changed from QLineEdit* to QComboBox* setAvailableGroups
applicationSetsWidget.h None resolveExecutablePath
installationFinder.h #ifdef _WIN32 guard and <windows.h> include removed; private registry helpers removed extractVersionFromName promoted to public
launcherConfig.h None (new header) DtLauncherConfig
vrfLauncherMainWidget.h None onNicAddressChanged protected slot

Return to VR-Forces 5.3 API Migration Guide.

[Home]


Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)