Commit 67899f69 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Changed statusbar size

parent 399d27ce
...@@ -417,18 +417,16 @@ WAttQt::WAttQt(QWidget* wa_parent_wid, void* wa_parent_ctx, ...@@ -417,18 +417,16 @@ WAttQt::WAttQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > "); cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall); cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->set_hide_on_esc(true); cmd_entry->set_hide_on_esc(true);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry())); SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout(toplevel); QVBoxLayout* vbox = new QVBoxLayout(toplevel);
vbox->setMenuBar(menu_bar); vbox->setMenuBar(menu_bar);
......
...@@ -472,17 +472,15 @@ WdaQt::WdaQt(QWidget* wa_parent_wid, void* wa_parent_ctx, ...@@ -472,17 +472,15 @@ WdaQt::WdaQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > "); cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall); cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry())); SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout(toplevel); QVBoxLayout* vbox = new QVBoxLayout(toplevel);
vbox->setMenuBar(menu_bar); vbox->setMenuBar(menu_bar);
......
...@@ -74,10 +74,6 @@ ...@@ -74,10 +74,6 @@
#include <QVBoxLayout> #include <QVBoxLayout>
#define WTT_PALETTE_WIDTH 160 #define WTT_PALETTE_WIDTH 160
//#define MENU_BAR 1
#define MENU_PULLDOWN 2
#define MENU_POPUP 3
//#define MENU_OPTION 4
CoWowRecall WttQt::cmd_recall; CoWowRecall WttQt::cmd_recall;
CoWowRecall WttQt::value_recall; CoWowRecall WttQt::value_recall;
...@@ -787,7 +783,7 @@ void WttQt::close_change_value() ...@@ -787,7 +783,7 @@ void WttQt::close_change_value()
} }
} }
void WttQtWidget::open_change_value() void WttQt::open_change_value()
{ {
int sts; int sts;
brow_tObject* sellist; brow_tObject* sellist;
...@@ -796,92 +792,92 @@ void WttQtWidget::open_change_value() ...@@ -796,92 +792,92 @@ void WttQtWidget::open_change_value()
int multiline; int multiline;
int input_size = 0; int input_size = 0;
if (wtt->input_open) { if (input_open) {
wtt->cmd_entry->setVisible(false); cmd_entry->setVisible(false);
wtt->set_prompt(""); set_prompt("");
wtt->input_open = 0; input_open = 0;
wtt->focused_wnav->set_inputfocus(1); focused_wnav->set_inputfocus(1);
return; return;
} }
sts = wtt->wnav->get_selected_nodes(&sellist, &sel_cnt1); sts = wnav->get_selected_nodes(&sellist, &sel_cnt1);
if (ODD(sts)) { if (ODD(sts)) {
if (sel_cnt1 != 1) { if (sel_cnt1 != 1) {
wtt->message('E', "Select one attribute"); message('E', "Select one attribute");
return; return;
} }
sts = wtt->wnav->check_attr_value( sts = wnav->check_attr_value(
sellist[0], &multiline, &value, &input_size); sellist[0], &multiline, &value, &input_size);
if (EVEN(sts)) { if (EVEN(sts)) {
wtt->message('E', wnav_get_message(sts)); message('E', wnav_get_message(sts));
return; return;
} }
if (multiline) { if (multiline) {
wtt->message('E', "Edit multiline attributes in the Object Editor"); message('E', "Edit multiline attributes in the Object Editor");
return; return;
} }
wtt->input_node = sellist[0]; input_node = sellist[0];
wtt->input_wnav = wtt->wnav; input_wnav = wnav;
wtt->wnav->node_to_objid(wtt->input_node, &wtt->input_objid); wnav->node_to_objid(input_node, &input_objid);
free(sellist); free(sellist);
} else { } else {
sts = wtt->wnavnode->get_selected_nodes(&sellist, &sel_cnt2); sts = wnavnode->get_selected_nodes(&sellist, &sel_cnt2);
if (ODD(sts)) { if (ODD(sts)) {
if (sel_cnt2 != 1) { if (sel_cnt2 != 1) {
wtt->message('E', "Select one attribute"); message('E', "Select one attribute");
return; return;
} }
sts = wtt->wnavnode->check_attr_value( sts = wnavnode->check_attr_value(
sellist[0], &multiline, &value, &input_size); sellist[0], &multiline, &value, &input_size);
if (EVEN(sts)) { if (EVEN(sts)) {
wtt->message('E', wnav_get_message(sts)); message('E', wnav_get_message(sts));
return; return;
} }
if (multiline) { if (multiline) {
wtt->message('E', "Edit multiline attributes in the attribute editor"); message('E', "Edit multiline attributes in the attribute editor");
return; return;
} }
wtt->input_node = sellist[0]; input_node = sellist[0];
wtt->input_wnav = wtt->wnavnode; input_wnav = wnavnode;
wtt->wnavnode->node_to_objid(wtt->input_node, &wtt->input_objid); wnavnode->node_to_objid(input_node, &input_objid);
free(sellist); free(sellist);
} }
} }
if (sel_cnt1 == 0 && sel_cnt2 == 0) { if (sel_cnt1 == 0 && sel_cnt2 == 0) {
wtt->message('E', "Select an attribute"); message('E', "Select an attribute");
return; return;
} }
if (wtt->command_open) { if (command_open) {
wtt->command_open = 0; command_open = 0;
} else { } else {
wtt->cmd_entry->setVisible(true); cmd_entry->setVisible(true);
} }
wtt->cmd_entry->setMaxLength(input_size); cmd_entry->setMaxLength(input_size);
wtt->message(' ', ""); message(' ', "");
wtt->cmd_entry->set_recall_buffer(&wtt->value_recall); cmd_entry->set_recall_buffer(&value_recall);
wtt->cmd_entry->setFocus(); cmd_entry->setFocus();
if (value) { if (value) {
wtt->cmd_entry->setText(QString::fromLatin1(value)); cmd_entry->setText(QString::fromLatin1(value));
// Select the text // Select the text
wtt->cmd_entry->selectAll(); cmd_entry->selectAll();
} else { } else {
wtt->cmd_entry->setText(""); cmd_entry->setText("");
} }
wtt->set_prompt("value >"); set_prompt("value >");
wtt->input_open = 1; input_open = 1;
wtt->input_mode = wtt_eInputMode_Attribute; input_mode = wtt_eInputMode_Attribute;
} }
void WttQtWidget::open_change_name() void WttQt::open_change_name()
{ {
int sts; int sts;
brow_tObject* sellist; brow_tObject* sellist;
...@@ -889,77 +885,77 @@ void WttQtWidget::open_change_name() ...@@ -889,77 +885,77 @@ void WttQtWidget::open_change_name()
int size; int size;
char name[80]; char name[80];
if (wtt->input_open) { if (input_open) {
wtt->cmd_entry->setVisible(false); cmd_entry->setVisible(false);
wtt->set_prompt(""); set_prompt("");
wtt->input_open = 0; input_open = 0;
return; return;
} }
sts = wtt->wnav->get_selected_nodes(&sellist, &sel_cnt1); sts = wnav->get_selected_nodes(&sellist, &sel_cnt1);
if (ODD(sts)) { if (ODD(sts)) {
if (sel_cnt1 != 1) { if (sel_cnt1 != 1) {
wtt->message('E', "Select one object"); message('E', "Select one object");
return; return;
} }
sts = wtt->wnav->check_object_name(sellist[0]); sts = wnav->check_object_name(sellist[0]);
if (EVEN(sts)) { if (EVEN(sts)) {
wtt->message('E', wnav_get_message(sts)); message('E', wnav_get_message(sts));
return; return;
} }
wtt->input_node = sellist[0]; input_node = sellist[0];
wtt->input_wnav = wtt->wnav; input_wnav = wnav;
wtt->wnav->node_to_objid(wtt->input_node, &wtt->input_objid); wnav->node_to_objid(input_node, &input_objid);
free(sellist); free(sellist);
} else { } else {
sts = wtt->wnavnode->get_selected_nodes(&sellist, &sel_cnt2); sts = wnavnode->get_selected_nodes(&sellist, &sel_cnt2);
if (ODD(sts)) { if (ODD(sts)) {
if (sel_cnt2 != 1) { if (sel_cnt2 != 1) {
wtt->message('E', "Select one object"); message('E', "Select one object");
return; return;
} }
sts = wtt->wnavnode->check_object_name(sellist[0]); sts = wnavnode->check_object_name(sellist[0]);
if (EVEN(sts)) { if (EVEN(sts)) {
wtt->message('E', wnav_get_message(sts)); message('E', wnav_get_message(sts));
return; return;
} }
wtt->input_node = sellist[0]; input_node = sellist[0];
wtt->input_wnav = wtt->wnavnode; input_wnav = wnavnode;
wtt->wnavnode->node_to_objid(wtt->input_node, &wtt->input_objid); wnavnode->node_to_objid(input_node, &input_objid);
free(sellist); free(sellist);
} }
} }
if (sel_cnt1 == 0 && sel_cnt2 == 0) { if (sel_cnt1 == 0 && sel_cnt2 == 0) {
wtt->message('E', "Select an object"); message('E', "Select an object");
return; return;
} }
if (wtt->command_open) { if (command_open) {
wtt->command_open = 0; command_open = 0;
} else { } else {
wtt->cmd_entry->setVisible(true); cmd_entry->setVisible(true);
} }
wtt->cmd_entry->setMaxLength(sizeof(pwr_tObjName) - 1); cmd_entry->setMaxLength(sizeof(pwr_tObjName) - 1);
wtt->message(' ', ""); message(' ', "");
wtt->cmd_entry->set_recall_buffer(&wtt->name_recall); cmd_entry->set_recall_buffer(&name_recall);
wtt->cmd_entry->setFocus(); cmd_entry->setFocus();
sts = ldh_ObjidToName(wtt->ldhses, wtt->input_objid, ldh_eName_Object, name, sts = ldh_ObjidToName(ldhses, input_objid, ldh_eName_Object, name,
sizeof(name), &size); sizeof(name), &size);
wtt->cmd_entry->setText(QString::fromLatin1(name)); cmd_entry->setText(QString::fromLatin1(name));
// Select the text // Select the text
wtt->cmd_entry->selectAll(); cmd_entry->selectAll();
wtt->set_prompt("name >"); set_prompt("name >");
wtt->input_open = 1; input_open = 1;
wtt->input_mode = wtt_eInputMode_ObjectName; input_mode = wtt_eInputMode_ObjectName;
} }
// //
...@@ -1367,6 +1363,7 @@ void WttQtWidget::valchanged_cmd_entry() ...@@ -1367,6 +1363,7 @@ void WttQtWidget::valchanged_cmd_entry()
int sts; int sts;
QByteArray text = wtt->cmd_entry->text().toLatin1(); QByteArray text = wtt->cmd_entry->text().toLatin1();
debug_print("text=%s\n", text.data());
if (!text.data()) { if (!text.data()) {
wtt->wnav->wow->DisplayError("Input error", "Invalid character"); wtt->wnav->wow->DisplayError("Input error", "Invalid character");
...@@ -2062,7 +2059,7 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name, ...@@ -2062,7 +2059,7 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name,
SLOT(activate_showcrossref()), "CTRL+R"); SLOT(activate_showcrossref()), "CTRL+R");
addMenuItem(toplevel, functions, "S&yntax Check", SLOT(activate_syntax())); addMenuItem(toplevel, functions, "S&yntax Check", SLOT(activate_syntax()));
menu_change_value_w = addMenuItem(toplevel, functions, "Change &Value", menu_change_value_w = addMenuItem(toplevel, functions, "Change &Value",
SLOT(open_change_value()), "CTRL+Q"); SLOT(activate_change_value()), "CTRL+Q");
addMenuItem( addMenuItem(
toplevel, functions, "Co&mmand", SLOT(activate_command()), "CTRL+B"); toplevel, functions, "Co&mmand", SLOT(activate_command()), "CTRL+B");
...@@ -2225,12 +2222,9 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name, ...@@ -2225,12 +2222,9 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name,
// Statusbar and cmd input // Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel(fl("value > ")); cmd_prompt = new QLabel(fl("value > "));
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&cmd_recall); cmd_entry = new CoWowEntryQt(&cmd_recall);
cmd_entry->set_hide_on_esc(true); cmd_entry->set_hide_on_esc(true);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(valchanged_cmd_entry())); SLOT(valchanged_cmd_entry()));
QObject::connect( QObject::connect(
...@@ -2239,6 +2233,7 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name, ...@@ -2239,6 +2233,7 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name,
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox1 = new QVBoxLayout(); QVBoxLayout* vbox1 = new QVBoxLayout();
vbox1->addWidget(menu_bar); vbox1->addWidget(menu_bar);
......
...@@ -200,7 +200,9 @@ public: ...@@ -200,7 +200,9 @@ public:
virtual void set_twowindows(int two, int display_wnav, int display_wnavnode); virtual void set_twowindows(int two, int display_wnav, int display_wnavnode);
virtual void message(char severity, const char* message); virtual void message(char severity, const char* message);
virtual void set_prompt(const char* prompt); virtual void set_prompt(const char* prompt);
virtual void open_change_value();
virtual void close_change_value(); virtual void close_change_value();
virtual void open_change_name();
virtual void watt_new(pwr_tAttrRef aref); virtual void watt_new(pwr_tAttrRef aref);
virtual void wda_new(pwr_tOid oid); virtual void wda_new(pwr_tOid oid);
virtual Ge* ge_new(char* graphname); virtual Ge* ge_new(char* graphname);
...@@ -241,9 +243,6 @@ public slots: ...@@ -241,9 +243,6 @@ public slots:
void set_selection_owner_proc(); void set_selection_owner_proc();
void set_palette_selection_owner_proc(); void set_palette_selection_owner_proc();
virtual void open_change_value();
virtual void open_change_name();
void activate_change_value(); void activate_change_value();
void activate_command(); void activate_command();
void activate_print(); void activate_print();
......
...@@ -892,6 +892,7 @@ void Wtt::close(void* ctx) ...@@ -892,6 +892,7 @@ void Wtt::close(void* ctx)
void Wtt::change_value(void* ctx) void Wtt::change_value(void* ctx)
{ {
fprintf(stderr, "Wtt::change_value\n");
((Wtt*)ctx)->open_change_value(); ((Wtt*)ctx)->open_change_value();
} }
......
...@@ -717,20 +717,18 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts) ...@@ -717,20 +717,18 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts)
// Statusbar and cmd input // Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > "); cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_recall = new CoWowRecall(); cmd_recall = new CoWowRecall();
value_recall = new CoWowRecall(); value_recall = new CoWowRecall();
cmd_entry = new CoWowEntryQt(cmd_recall); cmd_entry = new CoWowEntryQt(cmd_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editing_finished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editing_finished()), toplevel,
SLOT(valchanged_cmd_entry())); SLOT(valchanged_cmd_entry()));
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
statusbar->show(); statusbar->show();
......
...@@ -363,17 +363,15 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type, ...@@ -363,17 +363,15 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type,
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > "); cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall); cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(attr_activate_cmd_entry())); SLOT(attr_activate_cmd_entry()));
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout(); QVBoxLayout* vbox = new QVBoxLayout();
vbox->setMenuBar(menu_bar); vbox->setMenuBar(menu_bar);
......
...@@ -407,17 +407,15 @@ XAttQt::XAttQt(QWidget* xa_parent_wid, void* xa_parent_ctx, ...@@ -407,17 +407,15 @@ XAttQt::XAttQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > "); cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall); cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry())); SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout(); QVBoxLayout* vbox = new QVBoxLayout();
vbox->setMenuBar(menu_bar); vbox->setMenuBar(menu_bar);
......
...@@ -275,13 +275,9 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx, ...@@ -275,13 +275,9 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
// Prompt, label, input entry // Prompt, label, input entry
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > "); cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_label = new QLabel(""); cmd_label = new QLabel("");
cmd_label->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall); cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry())); SLOT(activate_cmd_entry()));
...@@ -309,6 +305,7 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx, ...@@ -309,6 +305,7 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_label); add_expanding(statusbar, cmd_label);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* cmd_scrolledinput_layout = new QVBoxLayout(); QVBoxLayout* cmd_scrolledinput_layout = new QVBoxLayout();
add_expanding(cmd_scrolledinput_layout, cmd_scrolled_buffer); add_expanding(cmd_scrolledinput_layout, cmd_scrolled_buffer);
......
...@@ -534,17 +534,15 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx, ...@@ -534,17 +534,15 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel(""); msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > "); cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall); cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel, QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry())); SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt); statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry); add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout(); QVBoxLayout* vbox = new QVBoxLayout();
vbox->setMenuBar(menu_bar); vbox->setMenuBar(menu_bar);
......
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