initial commit of file from CVS for smeserver-nag on Sat Sep 7 20:45:20 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:45:20 +10:00
parent 92c36e6425
commit c74b9035ea
50 changed files with 1220 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
{
my $NagMenu = $nag{MenuArray} || "enabled"; return "" unless ($NagMenu eq "enabled");
$apps{nag} = 1;
$OUT = '';
}

View File

@@ -0,0 +1,24 @@
// 230AppRegistryNag
$this->applications['nag'] = array(
'fileroot' => dirname(__FILE__) . '/../nag',
'webroot' => $this->applications['horde']['webroot'] . '/nag',
'name' => _("Tasks"),
'status' => 'active',
'provides' => 'tasks',
'menu_parent' => 'organizing'
);
$this->applications['nag-alarms'] = array(
'status' => 'block',
'app' => 'nag',
'blockname' => 'tree_alarms',
'menu_parent' => 'nag',
);
$this->applications['nag-menu'] = array(
'status' => 'block',
'app' => 'nag',
'blockname' => 'tree_menu',
'menu_parent' => 'nag',
);

View File

@@ -0,0 +1,4 @@
//00Header
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Horde: nag/config/conf.xml,v 1.25.10.2 2007/12/20 14:23:06 jan Exp $

View File

@@ -0,0 +1,5 @@
//100StorageSettings
$conf['storage']['params']['table'] = 'nag_tasks';
$conf['storage']['params']['driverconfig'] = 'horde';
$conf['storage']['driver'] = 'sql';

View File

@@ -0,0 +1,3 @@
//110PrintSettings
$conf['menu']['print'] = true;

View File

@@ -0,0 +1,3 @@
//115ImportExportSettings
$conf['menu']['import_export'] = true;

View File

@@ -0,0 +1,3 @@
//120MenuSettings
include '/home/httpd/html/horde/conf.menu.apps.php';

View File

@@ -0,0 +1,3 @@
// 999footer
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */

View File

@@ -0,0 +1,7 @@
//00Header
/**
* $Horde: nag/config/prefs.php.dist,v 1.42.2.13 2010/04/20 08:24:21 jan Exp $
*
* See horde/config/prefs.php for documentation on the structure of this file.
*/

View File

@@ -0,0 +1,4 @@
//100Constants
// Make sure that constants are defined.
require_once dirname(__FILE__) . '/../lib/Nag.php';

View File

@@ -0,0 +1,8 @@
//110Display
$prefGroups['display'] = array(
'column' => _("General Options"),
'label' => _("Display Options"),
'desc' => _("Change your task sorting and display options."),
'members' => array('tasklist_columns', 'sortby', 'altsortby', 'sortdir'),
);

View File

@@ -0,0 +1,8 @@
//115Deletion
$prefGroups['deletion'] = array(
'column' => _("General Options"),
'label' => _("Delete Confirmation"),
'desc' => _("Delete button behaviour"),
'members' => array('delete_opt'),
);

View File

@@ -0,0 +1,8 @@
//120Tasks
$prefGroups['tasks'] = array(
'column' => _("General Options"),
'label' => _("Task Defaults"),
'desc' => _("Defaults for new tasks"),
'members' => array('default_due', 'default_due_days', 'defaultduetimeselect'),
);

View File

@@ -0,0 +1,8 @@
//130Share
$prefGroups['share'] = array(
'column' => _("Task List and Share Options"),
'label' => _("Default Task List"),
'desc' => _("Choose your default task list."),
'members' => array('tasklistselect'),
);

View File

@@ -0,0 +1,8 @@
//140Notification
$prefGroups['notification'] = array(
'column' => _("Task List and Share Options"),
'label' => _("Notifications"),
'desc' => _("Choose if you want to be notified of task changes and task alarms."),
'members' => array('task_notification', 'task_notification_exclude_self'),
);

View File

@@ -0,0 +1,5 @@
//150Globals
if (!empty($GLOBALS['conf']['alarms']['driver'])) \{
$prefGroups['notification']['members'][] = 'task_alarms';
\}

View File

@@ -0,0 +1,14 @@
//160ShowExternal
$_show_external = array();
if ($GLOBALS['registry']->hasMethod('getListTypes', 'whups')) \{
$_show_external['whups'] = $GLOBALS['registry']->get('name', 'whups');
\}
if (count($_show_external)) \{
$prefGroups['external'] = array(
'column' => _("Task List and Share Options"),
'label' => _("External Data"),
'desc' => _("Show data from other applications or sources."),
'members' => array('show_external'),
);
\}

View File

@@ -0,0 +1,16 @@
//170Tasklist_Columns
// columns in the list view
$_prefs['tasklist_columns'] = array(
'value' => 'a:3:\{i:0;s:8:"priority";i:1;s:3:"due";i:2;s:8:"category";\}',
'locked' => false,
'shared' => false,
'type' => 'multienum',
'enum' => array('tasklist' => _("Task List"),
'priority' => _("Priority"),
'assignee' => _("Assignee"),
'due' => _("Due Date"),
'estimate' => _("Estimated Time"),
'category' => _("Category")),
'desc' => _("Select the columns that should be shown in the list view:")
);

View File

@@ -0,0 +1,10 @@
//180ShowPanel
// show the task list options panel?
// a value of 0 = no, 1 = yes
$_prefs['show_panel'] = array(
'value' => 1,
'locked' => false,
'shared' => false,
'type' => 'implicit',
);

View File

@@ -0,0 +1,18 @@
//190SortBy
// user preferred sorting column
$_prefs['sortby'] = array(
'value' => NAG_SORT_PRIORITY,
'locked' => false,
'shared' => false,
'type' => 'enum',
'enum' => array(NAG_SORT_PRIORITY => _("Priority"),
NAG_SORT_NAME => _("Task Name"),
NAG_SORT_CATEGORY => _("Category"),
NAG_SORT_DUE => _("Due Date"),
NAG_SORT_COMPLETION => _("Completed?"),
NAG_SORT_ESTIMATE => _("Estimated Time"),
NAG_SORT_ASSIGNEE => _("Assignee"),
NAG_SORT_OWNER => _("Task List")),
'desc' => _("Sort tasks by:"),
);

View File

@@ -0,0 +1,18 @@
//200AltSortBy
// alternate sort column
$_prefs['altsortby'] = array(
'value' => NAG_SORT_CATEGORY,
'locked' => false,
'shared' => false,
'type' => 'enum',
'enum' => array(NAG_SORT_PRIORITY => _("Priority"),
NAG_SORT_NAME => _("Task Name"),
NAG_SORT_CATEGORY => _("Category"),
NAG_SORT_DUE => _("Due Date"),
NAG_SORT_COMPLETION => _("Completed?"),
NAG_SORT_ESTIMATE => _("Estimated Time"),
NAG_SORT_ASSIGNEE => _("Assignee"),
NAG_SORT_OWNER => _("Task List")),
'desc' => _("Then:"),
);

View File

@@ -0,0 +1,12 @@
//210SortDir
// user preferred sorting direction
$_prefs['sortdir'] = array(
'value' => NAG_SORT_ASCEND,
'locked' => false,
'shared' => false,
'type' => 'enum',
'enum' => array(NAG_SORT_ASCEND => _("Ascending"),
NAG_SORT_DESCEND => _("Descending")),
'desc' => _("Sort direction:"),
);

View File

@@ -0,0 +1,10 @@
//220DeleteOpt
// preference for delete confirmation dialog.
$_prefs['delete_opt'] = array(
'value' => 1,
'locked' => false,
'shared' => false,
'type' => 'checkbox',
'desc' => _("Do you want to confirm deleting entries?"),
);

View File

@@ -0,0 +1,10 @@
//230DefaultDue
// default to tasks having a due date?
$_prefs['default_due'] = array(
'value' => 0,
'locked' => false,
'shared' => false,
'type' => 'checkbox',
'desc' => _("When creating a new task, should it default to having a due date?"),
);

View File

@@ -0,0 +1,10 @@
//240DefaultDueDays
// default number of days out for due dates
$_prefs['default_due_days'] = array(
'value' => 1,
'locked' => false,
'shared' => false,
'type' => 'number',
'desc' => _("When creating a new task, how many days in the future should the default due date be (0 means today)?"),
);

View File

@@ -0,0 +1,12 @@
//250DefaultDueTime
// default due time
$_prefs['default_due_time'] = array(
'value' => 'now',
'locked' => false,
'shared' => false,
'type' => 'implicit',
);
// default due time selection widget
$_prefs['defaultduetimeselect'] = array('type' => 'special');

View File

@@ -0,0 +1,14 @@
//260TaskNotification
// new task notifications
$_prefs['task_notification'] = array(
'value' => '',
'locked' => false,
'shared' => false,
'type' => 'enum',
'enum' => array('' => _("No"),
'owner' => _("On my task lists only"),
'show' => _("On all shown task lists"),
'read' => _("On all task lists I have read access to")),
'desc' => _("Choose if you want to be notified of new, edited, and deleted tasks by email:"),
);

View File

@@ -0,0 +1,18 @@
//270TaskAlarms
$_prefs['task_notification_exclude_self'] = array(
'value' => 0,
'locked' => false,
'shared' => false,
'type' => 'checkbox',
'desc' => _("Don't send me a notification if I've added, changed or deleted the task?")
);
// alarm methods
$_prefs['task_alarms'] = array(
'value' => 'a:1:\{s:6:"notify";a:0:\{\}\}',
'locked' => false,
'shared' => false,
'type' => 'alarm',
'desc' => _("Choose how you want to receive reminders for tasks with alarms:"),
);

View File

@@ -0,0 +1,13 @@
//280ShowExternal
// show data from other applications that can be listed as tasks?
if (count($_show_external)) \{
$_prefs['show_external'] = array(
'value' => 'a:0:\{\}',
'locked' => false,
'shared' => false,
'type' => 'multienum',
'enum' => $_show_external,
'desc' => _("Show data from any of these other applications in your task list?"),
);
\}

View File

@@ -0,0 +1,13 @@
//290ShowCompleted
// show complete/incomplete tasks?
$_prefs['show_completed'] = array(
'value' => 1,
'locked' => false,
'shared' => false,
'type' => 'enum',
'enum' => array(1 => _("All tasks"),
0 => _("Incomplete tasks"),
2 => _("Complete tasks")),
'desc' => _("Show complete, incomplete, or all tasks in the task list?"),
);

View File

@@ -0,0 +1,9 @@
//300TaskCategories
// user task categories
$_prefs['task_categories'] = array(
'value' => '',
'locked' => false,
'shared' => false,
'type' => 'implicit'
);

View File

@@ -0,0 +1,13 @@
//310TaskLists
// default task list selection widget
$_prefs['tasklistselect'] = array('type' => 'special');
// default tasklists
// Set locked to true if you don't want users to have multiple task lists.
$_prefs['default_tasklist'] = array(
'value' => Auth::getAuth() ? Auth::getAuth() : 0,
'locked' => false,
'shared' => true,
'type' => 'implicit',
);

View File

@@ -0,0 +1,9 @@
//320DisplayTaskLists
// store the task lists to display
$_prefs['display_tasklists'] = array(
'value' => 'a:0:\{\}',
'locked' => false,
'shared' => false,
'type' => 'implicit',
);