-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathporting_existing_pvserver_to_newpvserver_qt4.txt
51 lines (40 loc) · 1.63 KB
/
porting_existing_pvserver_to_newpvserver_qt4.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
########################################################
# Porting pvserver Qt3 Version to pvserver Qt4 Version #
########################################################
pvbrowser Qt4 no longer uses Qt Designer.
Instead pvdevelop with it's integrated Designer is used.
Your old pvserver should also be running with pvbrowser Qt4.
But if you want to continue developing your existing pvserver
you have todo something.
In order to port an existing pvserver to the Qt4 version,
do the following:
# backup your existing pvserver
cd oldpvserver
pvdevelop -action=writeInitialProject oldpvserver
# this will create an initial pvserver named oldpvserver
rm -f *.ui
mv oldmask1.cpp mask1.cpp
mv oldmask1_slots.h mask1_slots.h
mv oldmask2.cpp mask2.cpp
mv oldmask2_slots.h mask2_slots.h
mv oldmask3.cpp mask3.cpp
mv oldmask3_slots.h mask3_slots.h
...
mv oldmask<N>.cpp mask<N>.cpp
mv oldmask<N>_slots.h mask<N>_slots.h
# if you have used rllib you have todo the following
pvdevelop -action=uncommentRLLIB oldpvserver
# if you have used modbus you have todo the following
pvdevelop -action=uncommentModbus oldpvserver
# if you have used SiemensTCP you have todo the following
pvdevelop -action=uncommentSiemensTCP oldpvserver
# if you have used PPI you have todo the following
pvdevelop -action=uncommentPPI oldpvserver
# now you may use pvdevelop
pvdevelop
# In the project file you have to add your masks within SOURCES and HEADERS
# within pvdevelop use Action->StartServer
# use the integrated Designer within pvdevelop
# ui files are no longer needed
We hope this is easy enough.
Yours pvbrowser community