23 |
#include "arshell.h" |
#include "arshell.h" |
24 |
|
|
25 |
void |
void |
26 |
arshell_lower_mainwindow_cb() |
arshell_lower_mainwindow_cb () |
27 |
{ |
{ |
28 |
XLowerWindow(antiright.display, XtWindow(antiright.parent_widget)); |
XLowerWindow (antiright.display, XtWindow (antiright.parent_widget)); |
29 |
} |
} |
30 |
|
|
31 |
void |
void |
32 |
arshell_layout_mainwindow() |
arshell_layout_mainwindow () |
33 |
{ |
{ |
34 |
arshell_setup_work_window(); |
arshell_setup_work_window (); |
35 |
arshell_setup_menubar(); |
arshell_setup_menubar (); |
36 |
arshell_setup_message_window(); |
arshell_setup_message_window (); |
37 |
} |
} |
38 |
|
|
39 |
void |
void |
40 |
arshell_set_rows(int *counter_int, char **argv) |
arshell_set_rows (int *counter_int, char **argv) |
41 |
{ |
{ |
42 |
(*counter_int)++; |
(*counter_int)++; |
43 |
arshell.gui.layout.rows_int=atoi(argv[(*counter_int)]); |
arshell.gui.layout.rows_int = atoi (argv[(*counter_int)]); |
44 |
arshell.gui.layout.row_counter_int=arshell.gui.layout.rows_int; |
arshell.gui.layout.row_counter_int = arshell.gui.layout.rows_int; |
45 |
} |
} |
46 |
|
|
47 |
void |
void |
48 |
arshell_initialize_row_manager() |
arshell_initialize_row_manager () |
49 |
{ |
{ |
50 |
ARCLARG; |
ARCLARG; |
51 |
antiright_set(XmNorientation, XmHORIZONTAL); |
antiright_set (XmNorientation, XmHORIZONTAL); |
52 |
antiright_set(XmNmarginWidth, 0); |
antiright_set (XmNmarginWidth, 0); |
53 |
antiright_set(XmNmarginHeight, 0); |
antiright_set (XmNmarginHeight, 0); |
54 |
antiright_set(XmNpacking, XmPACK_TIGHT); |
antiright_set (XmNpacking, XmPACK_TIGHT); |
55 |
antiright_set(XmNspacing, 0); |
antiright_set (XmNspacing, 0); |
56 |
arshell.gui.layout.row_manager_widget= |
arshell.gui.layout.row_manager_widget = |
57 |
antiright_row(arshell.gui.widgets.row); |
antiright_row (arshell.gui.widgets.row); |
58 |
} |
} |
59 |
|
|
60 |
void |
void |
61 |
arshell_initialize_row_manager_if_necessary() |
arshell_initialize_row_manager_if_necessary () |
62 |
{ |
{ |
63 |
if(arshell.gui.layout.row_manager_widget == NULL) |
if (arshell.gui.layout.row_manager_widget == NULL) |
64 |
{ |
{ |
65 |
arshell_initialize_row_manager(); |
arshell_initialize_row_manager (); |
66 |
arshell_create_new_row(); |
arshell_create_new_row (); |
67 |
} |
} |
68 |
} |
} |
69 |
|
|
70 |
void |
void |
71 |
arshell_create_new_row() |
arshell_create_new_row () |
72 |
{ |
{ |
73 |
ARCLARG; |
ARCLARG; |
74 |
antiright_set(XmNorientation, XmVERTICAL); |
antiright_set (XmNorientation, XmVERTICAL); |
75 |
antiright_set(XmNmarginWidth, 0); |
antiright_set (XmNmarginWidth, 0); |
76 |
antiright_set(XmNmarginHeight, 0); |
antiright_set (XmNmarginHeight, 0); |
77 |
antiright_set(XmNpacking, XmPACK_TIGHT); |
antiright_set (XmNpacking, XmPACK_TIGHT); |
78 |
antiright_set(XmNspacing, 0); |
antiright_set (XmNspacing, 0); |
79 |
assert(arshell.gui.layout.row_manager_widget); |
assert (arshell.gui.layout.row_manager_widget); |
80 |
arshell.gui.layout.row_widget= |
arshell.gui.layout.row_widget = |
81 |
antiright_row(arshell.gui.layout.row_manager_widget); |
antiright_row (arshell.gui.layout.row_manager_widget); |
82 |
arshell.gui.layout.row_counter_int=arshell.gui.layout.rows_int; |
arshell.gui.layout.row_counter_int = arshell.gui.layout.rows_int; |
83 |
} |
} |
84 |
|
|
85 |
void |
void |
86 |
arshell_create_new_row_if_necessary() |
arshell_create_new_row_if_necessary () |
87 |
{ |
{ |
88 |
if(arshell.gui.layout.row_counter_int==0) |
if (arshell.gui.layout.row_counter_int == 0) |
89 |
arshell_create_new_row(); |
arshell_create_new_row (); |
90 |
} |
} |
91 |
|
|
92 |
void |
void |
93 |
arshell_row_layout() |
arshell_row_layout () |
94 |
{ |
{ |
95 |
arshell_initialize_row_manager_if_necessary(); |
arshell_initialize_row_manager_if_necessary (); |
96 |
arshell_create_new_row_if_necessary(); |
arshell_create_new_row_if_necessary (); |
97 |
arshell.gui.layout.row_counter_int--; |
arshell.gui.layout.row_counter_int--; |
98 |
} |
} |
99 |
|
|
100 |
void |
void |
101 |
arshell_initialize_layout_values() |
arshell_initialize_layout_values () |
102 |
{ |
{ |
103 |
arshell.gui.layout.row_manager_widget=NULL; |
arshell.gui.layout.row_manager_widget = NULL; |
104 |
arshell.gui.layout.row_widget=NULL; |
arshell.gui.layout.row_widget = NULL; |
105 |
arshell.gui.layout.row_counter_int=0; |
arshell.gui.layout.row_counter_int = 0; |
106 |
arshell.gui.layout.rows_int=8; |
arshell.gui.layout.rows_int = 8; |
107 |
} |
} |