Commit 295fcdee authored by claes's avatar claes

New wizard

parent b99f7cef
This diff is collapsed.
This diff is collapsed.
/*
* Proview $Id: wb_wge.h,v 1.1 2006-02-23 14:47:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* 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 the program, if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef wb_wge_h
#define wb_wge_h
#if defined __cplusplus
extern "C" {
#endif
#ifndef pwr_h
# include "pwr.h"
#endif
class Graph;
class WGe {
public:
void *parent_ctx;
Widget parent_wid;
pwr_tAName name;
Widget grow_widget;
Widget form_widget;
Widget toplevel;
Widget nav_shell;
Widget nav_widget;
Widget menu_widget;
Graph *graph;
Widget graph_form;
pwr_tFileName filename;
int scrollbar;
int navigator;
int menu;
void *current_value_object;
void *current_confirm_object;
int value_input_open;
int confirm_open;
Widget value_input;
Widget value_dialog;
Widget confirm_widget;
Widget message_dia_widget;
int (*command_cb)(void *, char *);
void (*close_cb)(void *);
void (*help_cb)(void *, char *key);
int (*is_authorized_cb)(void *, unsigned int);
int width;
int height;
int set_focus_disabled;
XtIntervalId focus_timerid;
int modal;
int terminated;
int subwindow_release;
void pop();
void print();
int set_object_focus( char *name, int empty);
int set_folder_index( char *name, int idx);
int set_subwindow_source( char *name, char *source, int modal);
void set_subwindow_release();
WGe( Widget parent_wid, void *parent_ctx, char *name, char *filename,
int scrollbar, int menu, int navigator, int width, int height,
int x, int y, char *object_name, int modal);
~WGe();
};
#if defined __cplusplus
}
#endif
#endif
This diff is collapsed.
!
! Proview $Id: wb_wge.uil,v 1.1 2006-02-23 14:47:36 claes Exp $
! Copyright (C) 2005 SSAB Oxelsund AB.
!
! 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 the program, if not, write to the Free Software
! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
!
module wb_wge
version = 'v1.0'
names = case_sensitive
objects = {
XmSeparator = gadget ;
}
identifier
wge_ctx;
procedure
wge_activate_exit(integer);
wge_create_graph_form(integer);
wge_create_menu(integer);
wge_activate_zoom_in(integer);
wge_activate_zoom_out(integer);
wge_activate_zoom_reset(integer);
wge_activate_help(integer);
wge_create_value_input(integer);
wge_activate_value_input(integer);
wge_activate_confirm_ok(integer);
wge_activate_confirm_cancel(integer);
wge_create_message_dia(integer);
value
menu_font : font ('-*-Helvetica-Bold-R-Normal--12-*-*-*-P-*-ISO8859-1');
menu_font2 : font ('-*-Helvetica-Bold-R-Normal--14-*-*-*-P-*-ISO8859-1');
!----------------------------------------
! First declare the 'top level' widgets. These are not controlled by
! any other widgets. They are each fetched individually as needed.
!----------------------------------------
object wge_window : XmMainWindow
{
arguments
{
XmNx = 0;
XmNy = 0;
};
controls
{
XmMenuBar wge_menu;
XmForm form;
};
};
object form : XmForm
{
arguments
{
XmNwidth = 200;
XmNheight = 200;
XmNresizePolicy = XmRESIZE_NONE;
};
controls
{
XmPanedWindow graph_form;
};
};
object wge_menu : XmMenuBar
{
arguments
{
XmNorientation = XmHORIZONTAL;
XmNspacing = 15;
XmNmenuHelpWidget = XmCascadeButton help_entry;
};
controls
{
XmCascadeButton file_entry;
XmCascadeButton view_entry;
XmCascadeButton help_entry;
};
callbacks
{
MrmNcreateCallback = procedure wge_create_menu( wge_ctx);
};
};
object file_entry : XmCascadeButton
{
arguments
{
XmNlabelString = "File";
XmNfontList = menu_font;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = "Close";
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure wge_activate_exit(wge_ctx);
};
};
};
};
};
};
object view_entry : XmCascadeButton
{
arguments
{
XmNlabelString = "View";
XmNfontList = menu_font;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = "Zoom in";
XmNmnemonic = keysym('I');
XmNaccelerator = "Ctrl<Key>I";
XmNacceleratorText = compound_string('Ctrl+I');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure wge_activate_zoom_in(wge_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = "Zoom out";
XmNmnemonic = keysym('O');
XmNaccelerator = "Ctrl<Key>O";
XmNacceleratorText = compound_string('Ctrl+O');
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure wge_activate_zoom_out(wge_ctx);
};
};
XmPushButton
{
arguments
{
XmNlabelString = "Zoom reset";
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure wge_activate_zoom_reset(wge_ctx);
};
};
};
};
};
};
object help_entry : XmCascadeButton
{
arguments
{
XmNlabelString = "Help";
XmNfontList = menu_font;
};
controls
{
XmPulldownMenu
{
controls
{
XmPushButton
{
arguments
{
XmNlabelString = "Help";
XmNfontList = menu_font;
};
callbacks
{
XmNactivateCallback = procedure wge_activate_help(wge_ctx);
};
};
}; !Controls
}; !Pulldown_menu
}; !Controls
}; ! help_entry
object graph_form : XmPanedWindow
{
arguments
{
XmNleftAttachment = XmATTACH_FORM;
XmNrightAttachment = XmATTACH_FORM;
XmNbottomAttachment = XmATTACH_FORM;
XmNtopAttachment = XmATTACH_FORM;
};
controls
{
};
callbacks
{
MrmNcreateCallback = procedure wge_create_graph_form( wge_ctx);
};
};
!
!-----------------------------------------------------------------
!
! Input Dialog box
!
!________________________________________________________________
object input_dialog : XmFormDialog
{
arguments
{
XmNnoResize = true;
XmNwidth = 400;
XmNheight = 80;
XmNdefaultPosition = true;
XmNautoUnmanage = false;
XmNdialogTitle = "Value input";
! XmNdefaultButton = india_ok;
};
controls
{
XmLabel india_label;
XmText india_text;
! XmPushButton india_ok;
! XmPushButton india_cancel;
};
};
object india_label : XmLabel
{
arguments
{
XmNx = 30;
XmNy = 28;
XmNlabelString = "Enter Value";
XmNfontList = menu_font;
};
};
object india_text : XmText
{
arguments
{
XmNx = 120;
XmNy = 21;
XmNfontList = menu_font2;
};
callbacks
{
MrmNcreateCallback = procedure wge_create_value_input( wge_ctx);
XmNactivateCallback = procedure wge_activate_value_input( wge_ctx);
};
};
object india_ok : XmPushButton
{
arguments
{
XmNwidth = 80;
XmNx = 20;
XmNy = 100;
XmNlabelString = "Ok";
};
callbacks
{
! XmNactivateCallback = procedure wge_activate_india_ok( wge_ctx);
};
};
object india_cancel : XmPushButton
{
arguments
{
XmNwidth = 80;
XmNx = 280;
XmNy = 100;
XmNlabelString = "Cancel";
};
callbacks
{
! XmNactivateCallback = procedure wge_activate_india_cancel( wge_ctx);
};
};
!
! Confirm dialog
object confirm_dialog : XmQuestionDialog
{
arguments
{
XmNnoResize = true;
! XmNwidth = 400;
! XmNheight = 150;
XmNdefaultPosition = true;
XmNautoUnmanage = false;
XmNdialogTitle = "Confirm";
XmNokLabelString = "Yes";
XmNcancelLabelString = "No";
XmNhelpLabelString = "Help";
};
callbacks
{
XmNokCallback = procedure wge_activate_confirm_ok( wge_ctx);
XmNcancelCallback = procedure wge_activate_confirm_cancel( wge_ctx);
};
};
!
! Message dialog
object message_dialog : XmErrorDialog
{
arguments
{
XmNnoResize = true;
XmNdefaultPosition = true;
XmNautoUnmanage = true;
XmNdialogTitle = "Message";
XmNcancelLabelString = "Ok";
};
callbacks
{
MrmNcreateCallback = procedure wge_create_message_dia( wge_ctx);
};
};
end module;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
1
100 20
135 20
101 20
102 47
103 -86
104 7.1048
136 7.1048
105 100
106 16
107 -30
108 29.9792
109 3.2223
110 12.4621
111 0.87128
116 0
117 0
118 200
119 130
120 1
121 Claes context
122 0
126 1
127 1
128 0
129 0.3
130 1.5
131 0.8
132 3
133 2
137 4001
134
22
2200 0
2201 105
2202 wb_wiz_directoryvolume_5
2203 31
2205 0
2204
2206 0
2207
2208
2209 0
2210 0
2211 20
2212 45
2213 4
2214
pwrp_pop:
pwrp_exe:
ssab_exe:
pwr_exe:
2215 0
2236 0
2216 0
2221 0
2237 0
2238 0
2239 0
2240 0
2241 0
2242 0
2217 0
2218 0
2219 0
2220
2230 0
2231 0
2222
2223 1
2224 0.5
2232 0.5
2225 0.5
2226 0
2227
2228 0
2229 0
2233 1
2234 1
2235 0
2243 0
2244
99
123
2
3
300 pwr_smallbutton
301
2
19
1904
1900 2.4
1901 0.2
1902 1.05
1903 0.2
1908 0
1909 102
1910 102
1911 1
1915 1
1913 16
1916 2
1914 0
1918 0
1919 0
1917 0
1907 0
1906
1905
5
500 0
501 1
504 1
505 1
502
7
700 0.2
701 0.2
99
503
7
700 2.4
701 1.05
99
99
1912
28
2800 1
2801 0
2802 6.07153e-17
2803 0
2804 1
2805 -2.63678e-16
2806 0
99
99
29
2907
13
1300 1
1301 304
1306 0
1302 2
1305 1
1303
7
700 0.55
701 0.65
99
1304 0
99
2908
28
2800 1
2801 0
2802 -0.1
2803 0
2804 1
2805 0.2
2806 0
99
99
99
302 0
304 0
303
305 0
306
307
308 0
321 16
309 0
313 0
322 0
323 0
324 0
325 0
326 0
327 0
310 0
311 0
312 JopSmallbutton
314
315 1
316 1
317 0
318 0
319 0
320 0
328 0
329
1
100 1
101 1
102 33619964
103 0
99
99
99
124
2
99
125
2
19
1904
1900 29.9792
1901 3.2223
1902 10.0053
1903 0.87128
1908 0
1909 31
1910 31
1911 0
1915 1
1913 1
1916 2
1914 1
1918 0
1919 0
1917 0
1907 0
1906
1905
5
500 0
501 1
504 1
505 0
502
7
700 4.95
701 2.25
99
503
7
700 27.8
701 4.95
99
99
1912
28
2800 1.17098
2801 0
2802 -2.57405
2803 0
2804 3.38298
2805 -6.74043
2806 0
99
99
27
2703 10000
2704 31
2722 10000
2705 31
2723 10000
2706 10000
2708 0
2709 0
2710 0
2711 0
2712 0
2713 0
2714 0
2715 0
2720 0
2702 0
2701
2700
10
1000 pwr_smallbutton
1002 O36
1005
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1006 13.8603
1007 8.81648
1008 12.412
1009 11.1902
1013 13.8603
1014 8.81648
1015 12.412
1016 11.1902
1003
0
10
0
0
0
0
0
0
0
0
1004
" Quit"
1001
7
700 11.35
701 11.6
99
1010
1011
1018
1019
1020
1021
1022
1023
1024
1025
1012 0
1017 9999
1027 9999
1026 33619964
1028 0
1029
99
2707
28
2800 2.29268
2801 0
2802 8.35794
2803 0
2804 1.4375
2805 10.9027
2806 0
99
2716 0
2718
2717
2719 0
2724 0
2721
1
100 1
101 68
102 33619964
103 0
51
5100 $ccm.dv_quit##Boolean
5101 1
5102 1
99
55
5500 release subwindow pwr_wizard_frame
99
99
99
27
2703 10000
2704 31
2722 10000
2705 31
2723 10000
2706 10000
2708 0
2709 0
2710 0
2711 0
2712 0
2713 0
2714 0
2715 0
2720 0
2702 0
2701
2700
10
1000 pwr_smallbutton
1002 O37
1005
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1006 23.3104
1007 18.2665
1008 12.4621
1009 11.2402
1013 23.3104
1014 18.2665
1015 12.4621
1016 11.2402
1003
0
13
0
0
0
0
0
0
0
0
1004
" Execute"
1001
7
700 11.35
701 11.6
99
1010
1011
1018
1019
1020
1021
1022
1023
1024
1025
1012 0
1017 9999
1027 9999
1026 33619964
1028 0
1029
99
2707
28
2800 2.29268
2801 0
2802 17.8079
2803 0
2804 1.4375
2805 10.9527
2806 0
99
2716 0
2718
2717
2719 0
2724 0
2721
1
100 1
101 64
102 33619964
103 0
55
5500 release subwindow pwr_wizard_frame
99
99
99
30
3004
3000 16.65
3001 5.55
3002 2.3
3003 1.6
3008 0
3007 0
3006
3005
9
900 2
901 303
904 0
902 Press execute to end the configuration.
903
7
700 5.55
701 2.15
99
99
3009
28
2800 1
2801 0
2802 0
2803 0
2804 1
2805 0
2806 0
99
99
99
99
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment