protected void SetupUi() { base.ObjectName = "ProfileWindow"; this.Geometry = new QRect(0, 0, 512, 436); this.WindowTitle = "ProfileWindow"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this); horizontalLayout.Spacing = 0; horizontalLayout.Margin = 0; this.webView = new QWebView(this); this.webView.ObjectName = "webView"; this.webView.Url = new QUrl("about:blank"); horizontalLayout.AddWidget(this.webView); QMetaObject.ConnectSlotsByName(this); }
protected void SetupUi() { base.ObjectName = "AddOctyDialog"; this.Geometry = new QRect(0, 0, 597, 409); this.WindowTitle = "Synapse is ready to go!"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this); horizontalLayout.Spacing = 0; horizontalLayout.Margin = 0; this.webView = new QWebView(this); this.webView.ObjectName = "webView"; this.webView.Url = new QUrl("about:blank"); horizontalLayout.AddWidget(this.webView); QMetaObject.ConnectSlotsByName(this); }
protected void SetupUi() { base.ObjectName = "ServiceBrowserWindow"; this.Geometry = new QRect(0, 0, 484, 401); this.WindowTitle = "XMPP Browser"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Spacing = 0; verticalLayout.Margin = 0; this.webView = new QWebView(this); this.webView.ObjectName = "webView"; this.webView.Url = new QUrl("about:blank"); verticalLayout.AddWidget(this.webView); QMetaObject.ConnectSlotsByName(this); }
public MainWindow() { QAction quit = new QAction("&Quit", this); quit.triggered.connect(QApplication.instance(), "quit()"); QAction open = new QAction("&Open", this); open.triggered.connect(this, "open()"); QAction native = new QAction("&Use native object", this); native.triggered.connect(this, "native()"); QMenu file = menuBar().addMenu("&File"); file.addAction(open); file.addAction(native); file.addAction(quit); webView = new QWebView(); webView.page().mainFrame().javaScriptWindowObjectCleared.connect(this, "frame_javaScriptWindowObjectCleared()"); addNativeObject(); webView.load(QUrl.fromLocalFile(@"C:\Users\chambers\Development\NDirStat\NDirStatQtWeb\NDirStat.html")); setCentralWidget(webView); }
protected void SetupUi() { base.ObjectName = "InsertSnippetDialog"; this.Geometry = new QRect(0, 0, 400, 300); this.WindowTitle = "Insert Code Snippet"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; QGridLayout gridLayout; gridLayout = new QGridLayout(); verticalLayout.AddLayout(gridLayout); this.label = new QLabel(this); this.label.ObjectName = "label"; this.label.Text = "Type:"; gridLayout.AddWidget(this.label, 1, 0, 1, 1); this.typeComboBox = new QComboBox(this); this.typeComboBox.ObjectName = "typeComboBox"; gridLayout.AddWidget(this.typeComboBox, 1, 1, 1, 1); QSpacerItem horizontalSpacer; horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); gridLayout.AddItem(horizontalSpacer, 1, 2, 1, 1); this.label_2 = new QLabel(this); this.label_2.ObjectName = "label_2"; this.label_2.Text = "To:"; gridLayout.AddWidget(this.label_2, 0, 0, 1, 1); this.toLabel = new QLabel(this); this.toLabel.ObjectName = "toLabel"; this.toLabel.Text = ""; gridLayout.AddWidget(this.toLabel, 0, 1, 1, 1); QSpacerItem horizontalSpacer_3; horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); gridLayout.AddItem(horizontalSpacer_3, 0, 2, 1, 1); this.tabWidget = new QTabWidget(this); this.tabWidget.ObjectName = "tabWidget"; this.tabWidget.CurrentIndex = 0; verticalLayout.AddWidget(this.tabWidget); this.tab_3 = new QWidget(this.tabWidget); this.tab_3.ObjectName = "tab_3"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this.tab_3); horizontalLayout.Spacing = 0; horizontalLayout.Margin = 0; this.textEdit = new QTextEdit(this.tab_3); this.textEdit.ObjectName = "textEdit"; this.textEdit.FrameShape = QFrame.Shape.NoFrame; horizontalLayout.AddWidget(this.textEdit); this.tabWidget.AddTab(this.tab_3, "Paste"); this.tab_4 = new QWidget(this.tabWidget); this.tab_4.ObjectName = "tab_4"; QHBoxLayout horizontalLayout_2; horizontalLayout_2 = new QHBoxLayout(this.tab_4); horizontalLayout_2.Spacing = 0; horizontalLayout_2.Margin = 0; this.webView = new QWebView(this.tab_4); this.webView.ObjectName = "webView"; this.webView.Url = new QUrl("about:blank"); horizontalLayout_2.AddWidget(this.webView); this.tabWidget.AddTab(this.tab_4, "Preview"); QHBoxLayout horizontalLayout_3; horizontalLayout_3 = new QHBoxLayout(); verticalLayout.AddLayout(horizontalLayout_3); this.pushButton = new QPushButton(this); this.pushButton.ObjectName = "pushButton"; this.pushButton.Text = "Import File..."; horizontalLayout_3.AddWidget(this.pushButton); QSpacerItem horizontalSpacer_2; horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout_3.AddItem(horizontalSpacer_2); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "NoButton"); horizontalLayout_3.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QObject.Connect(buttonBox,Qt.SIGNAL("rejected()"),this,Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(this); }