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
8dbe31e9
Commit
8dbe31e9
authored
Nov 11, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Removed all restrictions on window resizing.
parent
05317afa
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
66 additions
and
91 deletions
+66
-91
wb/lib/wb/qt/wb_bckw_qt.cqt
wb/lib/wb/qt/wb_bckw_qt.cqt
+2
-2
wb/lib/wb/qt/wb_expw_qt.cqt
wb/lib/wb/qt/wb_expw_qt.cqt
+2
-2
wb/lib/wb/qt/wb_foe_qt.cqt
wb/lib/wb/qt/wb_foe_qt.cqt
+1
-2
wb/lib/wb/qt/wb_uted_qt.cqt
wb/lib/wb/qt/wb_uted_qt.cqt
+2
-2
wb/lib/wb/qt/wb_vsel_qt.cqt
wb/lib/wb/qt/wb_vsel_qt.cqt
+1
-1
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
-1
wb/lib/wb/qt/wb_wge_qt.cqt
wb/lib/wb/qt/wb_wge_qt.cqt
+1
-1
wb/lib/wb/qt/wb_wpkg_qt.cqt
wb/lib/wb/qt/wb_wpkg_qt.cqt
+2
-2
wb/lib/wb/qt/wb_wrev_qt.cqt
wb/lib/wb/qt/wb_wrev_qt.cqt
+2
-2
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+1
-1
wb/lib/wb/qt/wb_xcrr_qt.cqt
wb/lib/wb/qt/wb_xcrr_qt.cqt
+2
-2
xtt/exe/rt_xtt_cmd/qt/rt_xtt_cmd_qt.cpp
xtt/exe/rt_xtt_cmd/qt/rt_xtt_cmd_qt.cpp
+2
-2
xtt/lib/cow/qt/cow_logw_qt.cqt
xtt/lib/cow/qt/cow_logw_qt.cqt
+2
-2
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
+2
-2
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
+2
-2
xtt/lib/cow/qt/cow_tree_qt.cqt
xtt/lib/cow/qt/cow_tree_qt.cqt
+2
-2
xtt/lib/cow/qt/cow_xhelp_qt.cqt
xtt/lib/cow/qt/cow_xhelp_qt.cqt
+2
-2
xtt/lib/ge/qt/ge_attr_qt.cqt
xtt/lib/ge/qt/ge_attr_qt.cqt
+1
-1
xtt/lib/ge/qt/ge_curve_qt.cqt
xtt/lib/ge/qt/ge_curve_qt.cqt
+1
-1
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+1
-2
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
+1
-2
xtt/lib/xtt/qt/xtt_clog_qt.cqt
xtt/lib/xtt/qt/xtt_clog_qt.cqt
+2
-2
xtt/lib/xtt/qt/xtt_ev_qt.cqt
xtt/lib/xtt/qt/xtt_ev_qt.cqt
+3
-9
xtt/lib/xtt/qt/xtt_evala_qt.cqt
xtt/lib/xtt/qt/xtt_evala_qt.cqt
+7
-13
xtt/lib/xtt/qt/xtt_eveve_qt.cqt
xtt/lib/xtt/qt/xtt_eveve_qt.cqt
+7
-13
xtt/lib/xtt/qt/xtt_fileview_qt.cqt
xtt/lib/xtt/qt/xtt_fileview_qt.cqt
+2
-2
xtt/lib/xtt/qt/xtt_hist_qt.cqt
xtt/lib/xtt/qt/xtt_hist_qt.cqt
+1
-4
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
+1
-1
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
+2
-2
xtt/lib/xtt/qt/xtt_trace_qt.cqt
xtt/lib/xtt/qt/xtt_trace_qt.cqt
+1
-2
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
+1
-1
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
+2
-2
No files found.
wb/lib/wb/qt/wb_bckw_qt.cqt
View file @
8dbe31e9
...
...
@@ -51,7 +51,6 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, ldh_tSession bckw_ldhses,
l_list, l_editmode, status)
{
toplevel = new WbBckWQtWidget(this);
toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(bckw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -100,6 +99,7 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, ldh_tSession bckw_ldhses,
add_expanding(form, nav_widget);
toplevel->setLayout(form);
toplevel->resize(1100, 600);
toplevel->show();
wow = new CoWowQt(toplevel);
...
...
@@ -204,4 +204,4 @@ void WbBckWQtWidget::activate_help()
{
CoXHelp::dhelp(
"backup_refman", 0, navh_eHelpFile_Other, "$pwr_lang/man_dg.dat", true);
}
\ No newline at end of file
}
wb/lib/wb/qt/wb_expw_qt.cqt
View file @
8dbe31e9
...
...
@@ -51,7 +51,6 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, ldh_tSession expw_ldhses,
status)
{
toplevel = new WbExpWQtWidget(this);
toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(expw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -112,6 +111,7 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, ldh_tSession expw_ldhses,
add_expanding(form, nav_widget);
toplevel->setLayout(form);
toplevel->resize(1100, 600);
toplevel->show();
wow = new CoWowQt(toplevel);
...
...
@@ -206,4 +206,4 @@ void WbExpWQtWidget::activate_help()
CoXHelp::dhelp("builddir_refman", 0, navh_eHelpFile_Other,
"$pwr_lang/man_dg.dat", true);
}
}
\ No newline at end of file
}
wb/lib/wb/qt/wb_foe_qt.cqt
View file @
8dbe31e9
...
...
@@ -756,8 +756,6 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
{
pwr_tStatus sts;
toplevel->setMinimumSize(1100, 1000);
CoWowQt::SetWindowIcon(toplevel);
QMenuBar* menu_bar = new QMenuBar();
...
...
@@ -1076,6 +1074,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
vbox->addWidget(statusbar);
toplevel->setLayout(vbox);
toplevel->resize(1100, 1000);
toplevel->show();
con_palette->setVisible(false);
...
...
wb/lib/wb/qt/wb_uted_qt.cqt
View file @
8dbe31e9
...
...
@@ -150,7 +150,6 @@ WUtedQt::WUtedQt(void* wu_parent_ctx, const char* wu_name,
wu_editmode, wu_quit_cb, status)
{
toplevel = new WUtedQtWidget(this);
toplevel->setMinimumSize(800, 400);
toplevel->setWindowTitle(fl("Wb Utilities"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -285,6 +284,7 @@ WUtedQt::WUtedQt(void* wu_parent_ctx, const char* wu_name,
vbox->addWidget(statusbar);
toplevel->setLayout(vbox);
toplevel->resize(800, 400);
toplevel->show();
batch_sts = UTED_BATCH_CURRSESS;
...
...
@@ -436,4 +436,4 @@ void WUtedQt::questionbox(char* question_title, char* question_text,
void WUtedQt::raise_window()
{
pop(toplevel);
}
\ No newline at end of file
}
wb/lib/wb/qt/wb_vsel_qt.cqt
View file @
8dbe31e9
...
...
@@ -243,7 +243,6 @@ WVselQt::WVselQt(pwr_tStatus* status, void* wv_parent_ctx,
// Create the window
toplevel = new WVselQtWidget(this);
toplevel->setMinimumSize(500, 400);
toplevel->setWindowTitle(fl(name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -289,6 +288,7 @@ WVselQt::WVselQt(pwr_tStatus* status, void* wv_parent_ctx,
vbox->addWidget(buttons);
toplevel->setLayout(vbox);
toplevel->resize(500, 400);
toplevel->show();
sts = load_volumelist();
...
...
wb/lib/wb/qt/wb_watt_qt.cqt
View file @
8dbe31e9
...
...
@@ -363,7 +363,6 @@ WAttQt::WAttQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
}
toplevel = new WAttQtWidget(this);
toplevel->setMinimumSize(410, 570);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -447,6 +446,7 @@ WAttQt::WAttQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
add_expanding(statusbar, cmd_scrolledinput);
toplevel->resize(410, 570);
toplevel->show();
msg_label->setVisible(false);
...
...
wb/lib/wb/qt/wb_watttext_qt.cqt
View file @
8dbe31e9
...
...
@@ -198,7 +198,6 @@ WAttTextQt::WAttTextQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
}
toplevel = new WAttTextQtWidget(this);
toplevel->setMinimumSize(800, 700);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -259,6 +258,7 @@ WAttTextQt::WAttTextQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
vbox->addWidget(msg_label);
toplevel->setLayout(vbox);
toplevel->resize(800, 700);
toplevel->show();
if (utility == wb_eUtility_Wtt) {
...
...
wb/lib/wb/qt/wb_wda_qt.cqt
View file @
8dbe31e9
...
...
@@ -459,7 +459,6 @@ WdaQt::WdaQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
int sts;
toplevel = new WdaQtWidget(this);
toplevel->setMinimumSize(700, 700);
toplevel->setWindowTitle(fl("Spreadsheet Editor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -546,6 +545,7 @@ WdaQt::WdaQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
add_expanding(statusbar, cmd_scrolledinput);
toplevel->resize(700, 700);
toplevel->show();
msg_label->setVisible(false);
...
...
wb/lib/wb/qt/wb_wge_qt.cqt
View file @
8dbe31e9
...
...
@@ -198,7 +198,6 @@ WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename,
// Qt
toplevel = new WGeQtWidget(this);
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -257,6 +256,7 @@ WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename,
add_expanding(graph_form, grow_widget);
toplevel->setLayout(graph_form);
toplevel->resize(window_width, window_height);
toplevel->show();
if (navigator) {
...
...
wb/lib/wb/qt/wb_wpkg_qt.cqt
View file @
8dbe31e9
...
...
@@ -175,7 +175,6 @@ WPkgQt::WPkgQt(void* wa_parent_ctx) : WPkg(wa_parent_ctx)
int sts;
toplevel = new WPkgQtWidget(this);
toplevel->setMinimumSize(600, 600);
toplevel->setWindowTitle(fl("Distributor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -248,6 +247,7 @@ WPkgQt::WPkgQt(void* wa_parent_ctx) : WPkg(wa_parent_ctx)
vbox->addWidget(statusbar);
toplevel->setLayout(vbox);
toplevel->resize(600, 600);
toplevel->show();
wow = new CoWowQt(toplevel);
...
...
@@ -255,4 +255,4 @@ WPkgQt::WPkgQt(void* wa_parent_ctx) : WPkg(wa_parent_ctx)
if (utility == wb_eUtility_Wtt) {
((Wtt*)parent_ctx)->register_utility(this, wb_eUtility_Distributor);
}
}
\ No newline at end of file
}
wb/lib/wb/qt/wb_wrev_qt.cqt
View file @
8dbe31e9
...
...
@@ -166,7 +166,6 @@ WRevQt::WRevQt(void* wa_parent_ctx, ldh_tSession wa_ldhses)
int sts;
toplevel = new WRevQtWidget(this);
toplevel->setMinimumSize(700, 300);
toplevel->setWindowTitle(fl("Revisions"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -232,6 +231,7 @@ WRevQt::WRevQt(void* wa_parent_ctx, ldh_tSession wa_ldhses)
vbox->addWidget(statusbar);
toplevel->setLayout(vbox);
toplevel->resize(700, 300);
toplevel->show();
wow = new CoWowQt(toplevel);
...
...
@@ -312,4 +312,4 @@ WRevInputDialog::WRevInputDialog(WRevQt* parent_ctx, QWidget* parent,
show();
setModal(true);
}
\ No newline at end of file
}
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
8dbe31e9
...
...
@@ -1876,7 +1876,6 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
// Qt
toplevel = new WttQtWidget(this);
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -2217,6 +2216,7 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
vbox->addWidget(statusbar);
toplevel->setLayout(vbox);
toplevel->resize(window_width, window_height);
toplevel->show();
realized = 1;
...
...
wb/lib/wb/qt/wb_xcrr_qt.cqt
View file @
8dbe31e9
...
...
@@ -129,7 +129,6 @@ WCrrQt::WCrrQt(void* xa_parent_ctx, ldh_tSesContext xa_ldhses,
strncpy(title, namep, sizeof(title));
toplevel = new WCrrQtWidget(this);
toplevel->setMinimumSize(600, 420);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -168,7 +167,8 @@ WCrrQt::WCrrQt(void* xa_parent_ctx, ldh_tSesContext xa_ldhses,
add_expanding(vbox, brow_widget);
toplevel->setLayout(vbox);
toplevel->resize(600, 420);
toplevel->show();
*xa_sts = XATT__SUCCESS;
}
\ No newline at end of file
}
xtt/exe/rt_xtt_cmd/qt/rt_xtt_cmd_qt.cpp
View file @
8dbe31e9
...
...
@@ -134,9 +134,9 @@ int main(int argc, char* argv[])
// Qt
cmd
=
new
XttCmdQt
();
cmd
->
brow_widget
->
setMinimumSize
(
400
,
700
);
cmd
->
brow_widget
->
setWindowTitle
(
fl
(
title
));
cmd
->
brow_widget
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
cmd
->
brow_widget
->
resize
(
400
,
700
);
cmd
->
brow_widget
->
show
();
if
(
hide
)
{
cmd
->
brow_widget
->
setVisible
(
false
);
...
...
@@ -191,4 +191,4 @@ GNU General Public License for more details.\n\n";
QApplication
::
processEvents
();
}
}
\ No newline at end of file
}
xtt/lib/cow/qt/cow_logw_qt.cqt
View file @
8dbe31e9
...
...
@@ -49,7 +49,6 @@ CoLogWQt::CoLogWQt(void* logw_parent_ctx, const char* logw_name,
: CoLogW(logw_parent_ctx, logw_name, l_show_item, status)
{
toplevel = new CoLogWQtWidget(this);
toplevel->setMinimumSize(800, 600);
toplevel->setWindowTitle(fl(logw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -82,6 +81,7 @@ CoLogWQt::CoLogWQt(void* logw_parent_ctx, const char* logw_name,
add_expanding(form, nav_widget);
toplevel->setLayout(form);
toplevel->resize(800, 600);
toplevel->show();
wow = new CoWowQt(toplevel);
...
...
@@ -137,4 +137,4 @@ void CoLogWQtWidget::activate_help()
{
CoXHelp::dhelp("messagewindow_refman", 0, navh_eHelpFile_Other,
"$pwr_lang/man_dg.dat", true);
}
\ No newline at end of file
}
xtt/lib/cow/qt/cow_msgwindow_qt.cqt
View file @
8dbe31e9
...
...
@@ -57,7 +57,6 @@ MsgWindowQt::MsgWindowQt(void* msg_parent_ctx, const char* msg_name,
pwr_tStatus* status) : MsgWindow(msg_parent_ctx, msg_name, status)
{
toplevel = new MsgWindowQtWidget(this);
toplevel->setMinimumSize(800, 600);
toplevel->setWindowTitle(translate_utf8(msg_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -92,6 +91,7 @@ MsgWindowQt::MsgWindowQt(void* msg_parent_ctx, const char* msg_name,
add_expanding(form, nav_widget);
toplevel->setLayout(form);
toplevel->resize(800, 600);
toplevel->show(); // The MsgList must be realized.
toplevel->hide();
...
...
@@ -188,4 +188,4 @@ void MsgWindowQtWidget::activate_help()
void MsgWindowQtWidget::activate_help_message()
{
CoXHelp::dhelp("message window", 0, navh_eHelpFile_Base, 0, true);
}
\ No newline at end of file
}
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
View file @
8dbe31e9
...
...
@@ -67,7 +67,6 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name,
pwr_tStatus sts;
toplevel = new NodelistQtWidget(this);
toplevel->setMinimumSize(850, 300);
toplevel->setWindowTitle(fl(nodelist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -178,6 +177,7 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name,
add_expanding(vbox, nodelistnav_widget);
toplevel->setLayout(vbox);
toplevel->resize(850, 300);
toplevel->show();
wow = new CoWowQt(toplevel);
...
...
@@ -393,4 +393,4 @@ NodelistInputDialogQt::NodelistInputDialogQt(
setLayout(vbox);
setVisible(true);
}
\ No newline at end of file
}
xtt/lib/cow/qt/cow_tree_qt.cqt
View file @
8dbe31e9
...
...
@@ -129,7 +129,6 @@ CowTreeQt::CowTreeQt(void* a_parent_ctx, const char* title,
int sts;
toplevel = new CowTreeQtWidget(this);
toplevel->setMinimumSize(600, 400);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -201,7 +200,8 @@ CowTreeQt::CowTreeQt(void* a_parent_ctx, const char* title,
vbox->addWidget(statusbar);
toplevel->setLayout(vbox);
toplevel->resize(600, 400);
toplevel->show();
wow = new CoWowQt(toplevel);
}
\ No newline at end of file
}
xtt/lib/cow/qt/cow_xhelp_qt.cqt
View file @
8dbe31e9
...
...
@@ -185,7 +185,6 @@ CoXHelpQt::CoXHelpQt(void* xa_parent_ctx, xhelp_eUtility utility, int* xa_sts)
strcpy(title, Lng::translate("Help"));
toplevel = new CoXHelpQtWidget(this);
toplevel->setMinimumSize(700, 600);
toplevel->setWindowTitle(fl(title));
CoWowQt::SetWindowIcon(toplevel);
...
...
@@ -256,6 +255,7 @@ CoXHelpQt::CoXHelpQt(void* xa_parent_ctx, xhelp_eUtility utility, int* xa_sts)
vbox->addWidget(brow_widget);
toplevel->setLayout(vbox);
toplevel->resize(700, 600);
toplevel->show(); // The xhelpnav must be realized.
toplevel->hide();
...
...
@@ -269,4 +269,4 @@ QWidget* CoXHelpQt::get_widget()
} else {
return 0;
}
}
\ No newline at end of file
}
xtt/lib/ge/qt/ge_attr_qt.cqt
View file @
8dbe31e9
...
...
@@ -319,7 +319,6 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type,
if (!embedded) {
toplevel = new AttrQtWidget(this, a_parent_wid);
toplevel->setMinimumSize(500, 700);
toplevel->setWindowTitle(fl("Object Attributes"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -407,6 +406,7 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type,
toplevel->setLayout(vbox);
toplevel->resize(500, 700);
toplevel->show();
msg_label->setVisible(false);
...
...
xtt/lib/ge/qt/ge_curve_qt.cqt
View file @
8dbe31e9
...
...
@@ -740,7 +740,6 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, char* curve_name, char* filename,
// Qt
toplevel = new GeCurveQtWidget(this);
toplevel->setMinimumSize(window_width, window_height);
if (!(options & curve_mOptions_Embedded)) {
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -896,6 +895,7 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, char* curve_name, char* filename,
add_expanding(vbox_layout, vpaned);
toplevel->setLayout(vbox_layout);
toplevel->resize(window_width, window_height);
if (!(options & curve_mOptions_Embedded)) {
toplevel->show();
}
...
...
xtt/lib/ge/qt/ge_qt.cqt
View file @
8dbe31e9
...
...
@@ -1300,8 +1300,6 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
}
toplevel = new GeQtWidget(this);
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
CoWowQt::SetWindowIcon(toplevel);
...
...
@@ -1960,6 +1958,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
vbox->addWidget(statusbar);
toplevel->setLayout(vbox);
toplevel->resize(window_width, window_height);
toplevel->show();
tools_textfont->setFixedHeight(tools_textsize->height());
...
...
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
View file @
8dbe31e9
...
...
@@ -118,7 +118,6 @@ SubGraphsQt::SubGraphsQt(void* xn_parent_ctx, const char* xn_name,
: SubGraphs(xn_parent_ctx, xn_name, xn_growctx, status)
{
toplevel = new SubGraphsQtWidget(this);
toplevel->setMinimumSize(300, 500);
toplevel->setWindowTitle(fl(name));
// Menu
...
...
@@ -152,7 +151,7 @@ SubGraphsQt::SubGraphsQt(void* xn_parent_ctx, const char* xn_name,
add_expanding(vbox, form_widget);
toplevel->setLayout(vbox);
toplevel->resize(300, 500);
toplevel->show();
*w = toplevel;
...
...
xtt/lib/xtt/qt/xtt_clog_qt.cqt
View file @
8dbe31e9
...
...
@@ -66,7 +66,6 @@ CLogQt::CLogQt(void* clog_parent_ctx, const char* clog_name,
pwr_tStatus* status) : CLog(clog_parent_ctx, clog_name, status)
{
toplevel = new CLogQtWidget(this);
toplevel->setMinimumSize(1000, 800);
toplevel->setWindowTitle(translate_utf8(clog_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -112,6 +111,7 @@ CLogQt::CLogQt(void* clog_parent_ctx, const char* clog_name,
add_expanding(vbox, clognav_widget);
toplevel->setLayout(vbox);
toplevel->resize(1000, 800);
toplevel->show();
wow = new CoWowQt(toplevel);
...
...
@@ -341,4 +341,4 @@ void CLogQt::print()
if (sts == WOW__PRINTDIALOGDISABLED) {
wow->DisplayError("Disabled", "Print Dialog is disabled");
}
}
\ No newline at end of file
}
xtt/lib/xtt/qt/xtt_ev_qt.cqt
View file @
8dbe31e9
...
...
@@ -89,12 +89,6 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
{
pwr_tStatus sts;
pwr_sClass_OpPlace* opp;
const int eve_width = 700;
const int eve_height = 600;
const int ala_width = 700;
const int ala_height = 300;
const int blk_width = 700;
const int blk_height = 300;
*status = 1;
...
...
@@ -120,7 +114,6 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
{
parent_wid_eve = new CallbackWidget(
object, &EvQtObject::eve_activate_exit, &EvQtObject::eve_action_inputfocus);
parent_wid_eve->setMinimumSize(eve_width, eve_height);
parent_wid_eve->setWindowTitle(translate_utf8(eve_name));
// Do not set the DeleteOnClose attribute.
...
...
@@ -226,7 +219,6 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
{
parent_wid_ala = new CallbackWidget(
object, &EvQtObject::ala_activate_exit, &EvQtObject::ala_action_inputfocus);
parent_wid_ala->setMinimumSize(ala_width, ala_height);
parent_wid_ala->setWindowTitle(translate_utf8(ala_name));
// Do not set the DeleteOnClose attribute.
...
...
@@ -363,7 +355,6 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
{
parent_wid_blk = new CallbackWidget(
object, &EvQtObject::blk_activate_exit, &EvQtObject::blk_action_inputfocus);
parent_wid_blk->setMinimumSize(blk_width, blk_height);
parent_wid_blk->setWindowTitle(translate_utf8(blk_name));
// Do not set the DeleteOnClose attribute.
...
...
@@ -421,12 +412,15 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
// Store this for the mh callbacks
ev = this;
parent_wid_eve->resize(700, 600);
parent_wid_eve->show();
parent_wid_eve->setVisible(display_eve);
parent_wid_ala->resize(700, 300);
parent_wid_ala->show();
parent_wid_ala->setVisible(display_ala);
parent_wid_blk->resize(700, 300);
parent_wid_blk->show();
parent_wid_blk->setVisible(display_blk);
...
...
xtt/lib/xtt/qt/xtt_evala_qt.cqt
View file @
8dbe31e9
...
...
@@ -57,25 +57,19 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user,
: EvAla(ev_parent_ctx, ala_name, ev_user, ev_eventname_seg, ev_width,
ev_height, ev_x, ev_y, ev_view, ev_options, status)
{
pwr_tStatus sts;
pwr_sClass_OpPlace* opp;
int ala_width = 700;
int ala_height = 300;
int ala_width = (ev_width != 0) ? ev_width : 700;
int ala_height = (ev_height != 0) ? ev_height : 300;
*status = 1;
if (ev_width != 0 && ev_height != 0) {
ala_width = ev_width;
ala_height = ev_height;
}
// Check user object
if (cdh_ObjidIsNull(user)) {
*status = XNAV__NOUSER;
return;
}
sts = gdh_ObjidToPointer(user, (pwr_tAddress*)&opp);
pwr_sClass_OpPlace* opp;
pwr_tStatus sts = gdh_ObjidToPointer(user, (pwr_tAddress*)&opp);
if (EVEN(sts)) {
*status = XNAV__NOUSER;
return;
...
...
@@ -87,7 +81,6 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user,
toplevel = new EvAlaQtWidget(this);
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel->setMinimumSize(ala_width, ala_height);
toplevel->setWindowTitle(translate_utf8(ala_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -219,13 +212,14 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user,
ala_sup_methodtoolbar->set_sensitive();
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel->resize(ala_width, ala_height);
toplevel->show();
if (!(EvAla::x == 0 && EvAla::y == 0)) {
// Set position
toplevel->move(EvAla::x, EvAla::y);
}
} else {
ala_widget->
setMinimumS
ize(ala_width, ala_height);
ala_widget->
res
ize(ala_width, ala_height);
}
ala_displayed = 1;
...
...
@@ -369,4 +363,4 @@ void EvAlaQtWidget::ala_activate_help()
void EvAlaQtWidget::ala_activate_helpevent()
{
ala->ala_activate_helpevent();
}
\ No newline at end of file
}
xtt/lib/xtt/qt/xtt_eveve_qt.cqt
View file @
8dbe31e9
...
...
@@ -56,25 +56,19 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user,
: EvEve(ev_parent_ctx, eve_name, ev_user, ev_eventname_seg, ev_width,
ev_height, ev_x, ev_y, ev_view, ev_options, status)
{
pwr_tStatus sts;
pwr_sClass_OpPlace* opp;
int eve_width = 700;
int eve_height = 300;
int eve_width = (ev_width != 0) ? ev_width : 700;
int eve_height = (ev_height != 0) ? ev_height : 300;
*status = 1;
if (ev_width != 0 && ev_height != 0) {
eve_width = ev_width;
eve_height = ev_height;
}
// Check user object
if (cdh_ObjidIsNull(user)) {
*status = XNAV__NOUSER;
return;
}
sts = gdh_ObjidToPointer(user, (pwr_tAddress*)&opp);
pwr_sClass_OpPlace* opp;
pwr_tStatus sts = gdh_ObjidToPointer(user, (pwr_tAddress*)&opp);
if (EVEN(sts)) {
*status = XNAV__NOUSER;
return;
...
...
@@ -84,7 +78,6 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user,
// Eve Window
toplevel = new EvEveQtWidget(this);
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel->setMinimumSize(eve_width, eve_height);
toplevel->setWindowTitle(translate_utf8(eve_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -207,13 +200,14 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user,
eve_sup_methodtoolbar->set_sensitive();
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel->resize(eve_width, eve_height);
toplevel->show();
if (!(EvEve::x == 0 && EvEve::y == 0)) {
// Set position
toplevel->move(EvEve::x, EvEve::y);
}
} else {
eve_widget->
setMinimumS
ize(eve_width, eve_height);
eve_widget->
res
ize(eve_width, eve_height);
}
eve_displayed = 1;
...
...
@@ -347,4 +341,4 @@ void EvEveQtWidget::eve_activate_help()
void EvEveQtWidget::eve_activate_helpevent()
{
eve->eve_activate_helpevent();
}
\ No newline at end of file
}
xtt/lib/xtt/qt/xtt_fileview_qt.cqt
View file @
8dbe31e9
...
...
@@ -154,7 +154,6 @@ XttFileviewQt::XttFileviewQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
}
toplevel = new XttFileviewQtWidget(this, xn_parent_wid);
toplevel->setMinimumSize(500, 500);
toplevel->setWindowTitle(translate_utf8(xn_title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -173,5 +172,6 @@ XttFileviewQt::XttFileviewQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
QObject::connect(toplevel, SIGNAL(fileSelected(const QString&)), toplevel,
SLOT(list_ok_cb(const QString&)));
toplevel->resize(500, 500);
toplevel->exec();
}
\ No newline at end of file
}
xtt/lib/xtt/qt/xtt_hist_qt.cqt
View file @
8dbe31e9
...
...
@@ -65,15 +65,11 @@ void HistQtWidget::closeEvent(QCloseEvent* event)
HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp,
pwr_tStatus* status) : Hist(hist_parent_ctx, hist_name, arp, status)
{
const int hist_width = 1335;
const int hist_height = 700;
// shall be MessageHandler.EventLogSize
hist_size = 100000;
// Qt
toplevel = new HistQtWidget(this);
toplevel->setMinimumSize(hist_width, hist_height);
toplevel->setWindowTitle(translate_utf8(hist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -332,6 +328,7 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp,
add_expanding(hist_vbox, hist_widget);
toplevel->setLayout(hist_vbox);
toplevel->resize(1335, 700);
toplevel->show();
Hist::time_cb(time_ePeriod_AllTime);
...
...
xtt/lib/xtt/qt/xtt_multiview_qt.cpp
View file @
8dbe31e9
...
...
@@ -153,7 +153,6 @@ XttMultiViewQt::XttMultiViewQt(void* mv_parent_ctx, const char* mv_name,
// Qt
toplevel
=
new
XttMultiViewQtWidget
(
this
);
toplevel
->
setMinimumSize
(
window_width
,
window_height
);
if
(
!
(
options
&
ge_mOptions_Embedded
))
{
toplevel
->
setWindowTitle
(
QString
::
fromLatin1
(
mv
.
Title
));
toplevel
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
...
...
@@ -772,6 +771,7 @@ XttMultiViewQt::XttMultiViewQt(void* mv_parent_ctx, const char* mv_name,
}
if
(
!
(
options
&
ge_mOptions_Embedded
))
{
toplevel
->
resize
(
window_width
,
window_height
);
toplevel
->
show
();
if
(
!
(
mv_x
==
0
&&
mv_y
==
0
))
{
...
...
xtt/lib/xtt/qt/xtt_op_qt.cqt
View file @
8dbe31e9
...
...
@@ -156,7 +156,6 @@ OpQt::OpQt(void* op_parent_ctx, char* opplace, pwr_tStatus* status)
memset(appl_buttons, 0, sizeof(appl_buttons));
toplevel = new OpQtWidget(this);
toplevel->setMinimumSize(1100, OP_HEIGHT_MIN + OP_HEIGHT_STATUSBAR);
toplevel->setWindowFlags(Qt::CustomizeWindowHint);
CoWowQt::SetWindowIcon(toplevel);
...
...
@@ -451,6 +450,7 @@ OpQt::OpQt(void* op_parent_ctx, char* opplace, pwr_tStatus* status)
toplevel->setLayout(vbox_conf);
toplevel->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
toplevel->resize(1100, OP_HEIGHT_MIN + OP_HEIGHT_STATUSBAR);
toplevel->show();
if (start_jop) {
...
...
xtt/lib/xtt/qt/xtt_stream_qt.cqt
View file @
8dbe31e9
...
...
@@ -525,7 +525,7 @@ XttStreamQt::XttStreamQt(void* st_parent_ctx, const char* name,
toplevel->setLayout(main_layout);
if (!embedded) {
toplevel->
setMinimumS
ize(width, height);
toplevel->
res
ize(width, height);
toplevel->show();
if (options & strm_mOptions_FullScreen) {
...
...
@@ -670,4 +670,4 @@ void XttStreamQtWidget::activate_get_position()
stream->ptz_tilt->setText(tilt_str);
stream->ptz_zoom->setText(zoom_str);
stream->hidePtz();
}
\ No newline at end of file
}
xtt/lib/xtt/qt/xtt_trace_qt.cqt
View file @
8dbe31e9
...
...
@@ -222,7 +222,6 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid,
: RtTrace(tr_parent_ctx, tr_objid, status), nav_shell(0)
{
const int window_width = 900;
const int window_height = 800;
const int nav_width = 180;
pwr_tStatus sts;
pwr_tObjid window_objid;
...
...
@@ -286,7 +285,6 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid,
// Qt
toplevel = new RtTraceQtWidget(this);
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -406,6 +404,7 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid,
add_expanding(vbox, paned);
toplevel->setLayout(vbox);
toplevel->resize(window_width, 800);
toplevel->show();
QList<int> sizes;
...
...
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
View file @
8dbe31e9
...
...
@@ -343,7 +343,6 @@ XAttQt::XAttQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
str_StrncpyCutOff(title, title, 100, 1);
toplevel = new XAttQtWidget(this);
toplevel->setMinimumSize(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -429,6 +428,7 @@ XAttQt::XAttQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
add_expanding(statusbar, cmd_scrolledinput);
toplevel->resize(420, 600);
toplevel->show();
msg_label->setVisible(false);
...
...
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
View file @
8dbe31e9
...
...
@@ -409,7 +409,6 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list,
xattnav_eType xattnav_type;
toplevel = new XColWindQtWidget(this);
toplevel->setMinimumSize(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -550,6 +549,7 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list,
add_expanding(statusbar, cmd_scrolledinput);
toplevel->resize(420, 600);
toplevel->show();
msg_label->setVisible(false);
...
...
xtt/lib/xtt/qt/xtt_xcrr_qt.cqt
View file @
8dbe31e9
...
...
@@ -123,7 +123,6 @@ XCrrQt::XCrrQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
}
toplevel = new XCrrQtWidget(this);
toplevel->setMinimumSize(600, 420);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -160,7 +159,8 @@ XCrrQt::XCrrQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
add_expanding(vbox, brow_widget);
toplevel->setLayout(vbox);
toplevel->resize(600, 420);
toplevel->show();
*xa_sts = XATT__SUCCESS;
}
\ No newline at end of file
}
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