Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
279b1f38
Commit
279b1f38
authored
Jun 25, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error caused by QT widget (CoWow) not forwarding events to parent widget.
parent
47f3a019
Changes
44
Show whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
61 additions
and
36 deletions
+61
-36
wb/lib/wb/qt/wb_bckw_qt.cqt
wb/lib/wb/qt/wb_bckw_qt.cqt
+1
-1
wb/lib/wb/qt/wb_expw_qt.cqt
wb/lib/wb/qt/wb_expw_qt.cqt
+1
-1
wb/lib/wb/qt/wb_foe_qt.cqt
wb/lib/wb/qt/wb_foe_qt.cqt
+1
-0
wb/lib/wb/qt/wb_uted_qt.cqt
wb/lib/wb/qt/wb_uted_qt.cqt
+1
-0
wb/lib/wb/qt/wb_vsel_qt.cqt
wb/lib/wb/qt/wb_vsel_qt.cqt
+1
-0
wb/lib/wb/qt/wb_watt_qt.cqt
wb/lib/wb/qt/wb_watt_qt.cqt
+1
-1
wb/lib/wb/qt/wb_watttext_qt.cqt
wb/lib/wb/qt/wb_watttext_qt.cqt
+1
-1
wb/lib/wb/qt/wb_wda_qt.cqt
wb/lib/wb/qt/wb_wda_qt.cqt
+1
-0
wb/lib/wb/qt/wb_wge_qt.cqt
wb/lib/wb/qt/wb_wge_qt.cqt
+1
-0
wb/lib/wb/qt/wb_wnav_qt.cqt
wb/lib/wb/qt/wb_wnav_qt.cqt
+1
-0
wb/lib/wb/qt/wb_wpkg_qt.cqt
wb/lib/wb/qt/wb_wpkg_qt.cqt
+1
-1
wb/lib/wb/qt/wb_wrev_qt.cqt
wb/lib/wb/qt/wb_wrev_qt.cqt
+1
-2
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+1
-0
wb/lib/wb/qt/wb_xcrr_qt.cqt
wb/lib/wb/qt/wb_xcrr_qt.cqt
+1
-0
xtt/lib/cow/qt/cow_login_qt.cqt
xtt/lib/cow/qt/cow_login_qt.cqt
+1
-0
xtt/lib/cow/qt/cow_logw_qt.cqt
xtt/lib/cow/qt/cow_logw_qt.cqt
+1
-0
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
+1
-2
xtt/lib/cow/qt/cow_rtmon_qt.cqt
xtt/lib/cow/qt/cow_rtmon_qt.cqt
+1
-0
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
+1
-0
xtt/lib/cow/qt/cow_tree_qt.cqt
xtt/lib/cow/qt/cow_tree_qt.cqt
+1
-0
xtt/lib/cow/qt/cow_wow_qt.cqt
xtt/lib/cow/qt/cow_wow_qt.cqt
+14
-14
xtt/lib/cow/qt/cow_wow_qt.h
xtt/lib/cow/qt/cow_wow_qt.h
+3
-6
xtt/lib/cow/qt/cow_xhelp_qt.cqt
xtt/lib/cow/qt/cow_xhelp_qt.cqt
+1
-0
xtt/lib/ge/qt/ge_attr_qt.cqt
xtt/lib/ge/qt/ge_attr_qt.cqt
+1
-0
xtt/lib/ge/qt/ge_curve_qt.cqt
xtt/lib/ge/qt/ge_curve_qt.cqt
+1
-0
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+1
-0
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_block_qt.cqt
xtt/lib/xtt/qt/xtt_block_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_clog_qt.cqt
xtt/lib/xtt/qt/xtt_clog_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_ev_qt.cqt
xtt/lib/xtt/qt/xtt_ev_qt.cqt
+3
-0
xtt/lib/xtt/qt/xtt_evala_qt.cqt
xtt/lib/xtt/qt/xtt_evala_qt.cqt
+1
-0
xtt/lib/xtt/qt/xtt_eveve_qt.cqt
xtt/lib/xtt/qt/xtt_eveve_qt.cqt
+1
-0
xtt/lib/xtt/qt/xtt_fileview_qt.cpp
xtt/lib/xtt/qt/xtt_fileview_qt.cpp
+1
-0
xtt/lib/xtt/qt/xtt_ge_qt.cqt
xtt/lib/xtt/qt/xtt_ge_qt.cqt
+1
-0
xtt/lib/xtt/qt/xtt_hist_qt.cqt
xtt/lib/xtt/qt/xtt_hist_qt.cqt
+1
-0
xtt/lib/xtt/qt/xtt_keyboard_qt.cpp
xtt/lib/xtt/qt/xtt_keyboard_qt.cpp
+1
-0
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
+1
-0
xtt/lib/xtt/qt/xtt_op_qt.cqt
xtt/lib/xtt/qt/xtt_op_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_stream_qt.cqt
xtt/lib/xtt/qt/xtt_stream_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_trace_qt.cqt
xtt/lib/xtt/qt/xtt_trace_qt.cqt
+1
-0
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
+1
-0
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
+1
-0
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_xcrr_qt.cqt
xtt/lib/xtt/qt/xtt_xcrr_qt.cqt
+1
-1
No files found.
wb/lib/wb/qt/wb_bckw_qt.cqt
View file @
279b1f38
...
...
@@ -61,7 +61,7 @@ WbBckWQt::WbBckWQt(void *bckw_parent_ctx, QWidget *bckw_parent_wid,
status)
{
toplevel = new WbBckWQtWidget(this, bckw_parent_wid);
toplevel->setToolTip(fl("
WbBckWQt
widget"));
toplevel->setToolTip(fl("
wb_bckw
widget"));
toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(bckw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_expw_qt.cqt
View file @
279b1f38
...
...
@@ -50,7 +50,6 @@
#include "wb_expw_qt.h"
#include "wb_expwnav_qt.h"
#include "cow_wow_qt.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QMenuBar>
#include <QVBoxLayout>
...
...
@@ -62,6 +61,7 @@ WbExpWQt::WbExpWQt(void *expw_parent_ctx, QWidget *expw_parent_wid,
status)
{
toplevel = new WbExpWQtWidget(this, expw_parent_wid);
toplevel->setToolTip(fl("wb_expw widget"));
toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(expw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_foe_qt.cqt
View file @
279b1f38
...
...
@@ -541,6 +541,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
{
pwr_tStatus sts;
toplevel->setToolTip(fl("wb_foe widget"));
toplevel->setMinimumSize(1100, 1000);
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_uted_qt.cqt
View file @
279b1f38
...
...
@@ -164,6 +164,7 @@ WUtedQt::WUtedQt(void *wu_parent_ctx, QWidget *wu_parent_wid,
wu_editmode, wu_quit_cb, status)
{
toplevel = new WUtedQtWidget(this, wu_parent_wid);
toplevel->setToolTip(fl("wb_uted widget"));
toplevel->setMinimumSize(800, 400);
toplevel->setWindowTitle(fl("Wb Utilities"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_vsel_qt.cqt
View file @
279b1f38
...
...
@@ -258,6 +258,7 @@ WVselQt::WVselQt(pwr_tStatus *status, void *wv_parent_ctx,
// Create the window
toplevel = new WVselQtWidget(this, wv_parent_wid);
toplevel->setToolTip(fl("wb_vsel widget"));
toplevel->setMinimumSize(500, 400);
toplevel->setWindowTitle(fl(name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_watt_qt.cqt
View file @
279b1f38
...
...
@@ -54,7 +54,6 @@
#include "wb_wtt.h"
#include "wb_wnav.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QDialogButtonBox>
#include <QMenuBar>
...
...
@@ -376,6 +375,7 @@ WAttQt::WAttQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
if (EVEN(sts)) { return; }
toplevel = new WAttQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_watt widget"));
toplevel->setFixedSize(410, 570);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_watttext_qt.cqt
View file @
279b1f38
...
...
@@ -53,7 +53,6 @@
#include "wb_wtt.h"
#include "wb_wnav.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QApplication>
#include <QClipboard>
...
...
@@ -213,6 +212,7 @@ WAttTextQt::WAttTextQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
}
toplevel = new WAttTextQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_watttext widget"));
toplevel->setFixedSize(800, 700);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_wda_qt.cqt
View file @
279b1f38
...
...
@@ -400,6 +400,7 @@ WdaQt::WdaQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
int sts;
toplevel = new WdaQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_wda widget"));
toplevel->setFixedSize(700, 700);
toplevel->setWindowTitle(fl("Spreadsheet Editor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_wge_qt.cqt
View file @
279b1f38
...
...
@@ -221,6 +221,7 @@ WGeQt::WGeQt(QWidget *wge_parent_wid, void *wge_parent_ctx, char *wge_name,
// Qt
toplevel = new WGeQtWidget(this, wge_parent_wid);
toplevel->setToolTip(fl("wb_wge widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_wnav_qt.cqt
View file @
279b1f38
...
...
@@ -139,6 +139,7 @@ WNavQt::WNavQt(void *xn_parent_ctx, QWidget *xn_parent_wid, const char *xn_name,
wow = new CoWowQt(parent_wid);
toplevel = scrolledbrow;
toplevel->setToolTip(fl("wb_wnav widget"));
*status = 1;
}
...
...
wb/lib/wb/qt/wb_wpkg_qt.cqt
View file @
279b1f38
...
...
@@ -60,7 +60,6 @@
#include "wb_log.h"
#include "cow_logw_qt.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QMenuBar>
#include <QVBoxLayout>
...
...
@@ -157,6 +156,7 @@ WPkgQt::WPkgQt(QWidget *wa_parent_wid, void *wa_parent_ctx)
int sts;
toplevel = new WPkgQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_wpkg widget"));
toplevel->setMinimumSize(600, 600);
toplevel->setWindowTitle(fl("Distributor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_wrev_qt.cqt
View file @
279b1f38
...
...
@@ -60,8 +60,6 @@
#include "wb_log.h"
#include "cow_logw_qt.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_qt_helpers.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QDialogButtonBox>
#include <QMenuBar>
...
...
@@ -147,6 +145,7 @@ WRevQt::WRevQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
int sts;
toplevel = new WRevQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_wrev widget"));
toplevel->setMinimumSize(700, 300);
toplevel->setWindowTitle(fl("Revisions"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
279b1f38
...
...
@@ -1962,6 +1962,7 @@ WttQt::WttQt(void *wt_parent_ctx, QWidget *wt_parent_wid, const char *wt_name,
// Qt
toplevel = new WttQtWidget(this, wt_parent_wid);
toplevel->setToolTip(fl("wb_wtt widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
wb/lib/wb/qt/wb_xcrr_qt.cqt
View file @
279b1f38
...
...
@@ -128,6 +128,7 @@ WCrrQt::WCrrQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
strncpy(title, namep, sizeof(title));
toplevel = new WCrrQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("wb_xcrr widget"));
toplevel->setMinimumSize(600, 420);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_login_qt.cqt
View file @
279b1f38
...
...
@@ -108,6 +108,7 @@ CoLoginQt::CoLoginQt(void *wl_parent_ctx, QWidget *wl_parent_wid,
{
// Create an input dialog
toplevel = new CoLoginQtWidget(this, wl_parent_wid);
toplevel->setToolTip(fl("cow_login widget"));
toplevel->setMinimumSize(500, 200);
toplevel->setWindowTitle(fl("Proview Login"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_logw_qt.cqt
View file @
279b1f38
...
...
@@ -58,6 +58,7 @@ CoLogWQt::CoLogWQt(void *logw_parent_ctx, QWidget *logw_parent_wid,
: CoLogW(logw_parent_ctx, logw_name, l_show_item, status)
{
toplevel = new CoLogWQtWidget(this, logw_parent_wid);
toplevel->setToolTip(fl("cow_logw widget"));
toplevel->setMinimumSize(800, 600);
toplevel->setWindowTitle(fl(logw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
View file @
279b1f38
...
...
@@ -66,7 +66,7 @@ MsgWindowQt::MsgWindowQt(void *msg_parent_ctx, QWidget *msg_parent_wid,
: MsgWindow(msg_parent_ctx, msg_name, status)
{
toplevel = new MsgWindowQtWidget(this, msg_parent_wid);
toplevel->setToolTip(fl("
MsgWindowQt
widget"));
toplevel->setToolTip(fl("
cow_msgwindow
widget"));
toplevel->setFixedSize(800, 600);
toplevel->setWindowTitle(translate_utf8(msg_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -98,7 +98,6 @@ MsgWindowQt::MsgWindowQt(void *msg_parent_ctx, QWidget *msg_parent_wid,
msgnav->find_ge_cb = MsgWindow::msgw_find_ge_cb;
form->setMenuBar(menu_bar);
nav_widget->setToolTip(fl("MsgList widget"));
add_expanding(form, nav_widget);
toplevel->setLayout(form);
...
...
xtt/lib/cow/qt/cow_rtmon_qt.cqt
View file @
279b1f38
...
...
@@ -102,6 +102,7 @@ RtMonQt::RtMonQt(void *rtmon_parent_ctx, QWidget *rtmon_parent_wid,
strcat(title, rtmon_name);
toplevel = new RtMonQtWidget(this, rtmon_parent_wid);
toplevel->setToolTip(fl("cow_rtmon widget"));
toplevel->setMinimumSize(480, 340);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
View file @
279b1f38
...
...
@@ -84,6 +84,7 @@ NodelistQt::NodelistQt(void *nodelist_parent_ctx, QWidget *nodelist_parent_wid,
pwr_tStatus sts;
toplevel = new NodelistQtWidget(this, nodelist_parent_wid);
toplevel->setToolTip(fl("cow_statusmon_nodelist widget"));
toplevel->setFixedSize(850, 300);
toplevel->setWindowTitle(fl(nodelist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_tree_qt.cqt
View file @
279b1f38
...
...
@@ -127,6 +127,7 @@ CowTreeQt::CowTreeQt(QWidget *a_parent_wid, void *a_parent_ctx,
int sts;
toplevel = new CowTreeQtWidget(this, a_parent_wid);
toplevel->setToolTip(fl("cow_tree widget"));
toplevel->setMinimumSize(600, 400);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_wow_qt.cqt
View file @
279b1f38
...
...
@@ -104,7 +104,7 @@ void CoWowQt::DisplayQuestion(void *ctx, const char *title, const char *text,
void *data)
{
QMessageBox::StandardButton reply =
QMessageBox::question(object, translate_utf8(title), translate_utf8(text));
QMessageBox::question(object
->parent_wid
, translate_utf8(title), translate_utf8(text));
if (reply == QMessageBox::Yes) {
if (questionbox_ok) {
...
...
@@ -137,7 +137,7 @@ void CoWowQt::CreateInputDialog(void *ctx, const char *title, const char *text,
bool ok;
QString str =
QInputDialog::getText(object, translate_utf8(title), translate_utf8(text),
QInputDialog::getText(object
->parent_wid
, translate_utf8(title), translate_utf8(text),
QLineEdit::Normal, temp_txt, &ok);
if (ok) {
QByteArray ba = str.toLatin1();
...
...
@@ -172,7 +172,7 @@ void CoWowQt::DisplayError(const char *title, const char *text,
}
QMessageBox msgBox(QMessageBox::Critical, fl(title), ctext,
QMessageBox::NoButton, object->window());
QMessageBox::NoButton, object->
parent_wid->
window());
QDialogButtonBox *buttonBox = qFindChild<QDialogButtonBox *>(&msgBox);
Q_ASSERT(buttonBox != 0);
...
...
@@ -194,7 +194,7 @@ void CoWowQt::DisplayError(const char *title, const char *text,
void CoWowQt::DisplayText(const char *title, const char *text, int width,
int height)
{
QMessageBox::information(object, translate_utf8(title),
QMessageBox::information(object
->parent_wid
, translate_utf8(title),
QString::fromLatin1(text));
}
...
...
@@ -314,7 +314,7 @@ void *CoWowQt::CreateList(const char *title, const char *texts, int textsize,
int show_apply_button)
{
CoWowListWidgetQt *tree =
new CoWowListWidgetQt(object, title, texts, textsize, action_cb,
new CoWowListWidgetQt(object
->parent_wid
, title, texts, textsize, action_cb,
cancel_cb, parent_ctx, show_apply_button);
return tree;
}
...
...
@@ -384,7 +384,7 @@ QString loadText(string filename)
}
CoWowWarrantQt::CoWowWarrantQt(CoWowQtObject *parent)
: QDialog(parent)
: QDialog(parent
->parent_wid
)
{
QVBoxLayout *main_layout = new QVBoxLayout();
...
...
@@ -502,7 +502,7 @@ void CoWowQt::CreateFileSelDia(const char *title, void *parent_ctx,
{
pwr_tFileName fname;
QFileDialog dialog(object);
QFileDialog dialog(object
->parent_wid
);
pwr_tFileName folder;
QString filter;
...
...
@@ -530,7 +530,7 @@ void CoWowQt::CreateFileSelDia(const char *title, void *parent_ctx,
}
QString filename =
QFileDialog::getOpenFileName(object, fl(title), fl(folder), filter);
QFileDialog::getOpenFileName(object
->parent_wid
, fl(title), fl(folder), filter);
if (!filename.isNull()) {
QByteArray ba = filename.toLocal8Bit();
...
...
@@ -854,7 +854,7 @@ int CoWowQt::CreateModalDialog(const char *title, const char *text,
const char *button3, const char *image)
{
QDialog *dialog_w =
new CoWowModalDialogQt(object, title, text, button1, button2, button3,
new CoWowModalDialogQt(object
->parent_wid
, title, text, button1, button2, button3,
image);
return dialog_w->exec();
}
...
...
@@ -869,7 +869,7 @@ wow_sModalInputDialog *CoWowQt::CreateModalInputDialog(const char *title,
CoWowRecall *recall)
{
CoWowModalDialogQt *dialog_w =
new CoWowModalDialogQt(object, title, text, button1, button2, button3,
new CoWowModalDialogQt(object
->parent_wid
, title, text, button1, button2, button3,
image, input_length, recall);
int status = dialog_w->exec();
...
...
@@ -897,7 +897,7 @@ pwr_tStatus CoWowQt::CreateMenuItem(const char *name, void *menu, int pixmap,
if (!name_cnt) { return 0; }
if (name_cnt == 1) {
*(QMenu **) w = new QMenu(translate_utf8(name_array[0]), object);
*(QMenu **) w = new QMenu(translate_utf8(name_array[0]), object
->parent_wid
);
if (pixmap != wow_ePixmap_No && pixmap < wow_ePixmap__) {
switch (pixmap) {
...
...
@@ -928,7 +928,7 @@ pwr_tStatus CoWowQt::CreateMenuItem(const char *name, void *menu, int pixmap,
if (!child) {
// Create the menu item
QMenu *item = new QMenu(translate_utf8(name_array[i]), object);
QMenu *item = new QMenu(translate_utf8(name_array[i]), object
->parent_wid
);
if (i == name_cnt - 1 && pixmap != wow_ePixmap_No &&
pixmap <= wow_ePixmap__) {
switch (pixmap) {
...
...
@@ -1120,7 +1120,7 @@ void CoWowQt::update_title(QWidget *w, int editmode)
}
CoWowQt::CoWowQt(QWidget *parent) {
object = new CoWowQtObject(
this,
parent);
object = new CoWowQtObject(parent);
}
CoWowQt::~CoWowQt() {
...
...
@@ -1129,5 +1129,5 @@ CoWowQt::~CoWowQt() {
void CoWowQt::SetParent(QWidget *parent)
{
object->
setParent(parent)
;
object->
parent_wid = parent
;
}
\ No newline at end of file
xtt/lib/cow/qt/cow_wow_qt.h
View file @
279b1f38
...
...
@@ -272,21 +272,18 @@ public:
static
void
update_title
(
QWidget
*
w
,
int
editmode
);
};
class
CoWowQtObject
:
public
Q
Widge
t
{
class
CoWowQtObject
:
public
Q
Objec
t
{
Q_OBJECT
public:
CoWowQtObject
(
CoWowQt
*
parent_ctx
,
QWidget
*
parent
)
:
QWidget
(
parent
),
wow
(
parent_ctx
)
{}
CoWowQtObject
(
QWidget
*
parent
)
:
QObject
(),
parent_wid
(
parent
)
{}
QWidget
*
parent_wid
;
public
slots
:
void
DisplayWarranty
();
void
DisplayLicense
();
void
wait_cb
();
private:
CoWowQt
*
wow
;
};
#endif
\ No newline at end of file
xtt/lib/cow/qt/cow_xhelp_qt.cqt
View file @
279b1f38
...
...
@@ -205,6 +205,7 @@ CoXHelpQt::CoXHelpQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
strcpy(title, Lng::translate("Help"));
toplevel = new CoXHelpQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("cow_xhelp widget"));
toplevel->setFixedSize(700, 600);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/ge/qt/ge_attr_qt.cqt
View file @
279b1f38
...
...
@@ -313,6 +313,7 @@ AttrQt::AttrQt(QWidget *a_parent_wid, void *a_parent_ctx, attr_eType a_type,
if (!embedded) {
toplevel = new AttrQtWidget(this, a_parent_wid);
toplevel->setToolTip(fl("ge_attr widget"));
toplevel->setMinimumSize(500, 700);
toplevel->setWindowTitle(fl("Object Attributes"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/ge/qt/ge_curve_qt.cqt
View file @
279b1f38
...
...
@@ -646,6 +646,7 @@ GeCurveQt::GeCurveQt(void *gc_parent_ctx, QWidget *parent_widget,
// Qt
toplevel = new GeCurveQtWidget(this, parent_widget);
toplevel->setToolTip(fl("ge_curve widget"));
if (!(options & curve_mOptions_Embedded)) {
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(convert_utf8(title));
...
...
xtt/lib/ge/qt/ge_qt.cqt
View file @
279b1f38
...
...
@@ -1347,6 +1347,7 @@ GeQt::GeQt(void *x_parent_ctx, QWidget *x_parent_widget,
}
toplevel = new GeQtWidget(this, x_parent_widget);
toplevel->setToolTip(fl("ge widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
...
...
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
View file @
279b1f38
...
...
@@ -62,7 +62,6 @@ extern "C" {
#include "ge_attr_qt.h"
#include "ge_subgraphs_qt.h"
#include "ge_graph.h"
#include "../../flow/src/flow_browapi.h"
#include <QMenuBar>
#include <QVBoxLayout>
...
...
@@ -136,6 +135,7 @@ SubGraphsQt::SubGraphsQt(void *xn_parent_ctx, QWidget *xn_parent_wid,
parent_wid(xn_parent_wid)
{
toplevel = new SubGraphsQtWidget(this, xn_parent_wid);
toplevel->setToolTip(fl("ge_subgraphs widget"));
toplevel->setMinimumSize(300, 500);
toplevel->setWindowTitle(fl(name));
...
...
xtt/lib/xtt/qt/xtt_block_qt.cqt
View file @
279b1f38
...
...
@@ -45,7 +45,6 @@
#include "co_lng.h"
#include "cow_wow_qt.h"
#include "co_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QButtonGroup>
#include <QDialogButtonBox>
...
...
@@ -142,6 +141,7 @@ BlockQt::BlockQt(void *b_parent_ctx, QWidget *b_parent_wid, pwr_sAttrRef *b_oar,
strcat(title, " ");
strcat(title, aname);
toplevel->setToolTip(fl("xtt_block widget"));
toplevel->setMinimumSize(500, 300);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_clog_qt.cqt
View file @
279b1f38
...
...
@@ -53,7 +53,6 @@
#include "rt_xnav_msg.h"
#include "xtt_clog_qt.h"
#include "xtt_clognav_qt.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QDialogButtonBox>
#include <QLabel>
...
...
@@ -77,6 +76,7 @@ CLogQt::CLogQt(void *clog_parent_ctx, QWidget *clog_parent_wid,
filter_form(0)
{
toplevel = new CLogQtWidget(this, clog_parent_wid);
toplevel->setToolTip(fl("xtt_clog widget"));
toplevel->setMinimumSize(1000, 800);
toplevel->setWindowTitle(translate_utf8(clog_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_ev_qt.cqt
View file @
279b1f38
...
...
@@ -134,6 +134,7 @@ EvQt::EvQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
parent_wid_eve = new CallbackWidget(this, &EvQt::eve_activate_exit,
&EvQt::eve_action_inputfocus);
parent_wid_eve->setMinimumSize(eve_width, eve_height);
parent_wid_eve->setToolTip(fl("xtt_ev eve widget"));
parent_wid_eve->setWindowTitle(translate_utf8(eve_name));
parent_wid_eve->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -239,6 +240,7 @@ EvQt::EvQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
{
parent_wid_ala = new CallbackWidget(this, &EvQt::ala_activate_exit,
&EvQt::ala_action_inputfocus);
parent_wid_eve->setToolTip(fl("xtt_ev ala widget"));
parent_wid_ala->setMinimumSize(ala_width, ala_height);
parent_wid_ala->setWindowTitle(translate_utf8(ala_name));
parent_wid_ala->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -379,6 +381,7 @@ EvQt::EvQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
{
parent_wid_blk = new CallbackWidget(this, &EvQt::blk_activate_exit,
&EvQt::blk_action_inputfocus);
parent_wid_eve->setToolTip(fl("xtt_ev blk widget"));
parent_wid_blk->setMinimumSize(blk_width, blk_height);
parent_wid_blk->setWindowTitle(translate_utf8(blk_name));
parent_wid_blk->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_evala_qt.cqt
View file @
279b1f38
...
...
@@ -97,6 +97,7 @@ EvAlaQt::EvAlaQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *ala_name,
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel = new EvAlaQtWidget(this, ev_parent_wid);
toplevel->setToolTip(fl("xtt_evala widget"));
toplevel->setMinimumSize(ala_width, ala_height);
toplevel->setWindowTitle(translate_utf8(ala_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_eveve_qt.cqt
View file @
279b1f38
...
...
@@ -94,6 +94,7 @@ EvEveQt::EvEveQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
// Eve Window
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel = new EvEveQtWidget(this, ev_parent_wid);
toplevel->setToolTip(fl("xtt_eveve widget"));
toplevel->setMinimumSize(eve_width, eve_height);
toplevel->setWindowTitle(translate_utf8(eve_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_fileview_qt.cpp
View file @
279b1f38
...
...
@@ -159,6 +159,7 @@ XttFileviewQt::XttFileviewQt(void *xn_parent_ctx, QWidget *xn_parent_wid,
}
toplevel
=
new
XttFileviewQtWidget
(
this
,
xn_parent_wid
);
toplevel
->
setToolTip
(
fl
(
"xtt_fileview widget"
));
toplevel
->
setMinimumSize
(
500
,
500
);
toplevel
->
setWindowTitle
(
translate_utf8
(
xn_title
));
toplevel
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
...
...
xtt/lib/xtt/qt/xtt_ge_qt.cqt
View file @
279b1f38
...
...
@@ -296,6 +296,7 @@ XttGeQt::XttGeQt(QWidget *xg_parent_wid, void *xg_parent_ctx,
// Qt
if (!(options & ge_mOptions_Embedded)) {
toplevel = new XttGeQtWidget(this, xg_parent_wid);
toplevel->setToolTip(fl("xtt_ge widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_hist_qt.cqt
View file @
279b1f38
...
...
@@ -98,6 +98,7 @@ HistQt::HistQt(void *hist_parent_ctx, QWidget *hist_parent_wid, char *hist_name,
// Qt
toplevel = new HistQtWidget(this, hist_parent_wid);
toplevel->setToolTip(fl("xtt_hist widget"));
toplevel->setMinimumSize(hist_width, hist_height);
toplevel->setWindowTitle(translate_utf8(hist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_keyboard_qt.cpp
View file @
279b1f38
...
...
@@ -83,6 +83,7 @@ XttKeyboardQt::XttKeyboardQt(void *xn_parent_ctx, QWidget *xn_parent_wid,
int
height
=
161
;
toplevel
=
new
XttKeyboardQtWidget
(
this
,
xn_parent_wid
);
toplevel
->
setToolTip
(
fl
(
"xtt_keyboard widget"
));
toplevel
->
setMinimumSize
(
width
,
height
);
toplevel
->
setWindowTitle
(
translate_utf8
(
xn_name
));
...
...
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
View file @
279b1f38
...
...
@@ -191,6 +191,7 @@ XttMultiViewQt::XttMultiViewQt(QWidget *mv_parent_wid, void *mv_parent_ctx,
// Qt
if
(
!
(
options
&
ge_mOptions_Embedded
))
{
toplevel
=
new
XttMultiViewQtWidget
(
this
,
mv_parent_wid
);
toplevel
->
setToolTip
(
fl
(
"xtt_multiview widget"
));
toplevel
->
setMinimumSize
(
window_width
,
window_height
);
toplevel
->
setWindowTitle
(
QString
::
fromLatin1
(
mv
.
Title
));
toplevel
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
...
...
xtt/lib/xtt/qt/xtt_op_qt.cqt
View file @
279b1f38
...
...
@@ -58,7 +58,6 @@
#include "glow_growapi.h"
#include "ge_graph.h"
#include "rt_xnav_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QApplication>
#include <QDesktopWidget>
...
...
@@ -153,6 +152,7 @@ OpQt::OpQt(void *op_parent_ctx, QWidget *op_parent_wid, char *opplace,
white_color = QColor("white");
toplevel = new OpQtWidget(this, op_parent_wid);
toplevel->setToolTip(fl("xtt_op widget"));
toplevel->setMinimumSize(1100, OP_HEIGHT_MIN);
toplevel->setWindowFlags(Qt::CustomizeWindowHint);
...
...
xtt/lib/xtt/qt/xtt_stream_qt.cqt
View file @
279b1f38
...
...
@@ -44,7 +44,6 @@
#include "xtt_stream_qt.h"
#include "rt_xnav_msg.h"
#include "cow_wow_qt.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QHBoxLayout>
#include <QLabel>
...
...
@@ -432,6 +431,7 @@ XttStreamQt::XttStreamQt(QWidget *st_parent_wid, void *st_parent_ctx,
*/
if (!embedded) {
toplevel->setToolTip(fl("xtt_stream widget"));
toplevel->setWindowTitle(QString::fromLatin1(name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_trace_qt.cqt
View file @
279b1f38
...
...
@@ -225,6 +225,7 @@ RtTraceQt::RtTraceQt(void *tr_parent_ctx, QWidget *tr_parent_wid,
// Qt
toplevel = new RtTraceQtWidget(this, tr_parent_wid);
toplevel->setToolTip(fl("xtt_trace widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
View file @
279b1f38
...
...
@@ -328,6 +328,7 @@ XAttQt::XAttQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
cdh_StrncpyCutOff(title, title, 100, 1);
toplevel = new XAttQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xatt widget"));
toplevel->setFixedSize(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
View file @
279b1f38
...
...
@@ -256,6 +256,7 @@ XAttOneQt::XAttOneQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
if (EVEN(*xa_sts)) { return; }
toplevel = new XAttOneQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xattone widget"));
toplevel->setMinimumSize(500, 200);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
View file @
279b1f38
...
...
@@ -55,7 +55,6 @@
#include "xtt_xnav.h"
#include "cow_wow_qt.h"
#include "rt_xatt_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QAction>
#include <QDialogButtonBox>
...
...
@@ -381,6 +380,7 @@ XColWindQt::XColWindQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
xattnav_eType xattnav_type;
toplevel = new XColWindQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xcolwind widget"));
toplevel->setFixedSize(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/xtt/qt/xtt_xcrr_qt.cqt
View file @
279b1f38
...
...
@@ -54,7 +54,6 @@
#include "co_lng.h"
#include "xtt_xnav.h"
#include "rt_xatt_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QAction>
#include <QMenu>
...
...
@@ -122,6 +121,7 @@ XCrrQt::XCrrQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
if (EVEN(*xa_sts)) { return; }
toplevel = new XCrrQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xcrr widget"));
toplevel->setFixedSize(600, 420);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment