⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 proposedmodifications.txt

📁 个人日程管理系统
💻 TXT
字号:
This is how the Table code will work:In order to encapsulate things, and reduce code size, the table *module* will *export* the following routines:Err TableInitialize(TablePtr *table);Err TableDeInitialize(TablePtr *table);Err TableScrollToTop(TablePtr *table);Err TableScrollToBottom(TablePtr *table);Err TableScrollRelative(TablePtr *table, Int16 scrollAmount); // Negative values scroll up, positive values scroll downErr TableReSynchronize(TablePtr *table); // Resync table from changesInt32 TableSelectPoint(TablePtr *table, EventPtr e); // Select the row where the pen down happened, may not be neccesary after OS 4.0, returns selected task index # or -1 if noneInt32 TableGetSelected(TablePtr *table); // Get the currently selected task (if any)The table code will call the following functions:Int32 TaskGetNextViewableTask(DmOpenRef DBp); // get the next viewable task index # or -1 if noneInt32 TaskGetPrevViewableTask(HmOpenRef DBp); // get the previous viewable task index # or -1 if noneThe table code will use the following globals:The table code will be in table.cThis how the task view code will work:Exported Routines:Int32 TaskGetNextViewableTask(DmOpenRef DBp); // get the next viewable task index # or -1 if noneInt32 TaskGetPrevViewableTask(HmOpenRef DBp); // get the previous viewable task index # or -1 if noneErr TaskViewResetToTop(HmOpenRef DBp); // reset the pointers to the first viewable taskErr TaskViewResetToBottom(HmOpenRef DBp); // reset the pointers to the last viewable taskErr TaskViewMakeTaskRootOfView(HmOpenRef DBp, Int32 TaskID); // Make given task the root of the task viewErr TaskViewMoveViewUpOneLevel(HmOpenRef DBp); // make the current root tasks' parent the root taskErr TaskViewResetViewLevel(HmOpenRef DBp); // make the current root tasks' parent the root taskErr TaskViewSetFlatMode(Boolean flatModeOn); // Set or reset flatmodeErr TaskViewDeleteTree(HmOpenRef DBp, Int32 taskID); // delete the task and subtree rooted at taskIDNon Exported Routines:Err TaskViewSelectTask(HmOpenRef DBp, Int32 taskID); // select the given task, use highlightThe task view code will be in taskview.cThis is how the task code will work:Exported Routines:Err TaskCalcCompleted(HmOpenRef DBp, Int32 taskID); // calculate completed for tree rooted at taskIDErr TaskExpandTree(HmOpenRef DBp, Int32 taskID); // expand task tree rooted at taskIDErr TaskCollapseTree(HmOpenRef DBp, Int32 taskID); // expand task tree rooted at taskIDInt32 TaskGetParentID(HmOpenRef DBp, Int32 taskID); // Get the parent ID of a given taskTaskQueryDeleteTaskTree(HmOpenRef DBp, Int32 taskID); // ask user if they really want to delete treeTaskDeleteTree(HmOpenRef DBp, Int32 taskID); // delete task tree rooted at taskIDTaskUpInTree(HmOpenRef DBp, Int32 taskID); // Move task up in the treeTaskDownInTree(HmOpenRef DBp, Int32 taskID); // Move task down in the treeTaskLeftInTree(HmOpenRef DBp, Int32 taskID); // Move task left in the treeTaskRightInTree(HmOpenRef DBp, Int32 taskID); // Move task right in the treeThe task code will be in task.cThe task clipboard code will work as follows:Exported Routines:TaskToClipboard(HmOpenRef DBp, Int32 taskID, Boolean withParent); // move task tree rooted at taskID to clipboard, and optionally include parentTaskFromClipboard(HmOpenRef DBp, Int32 taskID, Boolean asChild); // insert task from clipboard as child or sibling

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -