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
44814a41
Commit
44814a41
authored
Mar 07, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android app, AppLink object handles, class help and URL's
parent
3481feb2
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
583 additions
and
72 deletions
+583
-72
java/aapp/app/src/AGraphInfo.java
java/aapp/app/src/AGraphInfo.java
+14
-11
java/aapp/app/src/AXttItemAttrObject.java
java/aapp/app/src/AXttItemAttrObject.java
+7
-0
java/aapp/app/src/AXttItemObject.java
java/aapp/app/src/AXttItemObject.java
+3
-0
java/aapp/app/src/OpwinCmn.java
java/aapp/app/src/OpwinCmn.java
+10
-3
java/aapp/jopg/src/GlowDraw.java
java/aapp/jopg/src/GlowDraw.java
+7
-0
java/aapp/jopg/src/GlowDrawIfc.java
java/aapp/jopg/src/GlowDrawIfc.java
+1
-1
java/aapp/jopg/src/GrowFrame.java
java/aapp/jopg/src/GrowFrame.java
+1
-0
java/aapp/pwrxtt/src/MainActivity.java
java/aapp/pwrxtt/src/MainActivity.java
+528
-57
java/aapp/res/menu/activity_main.xml
java/aapp/res/menu/activity_main.xml
+4
-0
java/jpwr/jopg/src/GrowCtx.java
java/jpwr/jopg/src/GrowCtx.java
+6
-0
java/jpwr/rt/src/Pwrb.java
java/jpwr/rt/src/Pwrb.java
+2
-0
No files found.
java/aapp/app/src/AGraphInfo.java
View file @
44814a41
...
...
@@ -3,15 +3,18 @@ package jpwr.app;
import
android.graphics.Bitmap
;
public
class
AGraphInfo
{
public
Bitmap
bpm
;
public
Bitmap
bpmInverted
;
public
String
graph
;
public
String
text
;
public
int
iconX
;
public
int
iconY
;
public
int
iconWidth
;
public
int
iconHeight
;
public
int
textX
;
public
int
textY
;
public
boolean
inverted
=
false
;
public
static
final
int
TYPE_GRAPH
=
0
;
public
static
final
int
TYPE_LINK
=
1
;
public
int
type
;
public
Bitmap
bpm
;
public
Bitmap
bpmInverted
;
public
String
graph
;
public
String
text
;
public
int
iconX
;
public
int
iconY
;
public
int
iconWidth
;
public
int
iconHeight
;
public
int
textX
;
public
int
textY
;
public
boolean
inverted
=
false
;
}
java/aapp/app/src/AXttItemAttrObject.java
View file @
44814a41
...
...
@@ -12,6 +12,8 @@ public class AXttItemAttrObject extends AXttItemBase {
int
flags
;
int
type
;
PwrtAttrRef
aref
;
int
classid
;
AXttItemAttrObject
(
AXtt
axtt
,
PwrtObjid
objid
,
String
name
,
String
fullName
,
int
flags
,
int
type
,
...
...
@@ -30,6 +32,8 @@ public class AXttItemAttrObject extends AXttItemBase {
CdhrTypeId
cr
=
axtt
.
gdh
.
getAttrRefTid
(
ar
.
aref
);
if
(
cr
.
evenSts
())
return
;
classid
=
cr
.
typeId
;
CdhrObjid
coidret
=
axtt
.
gdh
.
classIdToObjid
(
cr
.
typeId
);
if
(
coidret
.
evenSts
())
return
;
...
...
@@ -110,4 +114,7 @@ public class AXttItemAttrObject extends AXttItemBase {
public
PwrtAttrRef
getAttrRef
()
{
return
aref
;
}
public
int
getClassId
()
{
return
classid
;
}
}
java/aapp/app/src/AXttItemObject.java
View file @
44814a41
...
...
@@ -229,4 +229,7 @@ public class AXttItemObject extends AXttItemBase {
}
}
public
int
getClassId
()
{
return
classid
;
}
}
java/aapp/app/src/OpwinCmn.java
View file @
44814a41
...
...
@@ -116,9 +116,16 @@ public class OpwinCmn implements PlowCmnIfc {
switch
(
action
)
{
case
PlowCmnIfc
.
ACTION_UP
:
if
(
currentGraph
!=
null
)
{
String
cmd
=
"open graph "
+
currentGraph
.
graph
;
if
(
Math
.
abs
(
fx
-
downX
)
<
10
&&
Math
.
abs
(
fy
-
downY
)
<
10
)
appl
.
command
(
cmd
);
if
(
currentGraph
.
type
==
AGraphInfo
.
TYPE_GRAPH
)
{
String
cmd
=
"open graph "
+
currentGraph
.
graph
;
if
(
Math
.
abs
(
fx
-
downX
)
<
10
&&
Math
.
abs
(
fy
-
downY
)
<
10
)
appl
.
command
(
cmd
);
}
else
if
(
currentGraph
.
type
==
AGraphInfo
.
TYPE_LINK
)
{
String
cmd
=
new
String
(
"open url \""
+
currentGraph
.
graph
+
"\""
);
if
(
Math
.
abs
(
fx
-
downX
)
<
10
&&
Math
.
abs
(
fy
-
downY
)
<
10
)
appl
.
command
(
cmd
);
}
currentGraph
.
inverted
=
false
;
currentGraph
=
null
;
}
...
...
java/aapp/jopg/src/GlowDraw.java
View file @
44814a41
...
...
@@ -536,6 +536,13 @@ public class GlowDraw implements GlowDrawIfc {
return
1
;
}
public
void
set_clip
()
{
if
(
clipCount
>
0
)
{
canvas
.
clipRect
(
clip_x1
[
clipCount
-
1
],
clip_y1
[
clipCount
-
1
],
clip_x2
[
clipCount
-
1
],
clip_y2
[
clipCount
-
1
],
Region
.
Op
.
REPLACE
);
}
}
public
void
reset_clip_rectangle
()
{
if
(
clipCount
==
0
)
{
System
.
out
.
println
(
"Clip mismatch"
);
...
...
java/aapp/jopg/src/GlowDrawIfc.java
View file @
44814a41
...
...
@@ -36,7 +36,6 @@
package
jpwr.jopg
;
import
java.awt.*
;
import
android.graphics.Canvas
;
...
...
@@ -63,4 +62,5 @@ public interface GlowDrawIfc {
public
int
getColor
(
int
gc_type
);
public
int
set_clip_rectangle
(
int
x1
,
int
y1
,
int
x2
,
int
y2
);
public
void
reset_clip_rectangle
();
public
void
set_clip
();
}
java/aapp/jopg/src/GrowFrame.java
View file @
44814a41
...
...
@@ -87,6 +87,7 @@ public class GrowFrame implements GraphApplIfc {
public
boolean
isAuthorized
(
int
access
)
{
return
false
;
}
public
void
openPopupMenu
(
String
object
,
double
x
,
double
y
)
{}
}
...
...
java/aapp/pwrxtt/src/MainActivity.java
View file @
44814a41
This diff is collapsed.
Click to expand it.
java/aapp/res/menu/activity_main.xml
View file @
44814a41
...
...
@@ -70,6 +70,10 @@
android:id=
"@+id/alarmack_option"
android:title=
"Alarm Acknowledge"
android:icon=
"@drawable/xnav_openobject"
/>
<item
android:id=
"@+id/helpclass_option"
android:title=
"Help Class"
android:icon=
"@drawable/xnav_openobject"
/>
<item
android:id=
"@+id/changevalue_option"
android:title=
"Change Value"
/>
...
...
java/jpwr/jopg/src/GrowCtx.java
View file @
44814a41
...
...
@@ -50,6 +50,7 @@ public class GrowCtx implements GrowCtxIfc {
double
node_move_last_y
;
double
slider_cursor_offset
;
boolean
trace_started
=
false
;
boolean
drawing
=
false
;
public
GrowCtx
(
GrowApplIfc
appl
)
{
cmn
=
new
GrowCmn
(
this
,
appl
);
...
...
@@ -366,6 +367,7 @@ public class GrowCtx implements GrowCtxIfc {
}
public
void
draw
()
{
drawing
=
true
;
// Draw background color
// draw.fillRect(0, 0, cmn.mw.window_width, cmn.mw.window_height, background_color);
// Draw connections
...
...
@@ -378,10 +380,14 @@ public class GrowCtx implements GrowCtxIfc {
if
(
((
GlowArrayElem
)
cmn
.
a
.
get
(
i
)).
type
()
!=
Glow
.
eObjectType_Con
)
((
GlowArrayElem
)
cmn
.
a
.
get
(
i
)).
draw
();
}
drawing
=
false
;
}
public
void
draw
(
double
ll_x
,
double
ll_y
,
double
ur_x
,
double
ur_y
)
{
// TODO
if
(
drawing
)
return
;
for
(
int
i
=
0
;
i
<
cmn
.
a
.
size
();
i
++)
{
if
(
((
GlowArrayElem
)
cmn
.
a
.
get
(
i
)).
type
()
==
Glow
.
eObjectType_Con
)
((
GlowArrayElem
)
cmn
.
a
.
get
(
i
)).
draw
();
...
...
java/jpwr/rt/src/Pwrb.java
View file @
44814a41
...
...
@@ -70,6 +70,7 @@ public class Pwrb {
public
static
final
int
cClass_ApDistribute
=
133232
;
public
static
final
int
cClass_AppGraph
=
135960
;
public
static
final
int
cClass_ApplDistribute
=
131208
;
public
static
final
int
cClass_AppLink
=
136000
;
public
static
final
int
cClass_ASup
=
131216
;
public
static
final
int
cClass_Av
=
131224
;
public
static
final
int
cClass_AvArea
=
131232
;
...
...
@@ -318,4 +319,5 @@ public class Pwrb {
public
static
final
int
cClass_WebGraph
=
133472
;
public
static
final
int
cClass_WebLink
=
133480
;
public
static
final
int
cClass_xor
=
133136
;
public
static
final
int
cClass_XttGraph
=
133464
;
}
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