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
d98ce426
Commit
d98ce426
authored
Jun 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Login added
parent
2ffdd2dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
7 deletions
+111
-7
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
+88
-1
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.h
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.h
+3
-1
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
+13
-3
xtt/lib/xtt/gtk/xtt_xnav_gtk.h
xtt/lib/xtt/gtk/xtt_xnav_gtk.h
+7
-2
No files found.
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
View file @
d98ce426
/*
* Proview $Id: rt_xtt_gtk.cpp,v 1.1
4 2008-06-03 06:12:43
claes Exp $
* Proview $Id: rt_xtt_gtk.cpp,v 1.1
5 2008-06-24 08:05:25
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -222,6 +222,9 @@ void XttGtk::activate_change_value( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
open_change_value
();
}
...
...
@@ -229,6 +232,9 @@ void XttGtk::activate_command( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
if
(
xtt
->
command_open
)
{
g_object_set
(
((
XttGtk
*
)
xtt
)
->
cmd_input
,
"visible"
,
FALSE
,
NULL
);
xtt
->
set_prompt
(
""
);
...
...
@@ -260,13 +266,33 @@ void XttGtk::activate_print( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_print
();
}
void
XttGtk
::
activate_login
(
GtkWidget
*
w
,
gpointer
data
)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
xtt
->
xnav
->
open_login
();
}
void
XttGtk
::
activate_logout
(
GtkWidget
*
w
,
gpointer
data
)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
xtt
->
xnav
->
logout
();
}
void
XttGtk
::
activate_find
(
GtkWidget
*
w
,
gpointer
data
)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_find
();
}
...
...
@@ -274,6 +300,9 @@ void XttGtk::activate_findregex( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_findregex
();
}
...
...
@@ -281,6 +310,9 @@ void XttGtk::activate_findnext( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_findnext
();
}
...
...
@@ -288,6 +320,9 @@ void XttGtk::activate_collapse( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_collapse
();
}
...
...
@@ -295,6 +330,9 @@ void XttGtk::activate_openobject( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_openobject
();
}
...
...
@@ -302,6 +340,9 @@ void XttGtk::activate_openplc( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_openplc
();
}
...
...
@@ -309,6 +350,9 @@ void XttGtk::activate_showcrossref( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
xnav
->
show_crossref
();
}
...
...
@@ -316,6 +360,9 @@ void XttGtk::activate_opengraph( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_opengraph
();
}
...
...
@@ -323,6 +370,9 @@ void XttGtk::activate_collect_insert( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_collect_insert
();
}
...
...
@@ -330,6 +380,9 @@ void XttGtk::activate_collect_show( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
xnav
->
collect_show
();
}
...
...
@@ -337,6 +390,9 @@ void XttGtk::activate_collect_remove( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
xnav
->
collect_remove
();
}
...
...
@@ -344,6 +400,9 @@ void XttGtk::activate_collect_clear( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
xnav
->
collect_clear
();
}
...
...
@@ -351,6 +410,9 @@ void XttGtk::activate_advanceduser( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_advanceduser
();
}
...
...
@@ -379,6 +441,9 @@ void XttGtk::activate_help( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_help
();
}
...
...
@@ -386,6 +451,9 @@ void XttGtk::activate_help_project( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_help_project
();
}
...
...
@@ -393,6 +461,9 @@ void XttGtk::activate_help_proview( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
activate_help_proview
();
}
...
...
@@ -400,6 +471,9 @@ void XttGtk::activate_back( GtkWidget *w, gpointer data)
{
Xtt
*
xtt
=
(
Xtt
*
)
data
;
if
(
!
xtt
->
xnav
->
is_authorized
())
return
;
xtt
->
xnav
->
brow_push
();
}
...
...
@@ -536,6 +610,14 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
gtk_image_new_from_stock
(
"gtk-print"
,
GTK_ICON_SIZE_MENU
));
g_signal_connect
(
file_print
,
"activate"
,
G_CALLBACK
(
XttGtk
::
activate_print
),
this
);
GtkWidget
*
file_login
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"_Login"
));
g_signal_connect
(
file_login
,
"activate"
,
G_CALLBACK
(
XttGtk
::
activate_login
),
this
);
GtkWidget
*
file_logout
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"Log_Out"
));
g_signal_connect
(
file_logout
,
"activate"
,
G_CALLBACK
(
XttGtk
::
activate_logout
),
this
);
GtkWidget
*
file_close
=
gtk_image_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"_Close"
));
gtk_image_menu_item_set_image
(
GTK_IMAGE_MENU_ITEM
(
file_close
),
gtk_image_new_from_stock
(
"gtk-close"
,
GTK_ICON_SIZE_MENU
));
...
...
@@ -545,6 +627,8 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
GtkMenu
*
file_menu
=
(
GtkMenu
*
)
g_object_new
(
GTK_TYPE_MENU
,
NULL
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_menu
),
file_print
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_menu
),
file_login
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_menu
),
file_logout
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
file_menu
),
file_close
);
GtkWidget
*
file
=
gtk_menu_item_new_with_mnemonic
(
CoWowGtk
::
translate_utf8
(
"_File"
));
...
...
@@ -846,6 +930,9 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
xhelp
->
open_URL_cb
=
open_URL_cb
;
CoXHelp
::
set_default
(
xhelp
);
if
(
!
xnav
->
is_authorized
(
pwr_mAccess_AllRt
,
0
))
xnav
->
open_login
();
wow
=
new
CoWowGtk
(
toplevel
);
if
(
!
quiet
)
wow
->
DisplayWarranty
();
...
...
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.h
View file @
d98ce426
/*
* Proview $Id: rt_xtt_gtk.h,v 1.
1 2007-01-04 08:40:24
claes Exp $
* Proview $Id: rt_xtt_gtk.h,v 1.
2 2008-06-24 08:05:25
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -76,6 +76,8 @@ class XttGtk : public Xtt {
static
void
activate_command
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_exit
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_print
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_login
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_logout
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_find
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_findregex
(
GtkWidget
*
w
,
gpointer
data
);
static
void
activate_findnext
(
GtkWidget
*
w
,
gpointer
data
);
...
...
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
View file @
d98ce426
/*
* Proview $Id: xtt_xnav_gtk.cpp,v 1.
5 2008-04-25 11:28:54
claes Exp $
* Proview $Id: xtt_xnav_gtk.cpp,v 1.
6 2008-06-24 08:09:56
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -51,6 +51,7 @@ typedef void *Widget;
#include "co_error.h"
#include "co_xhelp.h"
#include "co_wow_gtk.h"
#include "co_login_gtk.h"
#include "xtt_xnav_gtk.h"
#include "xtt_item.h"
#include "xtt_menu.h"
...
...
@@ -254,10 +255,19 @@ GeCurve *XNavGtk::gecurve_new( char *name, char *filename, GeCurveData *data,
}
XttFileview
*
XNavGtk
::
fileview_new
(
pwr_tOid
oid
,
char
*
title
,
char
*
dir
,
char
*
pattern
,
int
type
,
char
*
target_attr
,
char
*
trigger_attr
)
int
type
,
char
*
target_attr
,
char
*
trigger_attr
,
char
*
filetype
)
{
return
new
XttFileviewGtk
(
this
,
parent_wid
,
oid
,
title
,
dir
,
pattern
,
type
,
target_attr
,
trigger_attr
);
trigger_attr
,
filetype
);
}
CoLogin
*
XNavGtk
::
login_new
(
char
*
name
,
char
*
groupname
,
void
(
*
bc_success
)(
void
*
),
void
(
*
bc_cancel
)(
void
*
),
pwr_tStatus
*
status
)
{
return
new
CoLoginGtk
(
this
,
parent_wid
,
name
,
groupname
,
bc_success
,
bc_cancel
,
status
);
}
void
XNavGtk
::
bell
(
int
time
)
...
...
xtt/lib/xtt/gtk/xtt_xnav_gtk.h
View file @
d98ce426
/*
* Proview $Id: xtt_xnav_gtk.h,v 1.
3 2008-04-25 11:28:54
claes Exp $
* Proview $Id: xtt_xnav_gtk.h,v 1.
4 2008-06-24 08:09:56
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -72,7 +72,12 @@ class XNavGtk : public XNav {
GeCurve
*
gecurve_new
(
char
*
name
,
char
*
filename
,
GeCurveData
*
data
,
int
pos_right
);
XttFileview
*
fileview_new
(
pwr_tOid
oid
,
char
*
title
,
char
*
dir
,
char
*
pattern
,
int
type
,
char
*
target_attr
,
char
*
trigger_attr
);
int
type
,
char
*
target_attr
,
char
*
trigger_attr
,
char
*
filetype
);
CoLogin
*
login_new
(
char
*
wl_name
,
char
*
wl_groupname
,
void
(
*
wl_bc_success
)(
void
*
),
void
(
*
wl_bc_cancel
)(
void
*
),
pwr_tStatus
*
status
);
void
bell
(
int
time
);
void
get_popup_menu
(
pwr_sAttrRef
attrref
,
xmenu_eItemType
item_type
,
...
...
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