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
4684e62c
Commit
4684e62c
authored
Jun 29, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function for double and half scale in ge
parent
77194615
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+7
-1
xtt/lib/glow/src/glow_growapi.h
xtt/lib/glow/src/glow_growapi.h
+3
-1
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+9
-1
xtt/lib/glow/src/glow_growctx.h
xtt/lib/glow/src/glow_growctx.h
+3
-1
No files found.
xtt/lib/glow/src/glow_growapi.cpp
View file @
4684e62c
/*
* Proview $Id: glow_growapi.cpp,v 1.
29 2007-06-15 11:33:55
claes Exp $
* Proview $Id: glow_growapi.cpp,v 1.
30 2007-06-29 09:32:16
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -4398,6 +4398,12 @@ int grow_GetNodeClassAnnotBackground( grow_tNodeClass nodeclass, glow_eDrawType
return
((
GlowNodeClass
*
)
nodeclass
)
->
get_annot_background
(
0
,
0
,
background
);
}
void
grow_SetSelectScale
(
grow_tCtx
ctx
,
double
scale_x
,
double
scale_y
,
glow_eScaleType
type
)
{
ctx
->
set_select_scale
(
scale_x
,
scale_y
,
type
);
}
/*@}*/
...
...
xtt/lib/glow/src/glow_growapi.h
View file @
4684e62c
/*
* Proview $Id: glow_growapi.h,v 1.2
4 2007-05-07 14:35:03
claes Exp $
* Proview $Id: glow_growapi.h,v 1.2
5 2007-06-29 09:32:16
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2842,6 +2842,8 @@ extern "C" {
void
grow_GetOwner
(
grow_tCtx
ctx
,
char
*
owner
);
void
grow_SetOwner
(
grow_tCtx
ctx
,
char
*
owner
);
int
grow_GetNodeClassAnnotBackground
(
grow_tNodeClass
nodeclass
,
glow_eDrawType
*
background
);
void
grow_SetSelectScale
(
grow_tCtx
ctx
,
double
scale_x
,
double
scale_y
,
glow_eScaleType
type
);
/*@}*/
#if defined __cplusplus
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
4684e62c
/*
* Proview $Id: glow_growctx.cpp,v 1.2
3 2007-06-15 11:34:43
claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.2
4 2007-06-29 09:32:16
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2858,6 +2858,14 @@ void GrowCtx::set_select_textfont( glow_eFont font)
}
}
void
GrowCtx
::
set_select_scale
(
double
scale_x
,
double
scale_y
,
glow_eScaleType
type
)
{
for
(
int
i
=
0
;
i
<
a_sel
.
size
();
i
++
)
{
((
GrowText
*
)
a_sel
[
i
])
->
store_transform
();
((
GrowText
*
)
a_sel
[
i
])
->
set_scale
(
scale_x
,
scale_y
,
0
,
0
,
type
);
}
}
void
GrowCtx
::
set_move_restrictions
(
glow_eMoveRestriction
restriction
,
double
max_limit
,
double
min_limit
,
GlowArrayElem
*
object
)
{
...
...
xtt/lib/glow/src/glow_growctx.h
View file @
4684e62c
/*
* Proview $Id: glow_growctx.h,v 1.1
0 2007-05-07 14:35:03
claes Exp $
* Proview $Id: glow_growctx.h,v 1.1
1 2007-06-29 09:32:16
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -378,6 +378,8 @@ class GrowCtx : public GlowCtx {
/*! \param font Font. */
void
set_select_textfont
(
glow_eFont
font
);
void
set_select_scale
(
double
scale_x
,
double
scale_y
,
glow_eScaleType
type
);
//! Set background color of the window.
/*! \param color Background color. */
void
set_background
(
glow_eDrawType
color
);
...
...
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