9 #ifndef UI_MELTEDSERVERDOCK_H 10 #define UI_MELTEDSERVERDOCK_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDockWidget> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QLineEdit> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QSplitter> 24 #include <QtWidgets/QStackedWidget> 25 #include <QtWidgets/QTableView> 26 #include <QtWidgets/QTextBrowser> 27 #include <QtWidgets/QTreeView> 28 #include <QtWidgets/QVBoxLayout> 29 #include <QtWidgets/QWidget> 33 class Ui_MeltedServerDock
39 QAction *actionRewind;
40 QAction *actionFast_Forward;
41 QAction *actionMapClipsRoot;
42 QWidget *dockWidgetContents;
43 QVBoxLayout *verticalLayout_2;
44 QHBoxLayout *horizontalLayout;
47 QPushButton *connectButton;
48 QStackedWidget *stackedWidget;
50 QVBoxLayout *verticalLayout_4;
51 QTextBrowser *textBrowser;
53 QVBoxLayout *verticalLayout_3;
54 QVBoxLayout *verticalLayout;
55 QTableView *unitsTableView;
58 QHBoxLayout *horizontalLayout_2;
59 QPushButton *consoleButton;
60 QPushButton *menuButton;
61 QSpacerItem *horizontalSpacer;
63 void setupUi(QDockWidget *MeltedServerDock)
65 if (MeltedServerDock->objectName().isEmpty())
66 MeltedServerDock->setObjectName(QStringLiteral(
"MeltedServerDock"));
67 MeltedServerDock->resize(385, 326);
69 QString iconThemeName = QStringLiteral(
"network-connect");
70 if (QIcon::hasThemeIcon(iconThemeName)) {
71 icon = QIcon::fromTheme(iconThemeName);
73 icon.addFile(QStringLiteral(
":/icons/oxygen/32x32/actions/network-connect.png"), QSize(), QIcon::Normal, QIcon::Off);
75 MeltedServerDock->setWindowIcon(icon);
76 actionPlay =
new QAction(MeltedServerDock);
77 actionPlay->setObjectName(QStringLiteral(
"actionPlay"));
78 actionPause =
new QAction(MeltedServerDock);
79 actionPause->setObjectName(QStringLiteral(
"actionPause"));
80 actionStop =
new QAction(MeltedServerDock);
81 actionStop->setObjectName(QStringLiteral(
"actionStop"));
82 actionRewind =
new QAction(MeltedServerDock);
83 actionRewind->setObjectName(QStringLiteral(
"actionRewind"));
84 actionFast_Forward =
new QAction(MeltedServerDock);
85 actionFast_Forward->setObjectName(QStringLiteral(
"actionFast_Forward"));
86 actionMapClipsRoot =
new QAction(MeltedServerDock);
87 actionMapClipsRoot->setObjectName(QStringLiteral(
"actionMapClipsRoot"));
88 dockWidgetContents =
new QWidget();
89 dockWidgetContents->setObjectName(QStringLiteral(
"dockWidgetContents"));
90 verticalLayout_2 =
new QVBoxLayout(dockWidgetContents);
91 verticalLayout_2->setSpacing(0);
92 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
93 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
94 horizontalLayout =
new QHBoxLayout();
95 horizontalLayout->setSpacing(6);
96 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
97 label =
new QLabel(dockWidgetContents);
98 label->setObjectName(QStringLiteral(
"label"));
99 label->setText(QStringLiteral(
""));
101 horizontalLayout->addWidget(label);
103 lineEdit =
new QLineEdit(dockWidgetContents);
104 lineEdit->setObjectName(QStringLiteral(
"lineEdit"));
106 horizontalLayout->addWidget(lineEdit);
108 connectButton =
new QPushButton(dockWidgetContents);
109 connectButton->setObjectName(QStringLiteral(
"connectButton"));
110 connectButton->setCheckable(
true);
111 connectButton->setChecked(
false);
113 horizontalLayout->addWidget(connectButton);
116 verticalLayout_2->addLayout(horizontalLayout);
118 stackedWidget =
new QStackedWidget(dockWidgetContents);
119 stackedWidget->setObjectName(QStringLiteral(
"stackedWidget"));
120 page_2 =
new QWidget();
121 page_2->setObjectName(QStringLiteral(
"page_2"));
122 verticalLayout_4 =
new QVBoxLayout(page_2);
123 verticalLayout_4->setObjectName(QStringLiteral(
"verticalLayout_4"));
124 verticalLayout_4->setContentsMargins(0, 0, 0, 0);
125 textBrowser =
new QTextBrowser(page_2);
126 textBrowser->setObjectName(QStringLiteral(
"textBrowser"));
128 verticalLayout_4->addWidget(textBrowser);
130 stackedWidget->addWidget(page_2);
131 page =
new QWidget();
132 page->setObjectName(QStringLiteral(
"page"));
133 verticalLayout_3 =
new QVBoxLayout(page);
134 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
135 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
136 verticalLayout =
new QVBoxLayout();
137 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
138 unitsTableView =
new QTableView(page);
139 unitsTableView->setObjectName(QStringLiteral(
"unitsTableView"));
140 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
141 sizePolicy.setHorizontalStretch(0);
142 sizePolicy.setVerticalStretch(1);
143 sizePolicy.setHeightForWidth(unitsTableView->sizePolicy().hasHeightForWidth());
144 unitsTableView->setSizePolicy(sizePolicy);
145 unitsTableView->setMinimumSize(QSize(0, 100));
146 unitsTableView->setMaximumSize(QSize(16777215, 300));
147 unitsTableView->setContextMenuPolicy(Qt::CustomContextMenu);
148 unitsTableView->setSelectionMode(QAbstractItemView::SingleSelection);
149 unitsTableView->setSelectionBehavior(QAbstractItemView::SelectRows);
150 unitsTableView->horizontalHeader()->setStretchLastSection(
true);
151 unitsTableView->verticalHeader()->setVisible(
false);
153 verticalLayout->addWidget(unitsTableView);
155 splitter =
new QSplitter(page);
156 splitter->setObjectName(QStringLiteral(
"splitter"));
157 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
158 sizePolicy1.setHorizontalStretch(0);
159 sizePolicy1.setVerticalStretch(5);
160 sizePolicy1.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth());
161 splitter->setSizePolicy(sizePolicy1);
162 splitter->setOrientation(Qt::Vertical);
163 treeView =
new QTreeView(splitter);
164 treeView->setObjectName(QStringLiteral(
"treeView"));
165 treeView->setAlternatingRowColors(
true);
166 splitter->addWidget(treeView);
168 verticalLayout->addWidget(splitter);
171 verticalLayout_3->addLayout(verticalLayout);
173 stackedWidget->addWidget(page);
175 verticalLayout_2->addWidget(stackedWidget);
177 horizontalLayout_2 =
new QHBoxLayout();
178 horizontalLayout_2->setSpacing(6);
179 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
180 consoleButton =
new QPushButton(dockWidgetContents);
181 consoleButton->setObjectName(QStringLiteral(
"consoleButton"));
182 consoleButton->setCheckable(
true);
184 horizontalLayout_2->addWidget(consoleButton);
186 menuButton =
new QPushButton(dockWidgetContents);
187 menuButton->setObjectName(QStringLiteral(
"menuButton"));
188 menuButton->setEnabled(
false);
190 iconThemeName = QStringLiteral(
"format-justify-fill");
191 if (QIcon::hasThemeIcon(iconThemeName)) {
192 icon1 = QIcon::fromTheme(iconThemeName);
194 icon1.addFile(QStringLiteral(
":/icons/oxygen/32x32/actions/format-justify-fill.png"), QSize(), QIcon::Normal, QIcon::Off);
196 menuButton->setIcon(icon1);
198 horizontalLayout_2->addWidget(menuButton);
200 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
202 horizontalLayout_2->addItem(horizontalSpacer);
205 verticalLayout_2->addLayout(horizontalLayout_2);
207 MeltedServerDock->setWidget(dockWidgetContents);
209 retranslateUi(MeltedServerDock);
211 stackedWidget->setCurrentIndex(0);
214 QMetaObject::connectSlotsByName(MeltedServerDock);
217 void retranslateUi(QDockWidget *MeltedServerDock)
219 MeltedServerDock->setWindowTitle(QApplication::translate(
"MeltedServerDock",
"Melted Server", Q_NULLPTR));
220 actionPlay->setText(QApplication::translate(
"MeltedServerDock",
"Play", Q_NULLPTR));
221 actionPause->setText(QApplication::translate(
"MeltedServerDock",
"Pause", Q_NULLPTR));
222 actionStop->setText(QApplication::translate(
"MeltedServerDock",
"Stop", Q_NULLPTR));
223 actionRewind->setText(QApplication::translate(
"MeltedServerDock",
"Rewind", Q_NULLPTR));
224 actionFast_Forward->setText(QApplication::translate(
"MeltedServerDock",
"Fast Forward", Q_NULLPTR));
225 actionMapClipsRoot->setText(QApplication::translate(
"MeltedServerDock",
"Map Clips Root", Q_NULLPTR));
226 lineEdit->setPlaceholderText(QApplication::translate(
"MeltedServerDock",
"Enter the server address and press Enter", Q_NULLPTR));
227 connectButton->setText(QApplication::translate(
"MeltedServerDock",
"Connect", Q_NULLPTR));
228 textBrowser->setHtml(QApplication::translate(
"MeltedServerDock",
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" 229 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" 230 "p, li { white-space: pre-wrap; }\n" 231 "</style></head><body>\n" 232 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Single-click</span> a unit to open its playlist.</p>\n" 233 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n" 234 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Double-click</span> a unit to control it in the player, or <span style=\" font-weight:600;\">right-click</span> the unit for transport control actions.<br /></p>\n" 235 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; " 236 "-qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Single-click</span> a playlist item to select it for edit operations (e.g. Insert).</p>\n" 237 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n" 238 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Double-click</span> a playlist item to seek the unit to it.</p>\n" 239 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n" 240 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Drag-n-drop</span> from the server's clips tree to the playlist, or <span style=\" font-weight:600;\">single-click</span> a clip to select it for use with <span" 241 " style=\" font-weight:600;\">Add</span> and <span style=\" font-weight:600;\">Insert</span> actions.</p></body></html>", Q_NULLPTR));
242 consoleButton->setText(QApplication::translate(
"MeltedServerDock",
"Console", Q_NULLPTR));
243 #ifndef QT_NO_TOOLTIP 244 menuButton->setToolTip(QApplication::translate(
"MeltedServerDock",
"Display a menu of additional actions", Q_NULLPTR));
245 #endif // QT_NO_TOOLTIP 246 menuButton->setText(QString());
252 class MeltedServerDock:
public Ui_MeltedServerDock {};
257 #endif // UI_MELTEDSERVERDOCK_H Definition: addencodepresetdialog.h:24