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
67899f69
Commit
67899f69
authored
Aug 13, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Changed statusbar size
parent
399d27ce
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
82 additions
and
102 deletions
+82
-102
wb/lib/wb/qt/wb_watt_qt.cqt
wb/lib/wb/qt/wb_watt_qt.cqt
+1
-3
wb/lib/wb/qt/wb_wda_qt.cqt
wb/lib/wb/qt/wb_wda_qt.cqt
+1
-3
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+72
-77
wb/lib/wb/qt/wb_wtt_qt.h
wb/lib/wb/qt/wb_wtt_qt.h
+2
-3
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+1
-0
xtt/exe/rt_xtt/qt/rt_xtt_qt.cqt
xtt/exe/rt_xtt/qt/rt_xtt_qt.cqt
+1
-3
xtt/lib/ge/qt/ge_attr_qt.cqt
xtt/lib/ge/qt/ge_attr_qt.cqt
+1
-3
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
+1
-3
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
+1
-4
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
+1
-3
No files found.
wb/lib/wb/qt/wb_watt_qt.cqt
View file @
67899f69
...
...
@@ -417,18 +417,16 @@ WAttQt::WAttQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->set_hide_on_esc(true);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout(toplevel);
vbox->setMenuBar(menu_bar);
...
...
wb/lib/wb/qt/wb_wda_qt.cqt
View file @
67899f69
...
...
@@ -472,17 +472,15 @@ WdaQt::WdaQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout(toplevel);
vbox->setMenuBar(menu_bar);
...
...
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
67899f69
...
...
@@ -74,10 +74,6 @@
#include <QVBoxLayout>
#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::value_recall;
...
...
@@ -787,7 +783,7 @@ void WttQt::close_change_value()
}
}
void WttQt
Widget
::open_change_value()
void WttQt::open_change_value()
{
int sts;
brow_tObject* sellist;
...
...
@@ -796,92 +792,92 @@ void WttQtWidget::open_change_value()
int multiline;
int input_size = 0;
if (
wtt->
input_open) {
wtt->
cmd_entry->setVisible(false);
wtt->
set_prompt("");
wtt->
input_open = 0;
wtt->
focused_wnav->set_inputfocus(1);
if (input_open) {
cmd_entry->setVisible(false);
set_prompt("");
input_open = 0;
focused_wnav->set_inputfocus(1);
return;
}
sts = w
tt->w
nav->get_selected_nodes(&sellist, &sel_cnt1);
sts = wnav->get_selected_nodes(&sellist, &sel_cnt1);
if (ODD(sts)) {
if (sel_cnt1 != 1) {
wtt->
message('E', "Select one attribute");
message('E', "Select one attribute");
return;
}
sts = w
tt->w
nav->check_attr_value(
sts = wnav->check_attr_value(
sellist[0], &multiline, &value, &input_size);
if (EVEN(sts)) {
wtt->
message('E', wnav_get_message(sts));
message('E', wnav_get_message(sts));
return;
}
if (multiline) {
wtt->
message('E', "Edit multiline attributes in the Object Editor");
message('E', "Edit multiline attributes in the Object Editor");
return;
}
wtt->
input_node = sellist[0];
wtt->input_wnav = wtt->
wnav;
w
tt->wnav->node_to_objid(wtt->input_node, &wtt->
input_objid);
input_node = sellist[0];
input_wnav =
wnav;
w
nav->node_to_objid(input_node, &
input_objid);
free(sellist);
} else {
sts = w
tt->w
navnode->get_selected_nodes(&sellist, &sel_cnt2);
sts = wnavnode->get_selected_nodes(&sellist, &sel_cnt2);
if (ODD(sts)) {
if (sel_cnt2 != 1) {
wtt->
message('E', "Select one attribute");
message('E', "Select one attribute");
return;
}
sts = w
tt->w
navnode->check_attr_value(
sts = wnavnode->check_attr_value(
sellist[0], &multiline, &value, &input_size);
if (EVEN(sts)) {
wtt->
message('E', wnav_get_message(sts));
message('E', wnav_get_message(sts));
return;
}
if (multiline) {
wtt->
message('E', "Edit multiline attributes in the attribute editor");
message('E', "Edit multiline attributes in the attribute editor");
return;
}
wtt->
input_node = sellist[0];
wtt->input_wnav = wtt->
wnavnode;
w
tt->wnavnode->node_to_objid(wtt->input_node, &wtt->
input_objid);
input_node = sellist[0];
input_wnav =
wnavnode;
w
navnode->node_to_objid(input_node, &
input_objid);
free(sellist);
}
}
if (sel_cnt1 == 0 && sel_cnt2 == 0) {
wtt->
message('E', "Select an attribute");
message('E', "Select an attribute");
return;
}
if (
wtt->
command_open) {
wtt->
command_open = 0;
if (command_open) {
command_open = 0;
} else {
wtt->
cmd_entry->setVisible(true);
cmd_entry->setVisible(true);
}
wtt->
cmd_entry->setMaxLength(input_size);
wtt->
message(' ', "");
wtt->cmd_entry->set_recall_buffer(&wtt->
value_recall);
wtt->
cmd_entry->setFocus();
cmd_entry->setMaxLength(input_size);
message(' ', "");
cmd_entry->set_recall_buffer(&
value_recall);
cmd_entry->setFocus();
if (value) {
wtt->
cmd_entry->setText(QString::fromLatin1(value));
cmd_entry->setText(QString::fromLatin1(value));
// Select the text
wtt->
cmd_entry->selectAll();
cmd_entry->selectAll();
} else {
wtt->
cmd_entry->setText("");
cmd_entry->setText("");
}
wtt->
set_prompt("value >");
wtt->
input_open = 1;
wtt->
input_mode = wtt_eInputMode_Attribute;
set_prompt("value >");
input_open = 1;
input_mode = wtt_eInputMode_Attribute;
}
void WttQt
Widget
::open_change_name()
void WttQt::open_change_name()
{
int sts;
brow_tObject* sellist;
...
...
@@ -889,77 +885,77 @@ void WttQtWidget::open_change_name()
int size;
char name[80];
if (
wtt->
input_open) {
wtt->
cmd_entry->setVisible(false);
wtt->
set_prompt("");
wtt->
input_open = 0;
if (input_open) {
cmd_entry->setVisible(false);
set_prompt("");
input_open = 0;
return;
}
sts = w
tt->w
nav->get_selected_nodes(&sellist, &sel_cnt1);
sts = wnav->get_selected_nodes(&sellist, &sel_cnt1);
if (ODD(sts)) {
if (sel_cnt1 != 1) {
wtt->
message('E', "Select one object");
message('E', "Select one object");
return;
}
sts = w
tt->w
nav->check_object_name(sellist[0]);
sts = wnav->check_object_name(sellist[0]);
if (EVEN(sts)) {
wtt->
message('E', wnav_get_message(sts));
message('E', wnav_get_message(sts));
return;
}
wtt->
input_node = sellist[0];
wtt->input_wnav = wtt->
wnav;
w
tt->wnav->node_to_objid(wtt->input_node, &wtt->
input_objid);
input_node = sellist[0];
input_wnav =
wnav;
w
nav->node_to_objid(input_node, &
input_objid);
free(sellist);
} else {
sts = w
tt->w
navnode->get_selected_nodes(&sellist, &sel_cnt2);
sts = wnavnode->get_selected_nodes(&sellist, &sel_cnt2);
if (ODD(sts)) {
if (sel_cnt2 != 1) {
wtt->
message('E', "Select one object");
message('E', "Select one object");
return;
}
sts = w
tt->w
navnode->check_object_name(sellist[0]);
sts = wnavnode->check_object_name(sellist[0]);
if (EVEN(sts)) {
wtt->
message('E', wnav_get_message(sts));
message('E', wnav_get_message(sts));
return;
}
wtt->
input_node = sellist[0];
wtt->input_wnav = wtt->
wnavnode;
w
tt->wnavnode->node_to_objid(wtt->input_node, &wtt->
input_objid);
input_node = sellist[0];
input_wnav =
wnavnode;
w
navnode->node_to_objid(input_node, &
input_objid);
free(sellist);
}
}
if (sel_cnt1 == 0 && sel_cnt2 == 0) {
wtt->
message('E', "Select an object");
message('E', "Select an object");
return;
}
if (
wtt->
command_open) {
wtt->
command_open = 0;
if (command_open) {
command_open = 0;
} else {
wtt->
cmd_entry->setVisible(true);
cmd_entry->setVisible(true);
}
wtt->
cmd_entry->setMaxLength(sizeof(pwr_tObjName) - 1);
wtt->
message(' ', "");
wtt->cmd_entry->set_recall_buffer(&wtt->
name_recall);
wtt->
cmd_entry->setFocus();
cmd_entry->setMaxLength(sizeof(pwr_tObjName) - 1);
message(' ', "");
cmd_entry->set_recall_buffer(&
name_recall);
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);
wtt->
cmd_entry->setText(QString::fromLatin1(name));
cmd_entry->setText(QString::fromLatin1(name));
// Select the text
wtt->
cmd_entry->selectAll();
cmd_entry->selectAll();
wtt->
set_prompt("name >");
wtt->
input_open = 1;
wtt->
input_mode = wtt_eInputMode_ObjectName;
set_prompt("name >");
input_open = 1;
input_mode = wtt_eInputMode_ObjectName;
}
//
...
...
@@ -1367,6 +1363,7 @@ void WttQtWidget::valchanged_cmd_entry()
int sts;
QByteArray text = wtt->cmd_entry->text().toLatin1();
debug_print("text=%s\n", text.data());
if (!text.data()) {
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,
SLOT(activate_showcrossref()), "CTRL+R");
addMenuItem(toplevel, functions, "S&yntax Check", SLOT(activate_syntax()));
menu_change_value_w = addMenuItem(toplevel, functions, "Change &Value",
SLOT(
open
_change_value()), "CTRL+Q");
SLOT(
activate
_change_value()), "CTRL+Q");
addMenuItem(
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,
// Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel(fl("value > "));
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&cmd_recall);
cmd_entry->set_hide_on_esc(true);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(valchanged_cmd_entry()));
QObject::connect(
...
...
@@ -2239,6 +2233,7 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name,
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox1 = new QVBoxLayout();
vbox1->addWidget(menu_bar);
...
...
wb/lib/wb/qt/wb_wtt_qt.h
View file @
67899f69
...
...
@@ -200,7 +200,9 @@ public:
virtual
void
set_twowindows
(
int
two
,
int
display_wnav
,
int
display_wnavnode
);
virtual
void
message
(
char
severity
,
const
char
*
message
);
virtual
void
set_prompt
(
const
char
*
prompt
);
virtual
void
open_change_value
();
virtual
void
close_change_value
();
virtual
void
open_change_name
();
virtual
void
watt_new
(
pwr_tAttrRef
aref
);
virtual
void
wda_new
(
pwr_tOid
oid
);
virtual
Ge
*
ge_new
(
char
*
graphname
);
...
...
@@ -241,9 +243,6 @@ public slots:
void
set_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_command
();
void
activate_print
();
...
...
wb/lib/wb/src/wb_wtt.cpp
View file @
67899f69
...
...
@@ -892,6 +892,7 @@ void Wtt::close(void* ctx)
void
Wtt
::
change_value
(
void
*
ctx
)
{
fprintf
(
stderr
,
"Wtt::change_value
\n
"
);
((
Wtt
*
)
ctx
)
->
open_change_value
();
}
...
...
xtt/exe/rt_xtt/qt/rt_xtt_qt.cqt
View file @
67899f69
...
...
@@ -717,20 +717,18 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts)
// Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_recall = new CoWowRecall();
value_recall = new CoWowRecall();
cmd_entry = new CoWowEntryQt(cmd_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editing_finished()), toplevel,
SLOT(valchanged_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
statusbar->show();
...
...
xtt/lib/ge/qt/ge_attr_qt.cqt
View file @
67899f69
...
...
@@ -363,17 +363,15 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type,
QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(attr_activate_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout();
vbox->setMenuBar(menu_bar);
...
...
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
View file @
67899f69
...
...
@@ -407,17 +407,15 @@ XAttQt::XAttQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout();
vbox->setMenuBar(menu_bar);
...
...
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
View file @
67899f69
...
...
@@ -275,13 +275,9 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
// Prompt, label, input entry
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_label = new QLabel("");
cmd_label->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry()));
...
...
@@ -309,6 +305,7 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_label);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* cmd_scrolledinput_layout = new QVBoxLayout();
add_expanding(cmd_scrolledinput_layout, cmd_scrolled_buffer);
...
...
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
View file @
67899f69
...
...
@@ -534,17 +534,15 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
QStatusBar* statusbar = new QStatusBar();
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
add_expanding(statusbar, cmd_entry);
statusbar->setFixedHeight(25);
QVBoxLayout* vbox = new QVBoxLayout();
vbox->setMenuBar(menu_bar);
...
...
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