MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / WSConnectionsTable

Method WSConnectionsTable

plugins/base/utils/websocket-tab.cpp:165–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 "AdvSceneSwitcher.websocketConnectionTab.protocol.header");
164
165WSConnectionsTable::WSConnectionsTable(QTabWidget *parent)
166 : ResourceTable(
167 parent,
168 obs_module_text(
169 "AdvSceneSwitcher.websocketConnectionTab.help"),
170 obs_module_text(
171 "AdvSceneSwitcher.websocketConnectionTab.websocketConnectionAddButton.tooltip"),
172 obs_module_text(
173 "AdvSceneSwitcher.websocketConnectionTab.websocketConnectionRemoveButton.tooltip"),
174 headers, openSettingsDialog)
175{
176 for (const auto &connection : GetConnections()) {
177 auto c = std::static_pointer_cast<WSConnection>(connection);
178 AddItemTableRow(Table(), getCellLabels(c.get()));
179 }
180
181 SetHelpVisible(GetConnections().empty());
182}
183
184static void updateConnectionStatus(QTableWidget *table)
185{

Callers

nothing calls this directly

Calls 6

obs_module_textFunction · 0.85
AddItemTableRowFunction · 0.85
TableFunction · 0.85
getCellLabelsFunction · 0.70
getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected