Commit 8dbe31e9 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Removed all restrictions on window resizing.

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