Class that describes behaviour of Notes (in terms of TaskManager features)
Наследование: Tomboy.NoteAddin
Пример #1
0
        /// <summary>
        /// Initialization, takes the Addin this gui is attached to.
        /// </summary>
        public TaskManagerGui(TaskManagerNoteAddin addin)
        {
            this.addin = addin;
            utils = new TaskNoteUtilities (addin.Buffer);

            var duedateImage = new Gtk.Image(null, "Tomboy.TaskManager.Icons.duedate-icon22.png");
            add_duedate.Image = duedateImage;

            var priorityImage = new Gtk.Image(null, "Tomboy.TaskManager.Icons.priority-icon22.png");
            add_priority.Image = priorityImage;

            task_menu.Add (add_duedate);
            task_menu.Add (add_priority);
            task_menu.Add (show_priority);

            if (Tomboy.Debugging) {
                Gtk.MenuItem print_structure = new Gtk.MenuItem (Catalog.GetString ("Print Structure"));
                print_structure.Activated += OnPrintStructureActivated;
                task_menu.Add (print_structure);
            }

            var todoImage = new Gtk.Image(null, "Tomboy.TaskManager.Icons.todo-icon24.png");
            menu_tool_button = new Gtk.MenuToolButton (todoImage, null);

            menu_tool_button.TooltipText = Catalog.GetString ("Add a new TaskList");
            menu_tool_button.ArrowTooltipText = Catalog.GetString ("Set TaskList properties");
            menu_tool_button.Menu = task_menu;
            task_menu.ShowAll ();

            menu_tool_button.Show ();

            addin.AddToolItem (menu_tool_button, -1);
        }
Пример #2
0
 /// <summary>
 /// Initialisation with the name and the tasknote
 /// </summary>
 /// <param name="name">
 /// A <see cref="System.String"/>
 /// </param>
 /// <param name="addin">
 /// A <see cref="TaskManagerNoteAddin"/>
 /// </param>
 public DateTag(string name, TaskManagerNoteAddin addin)
     : base(name)
 {
     this.addin = addin;
 }