SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Todo-List

Last post 01-08-2007 7:26 PM by vbtricks. 23 replies.
Page 1 of 2 (24 items) 1 2 Next >
Sort Posts: Previous Next
  • 07-31-2006 2:31 PM

    Todo-List

    Salut,

    this is not a feature request in particular but more a general question.

    Ever since I used a text-file to organize tasks to be done for my application (in sections Low Priority, Mid Priority and High Priority). I also discovered the // TODO functionality of SharpDevelop.
    But missusing the // TODO functionality for tasks in general doesn't seem right.

    I preferred a addin in the IDE that offers a list for the general tasks, allowing to add the tasks to sections, set priority level, percentage implemented... The content of the list could be stored as a XML file in the project directory.

    So my question: Is there any functionality available like this already as addin or what else? If not, how difficult would it be to create an addin for it? (Do not know how to get it into the IDE, writing it as a single application I would have no difficulties with).


    Thanks in advance,

    Stefan
    vbtricks.de.vu my personal site about programming
  • 07-31-2006 2:51 PM In reply to

    Re: Todo-List

    There is a number of videos available giving instructions for writing #develop AddIns.


  • 08-01-2006 3:45 PM In reply to

    Re: Todo-List

    Salut,

    thanks for that. I started programming now and managed to create a addin that shows up in a pad.
    I prefered showing it at as a MDI-Child like the source code windows and to have a file-extension (let's say .todo), so that if you double-click on that file in the project explorer the addin-window shows up.
    Unfortunately I did not found anything related to get my addin as mdi child or to creare a own file-type on the website and in the doc folder. Is there any information I overlooked? Can you help me?


    Thanks in advance,

    Stefan

    vbtricks.de.vu my personal site about programming
  • 08-01-2006 3:53 PM In reply to

    Re: Todo-List

    Daniel created an Image Viewer AddIn Tutorial which should help you.
  • 08-01-2006 5:58 PM In reply to

    Re: Todo-List

    Salut,

    this helped me. I managed to get the plugin appear as mdi child as well as associating it to files with the extension todo. What is not yet working is saving the file when the window is closed. Guess I have to export a changed-property or something like this. Unfortunately this is not implemented in the sample. Any idea on this?

    I uploaded a first preview to my website TodoList

    It's not finished yet, but any ideas what to include as well?

    Here's a screenshot:



    Stefan
    vbtricks.de.vu my personal site about programming
  • 08-01-2006 6:22 PM In reply to

    Re: Todo-List

    To get saving to work you need to set the IsDirty flag to true when your file has changed and needs saving. Then you'll need to override the Save method and write some code to save your file and set the IsDirty flag back to false. Something like this:

            public override void Save(string fileName)
            {
                OnSaving(EventArgs.Empty);

                todoListEditor.SaveFile(fileName);
                FileName = fileName;
                TitleName = Path.GetFileName(fileName);
                IsDirty = false;
           
                OnSaved(new SaveEventArgs(true));
            }

  • 08-01-2006 6:25 PM In reply to

    Re: Todo-List

    Actually looking at the source code to your TodoList addin, your Save method looks fine, you just need to set the IsDirty flag to true when the list has changed.
  • 08-01-2006 6:45 PM In reply to

    Re: Todo-List

    Salut,

    works now! Updated the download. Will continue proggin tomorrow.


    Thanks,

    Stefan
    vbtricks.de.vu my personal site about programming
  • 08-02-2006 11:16 AM In reply to

    Re: Todo-List

    Salut,

    I updated the addin. It now includes a changes-tab where changes to the solutions can be logged. The todo items can now be moved up and down.

    And I've got two new questions:
    • How can I associate an icon with the filetype in the project explorer?
    • Can I enable my addin to be called during the build-process for writing an XML-file to the output folder?
    • How to get the output folder the exe file is saved to (commonly bin\Debug)?
    • Is there any documentation I can find this information for myself? Guessing the functionality from the members of the icsharpcode namespace seems a bit hard...
    Thanks in advance,

    Stefan
    vbtricks.de.vu my personal site about programming
  • 08-02-2006 6:10 PM In reply to

    Re: Todo-List

    The easiest way to get this information is to try to find a SharpDevelop AddIn that does the same thing by looking at the SharpDevelop souce code.
    1.
        <Path name = "/Workspace/Icons">
            <Icon id         = "BooPrj"
                  language   = "Boo"
                  resource   = "Boo.ProjectIcon"/>
       </Path>

    Read SharpDevelop/doc/technotes/AddInBuildingGuide.rtf on how to include your own image resources in SharpDevelop.

    2. You can register for MSBuildEngine.AdditionalTargetFiles by putting strings into /SharpDevelop/MSBuildEngine/AdditionalTargetFiles
    In MSBuild, you can register your own target to by using something like <PrepareForRunDependsOn>$(PrepareForRunDependsOn);MyOwnTarget</PrepareForRunDependsOn>

    3. Path.GetDirectoryName(ProjectService.CurrentProject.OutputAssemblyFullPath)
    Daniel Grunwald
  • 08-03-2006 6:45 PM In reply to

    Re: Todo-List

    Salut,

    updated the plugin again. It now can save a change log.

    1. unfortunately I did not get it. Can't find any SharpDevelopResources folder or a build bat.
    2. will try later
    3. worked
    Can you help me again? Thanks in advance,

    Stefan
    vbtricks.de.vu my personal site about programming
  • 08-03-2006 7:18 PM In reply to

    Re: Todo-List

    Look at the second part about using resources without modifying the SharpDevelop source code.
    The first part talks about changing the BitmapResources file inside SharpDevelop - only an option if your addin is going to be included with SharpDevelop. (You would need to check out the source code from the subversion repository one level higher than the wiki says - the whole trunk/ instead of tunk/SharpDevelop/ - to get the SharpDevelopResources and SharpDevelopBuildServer folders).
    Daniel Grunwald
  • 08-04-2006 8:55 AM In reply to

    • HdB
    • Top 150 Contributor
    • Joined on 08-29-2005
    • South Africa
    • Posts 18

    Re: Todo-List

    I could not get this plugin to work using just the plugin and dll file.

    Every time I tried to edit a .todo file it gave me the following error:

    Cannot create object: Todolist.ToDolistDisplayBinding

     

    When I opened the source and tried to build it, it wouldn't. I had to remove the references to ICSharpCode and ICSharpCode.Sharpdevelop, and add them again. Only then could I build the addin, and then it worked fine in Sharpdevelop.

     

    I don't know if something is wrong with my installation of Sharpdevelop, or if its a problem with the plugin.

  • 08-04-2006 9:29 AM In reply to

    Re: Todo-List

    Salut,

    which version of SharpDevelop 2.0 have you got? I've got 1531.

    @Daniel
    • Has the plugin to be recompiled for every build?
    • Did as explained in the AddInBuildingGuide.rtf and created a BitmapResources.resources file, then added the part
        <BitmapResources file="BitmapResources.resources" />
        <Path name = "/Workspace/Icons">
            <Icon id         = "TodoPrj"
                            language   = "Todo"
                            resource   = "TodoList.FileType"/>
           </Path>


    to the .addin file. Unfortunately the icon does not appear in the project explorer. What am I doing wrong? (The current source and build is on my website).


    Thanks in advance,

    Stefan
    vbtricks.de.vu my personal site about programming
  • 08-04-2006 11:36 AM In reply to

    • HdB
    • Top 150 Contributor
    • Joined on 08-29-2005
    • South Africa
    • Posts 18

    Re: Todo-List

    I'm using the last Corsavy build, as far as I know that's 1591. I'll try the latest todolist tonight, to see if it also gives me the same error.

     

    Very cool addin, maybe useful enough to be included in Sharpdevelop at some stage.

Page 1 of 2 (24 items) 1 2 Next >
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.