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
55c43b58
Commit
55c43b58
authored
Aug 28, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed Watt dialog.
parent
17941b95
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
6 deletions
+75
-6
sev/exe/sev_xtt/qt/sev_xtt_qt.cpp
sev/exe/sev_xtt/qt/sev_xtt_qt.cpp
+1
-0
src/lib/rt/src/rt_plc_macro.h
src/lib/rt/src/rt_plc_macro.h
+71
-0
wb/lib/wb/qt/wb_watt_qt.cqt
wb/lib/wb/qt/wb_watt_qt.cqt
+2
-2
xtt/lib/flow/qt/flow_draw_qt.cqt
xtt/lib/flow/qt/flow_draw_qt.cqt
+1
-4
No files found.
sev/exe/sev_xtt/qt/sev_xtt_qt.cpp
View file @
55c43b58
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include "co_error.h"
#include "co_error.h"
#include "cow_qt_helpers.h"
#include "cow_style_qt.h"
#include "cow_style_qt.h"
#include "xtt_tbl_qt.h"
#include "xtt_tbl_qt.h"
...
...
src/lib/rt/src/rt_plc_macro.h
0 → 100644
View file @
55c43b58
/*
* ProviewR Open Source Process Control.
* Copyright (C) 2005-2018 SSAB EMEA AB.
*
* This file is part of ProviewR.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ProviewR. If not, see <http://www.gnu.org/licenses/>
*
* Linking ProviewR statically or dynamically with other modules is
* making a combined work based on ProviewR. Thus, the terms and
* conditions of the GNU General Public License cover the whole
* combination.
*
* In addition, as a special exception, the copyright holders of
* ProviewR give you permission to, from the build function in the
* ProviewR Configurator, combine ProviewR with modules generated by the
* ProviewR PLC Editor to a PLC program, regardless of the license
* terms of these modules. You may copy and distribute the resulting
* combined work under the terms of your choice, provided that every
* copy of the combined work is accompanied by a complete copy of
* the source code of ProviewR (the version used to produce the
* combined work), being distributed under the terms of the GNU
* General Public License plus this exception.
*/
#include <math.h>
#include <float.h>
#include "pwr.h"
#include "pwr_systemclasses.h"
#include "pwr_baseclasses.h"
#include "co_time.h"
#include "rt_lck.h"
#include "rt_plc.h"
#include "rt_plc_rt.h"
#include "rt_plc_dirlink.h"
#include "rt_plc_ioarea.h"
#include "rt_plc_timer.h"
#include "rt_plc_arithm.h"
#include "rt_plc_io.h"
#include "rt_plc_pid.h"
#include "rt_plc_data.h"
#include "rt_plc_drive.h"
#include "rt_plc_macro_logic.h"
#include "rt_plc_macro_io.h"
#include "rt_plc_macro_grafcet.h"
#include "rt_plc_macro_sup.h"
#include "rt_plc_macro_div.h"
#include "rt_plc_macro_mps.h"
#include "rt_plc_macro_string.h"
#include "rt_plc_macro_time.h"
#include "pwr_nmpsclasses.h"
#include "nmps_plc_macro.h"
#include "nmps.h"
#include "pwr_profibusclasses.h"
#include "pwr_remoteclasses.h"
#include "remote_plc_macro.h"
#include "pwr_basecomponentclasses.h"
#include "rt_plc_bcomp.h"
#include "ra_plc_user.h"
wb/lib/wb/qt/wb_watt_qt.cqt
View file @
55c43b58
...
@@ -260,8 +260,6 @@ void WAttQt::change_value_close()
...
@@ -260,8 +260,6 @@ void WAttQt::change_value_close()
void WAttQtWidget::activate_cmd_entry()
void WAttQtWidget::activate_cmd_entry()
{
{
watt->wattnav->set_inputfocus();
char* text = qPrintableLatin1(watt->cmd_entry->text());
char* text = qPrintableLatin1(watt->cmd_entry->text());
if (watt->input_open) {
if (watt->input_open) {
...
@@ -279,6 +277,8 @@ void WAttQtWidget::activate_cmd_entry()
...
@@ -279,6 +277,8 @@ void WAttQtWidget::activate_cmd_entry()
watt->cmd_prompt->setVisible(false);
watt->cmd_prompt->setVisible(false);
watt->cmd_entry->setVisible(false);
watt->cmd_entry->setVisible(false);
watt->wattnav->set_inputfocus();
if (!text) {
if (!text) {
watt->message('E', "Input error, invalid character");
watt->message('E', "Input error, invalid character");
}
}
...
...
xtt/lib/flow/qt/flow_draw_qt.cqt
View file @
55c43b58
...
@@ -1599,6 +1599,7 @@ bool FlowDrawQt::draw_timer_cb()
...
@@ -1599,6 +1599,7 @@ bool FlowDrawQt::draw_timer_cb()
(timer_cb->callback_func)(timer_cb->ctx);
(timer_cb->callback_func)(timer_cb->ctx);
draw_ctx->toplevel->update();
draw_ctx->toplevel->update();
delete timer_cb->timer_id;
delete timer_cb;
delete timer_cb;
return FALSE;
return FALSE;
}
}
...
@@ -1632,10 +1633,6 @@ void FlowDrawQt::event_timer(QMouseEvent* event, QWidget *target)
...
@@ -1632,10 +1633,6 @@ void FlowDrawQt::event_timer(QMouseEvent* event, QWidget *target)
void FlowDrawQt::set_timer(
void FlowDrawQt::set_timer(
FlowCtx* ctx, int time_ms, void (*callback_func)(FlowCtx* ctx), void** id)
FlowCtx* ctx, int time_ms, void (*callback_func)(FlowCtx* ctx), void** id)
{
{
if (timer_cb) {
delete timer_cb->timer_id;
delete timer_cb;
}
timer_cb = new flow_draw_sTimerCb();
timer_cb = new flow_draw_sTimerCb();
timer_cb->ctx = ctx;
timer_cb->ctx = ctx;
timer_cb->callback_func = callback_func;
timer_cb->callback_func = callback_func;
...
...
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