obs-websocket/src/forms/ConnectInfo.ui
tt2468 ee751edf54 SettingsDialog: Mild refactor and add Connect Info dialog
Among lots of stuff:

- Generate a random password on first load

- Add `ConnectInfo` dialog including QR code display

- Add `Generate Password` button to generate a new random
password

- Delete `Copy Password to Clipboard` button

- Delete `GetConnectString` or whatever from WebSocketServer
(reimplemented the functionality directly into ConnectInfo)

- Added `GeneratePassword()` to Utils

Todo: Show warning when users specify their own passwords
2021-05-08 04:29:03 -07:00

148 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ConnectInfo</class>
<widget class="QDialog" name="ConnectInfo">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>451</width>
<height>412</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>451</width>
<height>412</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>451</width>
<height>412</height>
</size>
</property>
<property name="windowTitle">
<string>OBSWebSocket.ConnectInfo.DialogTitle</string>
</property>
<widget class="QWidget" name="formLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>431</width>
<height>101</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="serverIpLabel">
<property name="text">
<string>OBSWebSocket.ConnectInfo.ServerIp</string>
</property>
</widget>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLineEdit" name="serverIpLineEdit">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="copyServerIpButton">
<property name="text">
<string>OBSWebSocket.ConnectInfo.CopyText</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="serverPortLabel">
<property name="text">
<string>OBSWebSocket.ConnectInfo.ServerPort</string>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLineEdit" name="serverPortLineEdit">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="copyServerPortButton">
<property name="text">
<string>OBSWebSocket.ConnectInfo.CopyText</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QLabel" name="serverPasswordLabel">
<property name="text">
<string>OBSWebSocket.ConnectInfo.ServerPassword</string>
</property>
</widget>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLineEdit" name="serverPasswordLineEdit">
<property name="text">
<string>OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText</string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="copyServerPasswordButton">
<property name="text">
<string>OBSWebSocket.ConnectInfo.CopyText</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>120</y>
<width>431</width>
<height>281</height>
</rect>
</property>
<property name="title">
<string>OBSWebSocket.ConnectInfo.QrTitle</string>
</property>
<widget class="QLabel" name="qrCodeLabel">
<property name="geometry">
<rect>
<x>100</x>
<y>40</y>
<width>230</width>
<height>230</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>