Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
29a96183
Commit
29a96183
authored
10 years ago
by
Arthur Coolen
Browse files
Options
Downloads
Patches
Plain Diff
Task #5457:new email panel added
parent
4ec91504
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitattributes
+2
-0
2 additions, 0 deletions
.gitattributes
MAC/Navigator2/panels/Settings/mail.pnl
+265
-0
265 additions, 0 deletions
MAC/Navigator2/panels/Settings/mail.pnl
MAC/Navigator2/panels/Settings/mail.pnl.bak
+269
-0
269 additions, 0 deletions
MAC/Navigator2/panels/Settings/mail.pnl.bak
with
536 additions
and
0 deletions
.gitattributes
+
2
−
0
View file @
29a96183
...
...
@@ -3469,6 +3469,8 @@ MAC/Navigator2/panels/Processes/TBBDriver.pnl -text
MAC/Navigator2/panels/Reports/LOFAR_Query.pnl -text
MAC/Navigator2/panels/Reports/LOFAR_Reports_main.pnl -text
MAC/Navigator2/panels/Reports/LOFAR_System.pnl -text
MAC/Navigator2/panels/Settings/mail.pnl -text
MAC/Navigator2/panels/Settings/mail.pnl.bak -text
MAC/Navigator2/panels/Test/Event_Viewer.pnl -text
MAC/Navigator2/panels/Test/stringTest.pnl -text
MAC/Navigator2/panels/Test/test[!!-~]colorrange.pnl -text
...
...
This diff is collapsed.
Click to expand it.
MAC/Navigator2/panels/Settings/mail.pnl
0 → 100644
+
265
−
0
View file @
29a96183
V 11
1
LANG:1 0
PANEL,-1 -1 703 349 N "_3DFace" 0
E E E E E 1 -1 -1 0 40 40
""0 1
E "#uses \"navPanel.ctl\"
dyn_string emailAddresses;
" 0
2
"CBRef" "1"
"EClose" E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0
1
LANG:1 0
25 0
"emailTable"
""
1 40 40 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
0 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 35 MS Shell Dlg 2,14,-1,5,50,0,0,0,0,0
0 38 38 312 252
"main()
{
this.tableMode(TABLE_SELECT_MULTIPLE);
this.selectByClick(TABLE_SELECT_LINE);
dyn_string emails;
dpGet(\"__navigator.alarmSettings.emails\",emails);
this.deleteAllLines();
for(int i=1;i<=dynlen(emails);i++) {
this.appendLine(\"Email\",emails[i]);
this.lineVisible(-1);
dynAppend(emailAddresses,emails[i]);
}
}
" 0
E 1 0 1 1 0 "Email" 16 1 0 "[0s,,,ALIGNMENT_BEGINNING]" 1
LANG:1 5 Email
E
1
LANG:1 0
250
20 20 10 10
1
LANG:1 35 MS Shell Dlg 2,14,-1,5,50,0,0,0,0,0
0 0 1 1 1 7
1 0
13 1
"deleteEmail"
""
1 40 270 E E E 1 E 1 E N "_ButtonText" E N "_Button" E E
E E
1 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 38 268 112 294
T
1
LANG:1 6 Delete
"main()
{
dyn_int lines;
getValue(\"emailTable\",\"getSelectedLines\",lines);
for (int i=dynlen(lines);i>0;i--) {
// Tables start with 0 dyn_arrays start with 1!!!!!!
emailTable.deleteLineN(lines[i]);
dynRemove(emailAddresses,lines[i]+1);
}
if (dynlen(lines) > 0) {
saveEmail.enabled(TRUE);
txtSaved.visible(FALSE);
}
}" 0
E E E
14 2
"emailInput"
""
1 340 140 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
2 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 338 138 562 159
3 "0s" 0 0 0 0 0 -1 E E E
13 3
"applyEmail"
""
1 400 170 E E E 1 E 1 E N "_ButtonText" E N "_Button" E E
E E
3 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 398 168 452 194
T
1
LANG:1 5 Apply
"main()
{
if (emailInput.text() != \"\" && navFunct_checkEmailAddress(emailInput.text()) && !dynContains(emailAddresses,emailInput.text())) {
emailTable.appendLine(\"Email\",emailInput.text());
dynAppend(emailAddresses,emailInput.text());
saveEmail.enabled(TRUE);
txtSaved.visible(FALSE);
}
emailInput.text = \"\";
}" 0
E E E
13 4
"saveEmail"
""
1 120 270 E E E 0 E 1 E N "_ButtonText" E N "_Button" E E
E E
4 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 118 268 192 294
T
1
LANG:1 4 Save
"main()
{
dyn_string emails;
string aLine;
for (int i = 0; i < emailTable.lineCount(); i++) {
aLine = emailTable.getLineN(i);
dynAppend(emails,aLine);
}
dpSet(\"__navigator.alarmSettings.emails\", emails);
saveEmail.enabled(FALSE);
txtSaved.visible(TRUE);
}" 0
E E E
2 5
"PRIMITIVE_TEXT1"
""
1 390 120 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
5 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 390 120 483 133
0 2 2 "0s" 0 0 0 192 0 0 390 120 1
1
LANG:1 37 MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0
0 1
LANG:1 18 New email address:
2 6
"txtSaved"
""
1 260 270 E E E 1 E 0 E N "green" E N "_Window" E E
E E
6 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 260 270 299 286
0 2 2 "0s" 0 0 0 192 0 0 260 270 1
1
LANG:1 35 MS Shell Dlg 2,10,-1,5,75,0,0,0,0,0
0 1
LANG:1 5 saved
2 7
"PRIMITIVE_TEXT3"
""
1 20 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
7 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 20 10 369 26
0 2 2 "0s" 0 0 0 192 0 0 20 10 1
1
LANG:1 35 MS Shell Dlg 2,10,-1,5,50,0,0,0,0,0
0 1
LANG:1 64 All alarm mails will be send to the email addresses in this list
0
LAYER, 1
1
LANG:1 0
0
LAYER, 2
1
LANG:1 0
0
LAYER, 3
1
LANG:1 0
0
LAYER, 4
1
LANG:1 0
0
LAYER, 5
1
LANG:1 0
0
LAYER, 6
1
LANG:1 0
0
LAYER, 7
1
LANG:1 0
0
0
This diff is collapsed.
Click to expand it.
MAC/Navigator2/panels/Settings/mail.pnl.bak
0 → 100644
+
269
−
0
View file @
29a96183
V 11
1
LANG:1 0
PANEL,-1 -1 703 349 N "_3DFace" 0
E E E E E 1 -1 -1 0 40 40
""0 1
E "#uses \"navPanel.ctl\"
dyn_string emailAddresses;
" 0
2
"CBRef" "1"
"EClose" E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0
1
LANG:1 0
25 0
"emailTable"
""
1 40 40 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
0 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 35 MS Shell Dlg 2,14,-1,5,50,0,0,0,0,0
0 38 38 312 252
"main()
{
this.tableMode(TABLE_SELECT_MULTIPLE);
this.selectByClick(TABLE_SELECT_LINE);
dyn_string emails;
dpGet(\"__navigator.alarmSettings.emails\",emails);
this.deleteAllLines();
for(int i=1;i<=dynlen(emails);i++) {
this.appendLine(\"Email\",emails[i]);
this.lineVisible(-1);
dynAppend(emailAddresses,emails[i]);
}
DebugN(\"in init emails: \", emailAddresses);
}
" 0
E 1 0 1 1 0 "Email" 16 1 0 "[0s,,,ALIGNMENT_BEGINNING]" 1
LANG:1 5 Email
E
1
LANG:1 0
250
20 20 10 10
1
LANG:1 35 MS Shell Dlg 2,14,-1,5,50,0,0,0,0,0
0 0 1 1 1 7
1 0
13 1
"deleteEmail"
""
1 40 270 E E E 1 E 1 E N "_ButtonText" E N "_Button" E E
E E
1 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 38 268 112 294
T
1
LANG:1 6 Delete
"main()
{
dyn_int lines;
getValue(\"emailTable\",\"getSelectedLines\",lines);
DebugN(\"deleting lines: \", lines);
for (int i=dynlen(lines);i>0;i--) {
// Tables start with 0 dyn_arrays start with 1!!!!!!
emailTable.deleteLineN(lines[i]);
dynRemove(emailAddresses,lines[i]+1);
}
if (dynlen(lines) > 0) {
saveEmail.enabled(TRUE);
txtSaved.visible(FALSE);
}
DebugN(\"after delete emails: \", emailAddresses);
}" 0
E E E
14 2
"emailInput"
""
1 340 140 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
2 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 338 138 562 159
3 "0s" 0 0 0 0 0 -1 E E E
13 3
"applyEmail"
""
1 400 170 E E E 1 E 1 E N "_ButtonText" E N "_Button" E E
E E
3 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 398 168 452 194
T
1
LANG:1 5 Apply
"main()
{
if (emailInput.text() != \"\" && navFunct_checkEmailAddress(emailInput.text()) && !dynContains(emailAddresses,emailInput.text())) {
emailTable.appendLine(\"Email\",emailInput.text());
dynAppend(emailAddresses,emailInput.text());
saveEmail.enabled(TRUE);
txtSaved.visible(FALSE);
}
DebugN(\"after apply emails: \", emailAddresses);
emailInput.text = \"\";
}" 0
E E E
13 4
"saveEmail"
""
1 120 270 E E E 0 E 1 E N "_ButtonText" E N "_Button" E E
E E
4 0 0 0 0 0
E E E
0
1
LANG:1 0
0
1
LANG:1 33 MS Shell Dlg,-1,11,5,50,0,0,0,0,0
0 118 268 192 294
T
1
LANG:1 4 Save
"main()
{
dyn_string emails;
string aLine;
for (int i = 0; i < emailTable.lineCount(); i++) {
aLine = emailTable.getLineN(i);
dynAppend(emails,aLine);
}
dpSet(\"__navigator.alarmSettings.emails\", emails);
saveEmail.enabled(FALSE);
txtSaved.visible(TRUE);
}" 0
E E E
2 5
"PRIMITIVE_TEXT1"
""
1 390 120 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
5 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 390 120 483 133
0 2 2 "0s" 0 0 0 192 0 0 390 120 1
1
LANG:1 37 MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0
0 1
LANG:1 18 New email address:
2 6
"txtSaved"
""
1 260 270 E E E 1 E 0 E N "green" E N "_Window" E E
E E
6 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 260 270 299 286
0 2 2 "0s" 0 0 0 192 0 0 260 270 1
1
LANG:1 35 MS Shell Dlg 2,10,-1,5,75,0,0,0,0,0
0 1
LANG:1 5 saved
2 7
"PRIMITIVE_TEXT3"
""
1 20 10 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
E E
7 0 0 0 0 0
E E E
0
1
LANG:1 0
1
"dashclr"N "_Transparent"
E E 0 1 1 2 1 E U 0 E 20 10 369 26
0 2 2 "0s" 0 0 0 192 0 0 20 10 1
1
LANG:1 35 MS Shell Dlg 2,10,-1,5,50,0,0,0,0,0
0 1
LANG:1 64 All alarm mails will be send to the email addresses in this list
0
LAYER, 1
1
LANG:1 0
0
LAYER, 2
1
LANG:1 0
0
LAYER, 3
1
LANG:1 0
0
LAYER, 4
1
LANG:1 0
0
LAYER, 5
1
LANG:1 0
0
LAYER, 6
1
LANG:1 0
0
LAYER, 7
1
LANG:1 0
0
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment