Browse Source

Auto-change plugin UI window title, when possible

tags/1.9.4
falkTX 11 years ago
parent
commit
7adabd8745
3 changed files with 16 additions and 2 deletions
  1. +7
    -1
      source/backend/plugin/Lv2Plugin.cpp
  2. +2
    -0
      source/backend/plugin/NativePlugin.cpp
  3. +7
    -1
      source/backend/plugin/VstPlugin.cpp

+ 7
- 1
source/backend/plugin/Lv2Plugin.cpp View File

@@ -925,7 +925,13 @@ public:
// -------------------------------------------------------------------
// Set data (internal stuff)

// nothing
void setName(const char* const newName) override
{
CarlaPlugin::setName(newName);

if (kData->gui != nullptr)
kData->gui->setWindowTitle(QString("%1 (GUI)").arg((const char*)fName));
}

// -------------------------------------------------------------------
// Set data (plugin-specific stuff)


+ 2
- 0
source/backend/plugin/NativePlugin.cpp View File

@@ -501,6 +501,8 @@ public:

fHost.ui_name = carla_strdup(uiName);

// TODO - send callback to plugin, reporting name change

CarlaPlugin::setName(newName);
}



+ 7
- 1
source/backend/plugin/VstPlugin.cpp View File

@@ -290,7 +290,13 @@ public:
// -------------------------------------------------------------------
// Set data (internal stuff)

// nothing
void setName(const char* const newName) override
{
CarlaPlugin::setName(newName);

if (kData->gui != nullptr)
kData->gui->setWindowTitle(QString("%1 (GUI)").arg((const char*)fName));
}

// -------------------------------------------------------------------
// Set data (plugin-specific stuff)


Loading…
Cancel
Save