todolist: added options listed, used, editor and packages, from Silvio Clécio, patch #31006

git-svn-id: trunk@53464 -
This commit is contained in:
mattias 2016-11-26 09:51:42 +00:00
parent 8096306d2b
commit c1e053235f
18 changed files with 601 additions and 139 deletions

View File

@ -6,10 +6,14 @@
<short>Searches the file name of a unit</short> <short>Searches the file name of a unit</short>
<descr>If TheOwner is nil the current project is searched. TheOwner can be a project, a package or LazarusIDE. The unit is searched in the unit search path of the the base directory using the codetools unit search rules. It will find units of used packages too, the unit name is case insensitive and the normal extensions .pas, .pp are tried. In case of LazarusIDE it will search in all open packages. If the AFileName contains an extension it will also search in the files listed in the project inspector. It returns the empty string if not found. If the file name is not absolute the file was not newly created and not yet saved to disk.</descr> <descr>If TheOwner is nil the current project is searched. TheOwner can be a project, a package or LazarusIDE. The unit is searched in the unit search path of the the base directory using the codetools unit search rules. It will find units of used packages too, the unit name is case insensitive and the normal extensions .pas, .pp are tried. In case of LazarusIDE it will search in all open packages. If the AFileName contains an extension it will also search in the files listed in the project inspector. It returns the empty string if not found. If the file name is not absolute the file was not newly created and not yet saved to disk.</descr>
</element> </element>
<element name="TLazIDEInterface.FindUnitsOfOwner"><short>Find units of project/package</short><descr>fuooListed: For a project add the units listed in the project inspector (.lpi). For a package add the units listed in the package editor. With fuooPackages this works recursively for all used packages as well. <element name="TLazIDEInterface.FindUnitsOfOwner">
<short>Find units of project/package</short>
<descr>fuooListed: For a project add the units listed in the project inspector (.lpi). For a package add the units listed in the package editor. With fuooPackages this works recursively for all used packages as well.
fuooUsed: Parse the project/package sources recursively and add all used units. Without fuooPackages units from packages are not added. fuooUsed: Parse the project/package sources recursively and add all used units. Without fuooPackages units from packages are not added.
fuooPackages: Extends fuooListed and fuooUsed by units from used packages.
fuooSourceEditor: Add units in source editor.</descr> fuooSourceEditor: Add units in source editor.</descr>
</element> </element>
</module> </module>

View File

@ -18,20 +18,29 @@ msgstr ""
msgid "Refresh" msgid "Refresh"
msgstr "Obnovit" msgstr "Obnovit"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Vložit makro" msgstr "Vložit makro"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -62,6 +71,14 @@ msgstr "Modul"
msgid "ToDo List" msgid "ToDo List"
msgstr "Seznam úkolů" msgstr "Seznam úkolů"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Přeskočí na umístění úkolu ve zdroji" msgstr "Přeskočí na umístění úkolu ve zdroji"
@ -82,6 +99,14 @@ msgstr "Vlastník"
msgid "Priority" msgid "Priority"
msgstr "Priorita" msgstr "Priorita"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Kategorie" msgstr "Kategorie"

View File

@ -18,20 +18,29 @@ msgstr ""
msgid "Refresh" msgid "Refresh"
msgstr "Aktualisieren" msgstr "Aktualisieren"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Makro einfügen" msgstr "Makro einfügen"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -62,6 +71,14 @@ msgstr "Modul"
msgid "ToDo List" msgid "ToDo List"
msgstr "ToDo-Liste" msgstr "ToDo-Liste"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Zur gewählten Quelltextzeile springen" msgstr "Zur gewählten Quelltextzeile springen"
@ -82,6 +99,14 @@ msgstr "Eigentümer"
msgid "Priority" msgid "Priority"
msgstr "Priorität" msgstr "Priorität"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Kategorie" msgstr "Kategorie"

View File

@ -17,20 +17,29 @@ msgstr ""
msgid "Refresh" msgid "Refresh"
msgstr "Actualizar" msgstr "Actualizar"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Insertar Macro" msgstr "Insertar Macro"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Texto" msgstr "Texto"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -61,6 +70,14 @@ msgstr "Módulo"
msgid "ToDo List" msgid "ToDo List"
msgstr "Lista ToDo" msgstr "Lista ToDo"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Ir a línea seleccionada de codigo fuente" msgstr "Ir a línea seleccionada de codigo fuente"
@ -81,6 +98,14 @@ msgstr "Propietario"
msgid "Priority" msgid "Priority"
msgstr "Prioridad" msgstr "Prioridad"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Categoría" msgstr "Categoría"

View File

@ -9,20 +9,29 @@ msgstr "CSV tiedostot"
msgid "Refresh" msgid "Refresh"
msgstr "Päivitä" msgstr "Päivitä"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Lisää Makro" msgstr "Lisää Makro"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Teksti" msgstr "Teksti"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -53,6 +62,14 @@ msgstr "Moduuli"
msgid "ToDo List" msgid "ToDo List"
msgstr "ToDo luettelo" msgstr "ToDo luettelo"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Mene valitulle lähderiville" msgstr "Mene valitulle lähderiville"
@ -73,6 +90,14 @@ msgstr "Omistaja"
msgid "Priority" msgid "Priority"
msgstr "Tärkeys" msgstr "Tärkeys"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Luokka" msgstr "Luokka"

View File

@ -19,20 +19,29 @@ msgstr "Fichier CSV"
msgid "Refresh" msgid "Refresh"
msgstr "Rafraîchir" msgstr "Rafraîchir"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Insérer une macro" msgstr "Insérer une macro"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Texte" msgstr "Texte"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -63,6 +72,14 @@ msgstr "Module"
msgid "ToDo List" msgid "ToDo List"
msgstr "Pense-bête" msgstr "Pense-bête"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Aller à la ligne du code source sélectionné" msgstr "Aller à la ligne du code source sélectionné"
@ -83,6 +100,14 @@ msgstr "Propriétaire"
msgid "Priority" msgid "Priority"
msgstr "Priorité" msgstr "Priorité"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Catégorie" msgstr "Catégorie"

View File

@ -19,20 +19,29 @@ msgstr "CSV fájlok"
msgid "Refresh" msgid "Refresh"
msgstr "Frissítés" msgstr "Frissítés"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Makró beszúrása" msgstr "Makró beszúrása"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Szöveg" msgstr "Szöveg"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -63,6 +72,14 @@ msgstr "Modul"
msgid "ToDo List" msgid "ToDo List"
msgstr "ToDo lista" msgstr "ToDo lista"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Ugrás a forrás kiválasztott sorára" msgstr "Ugrás a forrás kiválasztott sorára"
@ -83,6 +100,14 @@ msgstr "Tulajdonos"
msgid "Priority" msgid "Priority"
msgstr "Prioritás" msgstr "Prioritás"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Kategória" msgstr "Kategória"

View File

@ -20,20 +20,29 @@ msgstr ""
msgid "Refresh" msgid "Refresh"
msgstr "Aggiorna" msgstr "Aggiorna"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Inserisci Macro" msgstr "Inserisci Macro"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Testo" msgstr "Testo"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -64,6 +73,14 @@ msgstr "Modulo"
msgid "ToDo List" msgid "ToDo List"
msgstr "lista ToDo" msgstr "lista ToDo"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Vai alla riga di codice selezionata" msgstr "Vai alla riga di codice selezionata"
@ -84,6 +101,14 @@ msgstr "Proprietario"
msgid "Priority" msgid "Priority"
msgstr "Priorità" msgstr "Priorità"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Categoria" msgstr "Categoria"

View File

@ -19,20 +19,29 @@ msgstr ""
msgid "Refresh" msgid "Refresh"
msgstr "Atnaujinti" msgstr "Atnaujinti"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Įterpti makrokomandą" msgstr "Įterpti makrokomandą"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Tekstas" msgstr "Tekstas"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -63,6 +72,14 @@ msgstr "Modulis"
msgid "ToDo List" msgid "ToDo List"
msgstr "ToDo sąrašas" msgstr "ToDo sąrašas"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Rodyti eilutę pirminiame kode" msgstr "Rodyti eilutę pirminiame kode"
@ -83,6 +100,14 @@ msgstr "Savininkas"
msgid "Priority" msgid "Priority"
msgstr "Prioritetas" msgstr "Prioritetas"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Kategorija" msgstr "Kategorija"

View File

@ -20,20 +20,29 @@ msgstr ""
msgid "Refresh" msgid "Refresh"
msgstr "Odśwież" msgstr "Odśwież"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Wstaw Makro" msgstr "Wstaw Makro"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Tekst" msgstr "Tekst"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -66,6 +75,14 @@ msgstr "Moduł"
msgid "ToDo List" msgid "ToDo List"
msgstr "Lista \"Do zrobienia\"" msgstr "Lista \"Do zrobienia\""
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Idź do wybranej linii źródła" msgstr "Idź do wybranej linii źródła"
@ -86,6 +103,14 @@ msgstr "Właściciel"
msgid "Priority" msgid "Priority"
msgstr "Priorytet" msgstr "Priorytet"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Kategoria" msgstr "Kategoria"

View File

@ -9,20 +9,29 @@ msgstr ""
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "" msgstr ""
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -53,6 +62,14 @@ msgstr ""
msgid "ToDo List" msgid "ToDo List"
msgstr "" msgstr ""
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "" msgstr ""
@ -73,6 +90,14 @@ msgstr ""
msgid "Priority" msgid "Priority"
msgstr "" msgstr ""
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "" msgstr ""

View File

@ -4,34 +4,45 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: \n" "POT-Creation-Date: \n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Marcelo Borges de Paula\n" "Last-Translator: Silvio Clecio\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"
"X-Generator: Poedit 1.8.7.1\n"
#: todoliststrconsts.dlgfiltercsv #: todoliststrconsts.dlgfiltercsv
msgid "CSV files" msgid "CSV files"
msgstr "" msgstr "Arquivos CSV"
#: todoliststrconsts.dlgunitdeprefresh #: todoliststrconsts.dlgunitdeprefresh
msgid "Refresh" msgid "Refresh"
msgstr "Atualizar" msgstr "Atualizar"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Inserir Macro" msgstr "Inserir Macro"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr "Pacotes"
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr "Estende opções \"%s\" e \"%s\" por unidades de pacotes usados"
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Texto" msgstr "Texto"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr "" msgstr "Editor"
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "Adiciona unidades no editor de código"
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
msgid "Insert ToDo" msgid "Insert ToDo"
@ -63,6 +74,14 @@ msgstr "Módulo"
msgid "ToDo List" msgid "ToDo List"
msgstr "Lista \"ToDo\" (à fazer)" msgstr "Lista \"ToDo\" (à fazer)"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr "Listado"
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr "Adiciona unidades listadas em lpi/lpk a.k.a inspetor de projeto/editor de pacotes"
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Ir para linha do fonte selecionada" msgstr "Ir para linha do fonte selecionada"
@ -83,6 +102,14 @@ msgstr "Proprietário"
msgid "Priority" msgid "Priority"
msgstr "Prioridade" msgstr "Prioridade"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr "Usado"
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr "Adiciona unidades usadas pelo código fonte principal"
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Categoria" msgstr "Categoria"
@ -92,4 +119,3 @@ msgstr "Categoria"
#| msgid "View ToDo list" #| msgid "View ToDo list"
msgid "View ToDo List" msgid "View ToDo List"
msgstr "Exibir lista \"ToDo\" (à fazer)" msgstr "Exibir lista \"ToDo\" (à fazer)"

View File

@ -19,21 +19,31 @@ msgstr "Файлы CSV"
msgid "Refresh" msgid "Refresh"
msgstr "Обновить" msgstr "Обновить"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr "Добавить модули из редактора исходного кода"
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Вставить макрос" msgstr "Вставить макрос"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Текст" msgstr "Текст"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr "Искать элементы ToDo также в модулях, открытых в редакторе исходного кода" msgstr ""
#: todoliststrconsts.lissourceeditorhint
#, fuzzy
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "Добавить модули из редактора исходного кода"
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
msgid "Insert ToDo" msgid "Insert ToDo"
@ -63,6 +73,14 @@ msgstr "Модуль"
msgid "ToDo List" msgid "ToDo List"
msgstr "Список ToDo" msgstr "Список ToDo"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Перейти к выделенной строке исходного кода" msgstr "Перейти к выделенной строке исходного кода"
@ -83,6 +101,14 @@ msgstr "Владелец"
msgid "Priority" msgid "Priority"
msgstr "Приоритет" msgstr "Приоритет"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Категория" msgstr "Категория"

View File

@ -20,20 +20,29 @@ msgstr "Файли CSV"
msgid "Refresh" msgid "Refresh"
msgstr "Оновити" msgstr "Оновити"
#: todoliststrconsts.lisaddunitsinsourceeditor
msgid "Add units in source editor"
msgstr ""
#: todoliststrconsts.lisctinsertmacro #: todoliststrconsts.lisctinsertmacro
msgid "Insert Macro" msgid "Insert Macro"
msgstr "Вставити макрос" msgstr "Вставити макрос"
#: todoliststrconsts.lispackages
msgid "Packages"
msgstr ""
#: todoliststrconsts.lispackageshint
msgid "Extends \"%s\" and \"%s\" options by units from used packages"
msgstr ""
#: todoliststrconsts.lispkgfiletypetext #: todoliststrconsts.lispkgfiletypetext
msgid "Text" msgid "Text"
msgstr "Текст" msgstr "Текст"
#: todoliststrconsts.lissearchtodosinsourceeditorunitsaswell #: todoliststrconsts.lissourceeditor
msgid "Search todos in source editor units as well" msgid "Editor"
msgstr ""
#: todoliststrconsts.lissourceeditorhint
msgctxt "todoliststrconsts.lissourceeditorhint"
msgid "Add units in source editor"
msgstr "" msgstr ""
#: todoliststrconsts.listddinserttodo #: todoliststrconsts.listddinserttodo
@ -64,6 +73,14 @@ msgstr "Модуль"
msgid "ToDo List" msgid "ToDo List"
msgstr "Список ToDo" msgstr "Список ToDo"
#: todoliststrconsts.listodolisted
msgid "Listed"
msgstr ""
#: todoliststrconsts.listodolistedhint
msgid "Add units listed in lpi/lpk aka project inspector/package editor"
msgstr ""
#: todoliststrconsts.listodolistgotoline #: todoliststrconsts.listodolistgotoline
msgid "Goto selected source line" msgid "Goto selected source line"
msgstr "Перейти до вибраного рядка сирців" msgstr "Перейти до вибраного рядка сирців"
@ -84,6 +101,14 @@ msgstr "Власник"
msgid "Priority" msgid "Priority"
msgstr "Пріоритет" msgstr "Пріоритет"
#: todoliststrconsts.listodoused
msgid "Used"
msgstr ""
#: todoliststrconsts.listodousedhint
msgid "Add units used by main source file"
msgstr ""
#: todoliststrconsts.listtodolcategory #: todoliststrconsts.listtodolcategory
msgid "Category" msgid "Category"
msgstr "Категорія" msgstr "Категорія"

View File

@ -1,21 +1,23 @@
object IDETodoWindow: TIDETodoWindow object IDETodoWindow: TIDETodoWindow
Left = 415 Left = 415
Height = 300 Height = 300
Top = 429 Top = 398
Width = 837 Width = 837
ActiveControl = lvTodo ActiveControl = lvTodo
Caption = 'IDETodoWindow' Caption = 'IDETodoWindow'
ClientHeight = 300 ClientHeight = 300
ClientWidth = 837 ClientWidth = 837
KeyPreview = True KeyPreview = True
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate OnCreate = FormCreate
OnKeyDown = FormKeyDown OnKeyDown = FormKeyDown
OnShow = FormShow OnShow = FormShow
Position = poScreenCenter Position = poScreenCenter
SessionProperties = 'chkListed.Checked;chkUsed.Checked;chkSourceEditor.Checked;chkPackages.Checked'
LCLVersion = '1.7' LCLVersion = '1.7'
object lvTodo: TListView object lvTodo: TListView
Left = 6 Left = 6
Height = 206 Height = 207
Top = 54 Top = 54
Width = 825 Width = 825
Align = alClient Align = alClient
@ -51,7 +53,7 @@ object IDETodoWindow: TIDETodoWindow
RowSelect = True RowSelect = True
ScrollBars = ssAutoBoth ScrollBars = ssAutoBoth
SortType = stText SortType = stText
TabOrder = 0 TabOrder = 1
ViewStyle = vsReport ViewStyle = vsReport
OnClick = lvTodoClick OnClick = lvTodoClick
OnColumnClick = lvTodoColumnClick OnColumnClick = lvTodoColumnClick
@ -69,7 +71,7 @@ object IDETodoWindow: TIDETodoWindow
ParentShowHint = False ParentShowHint = False
ShowCaptions = True ShowCaptions = True
ShowHint = True ShowHint = True
TabOrder = 1 TabOrder = 0
object tbRefresh: TToolButton object tbRefresh: TToolButton
Left = 1 Left = 1
Top = 2 Top = 2
@ -77,37 +79,87 @@ object IDETodoWindow: TIDETodoWindow
AutoSize = True AutoSize = True
end end
object tbGoto: TToolButton object tbGoto: TToolButton
Left = 53 Left = 52
Top = 2 Top = 2
Action = acGoto Action = acGoto
AutoSize = True AutoSize = True
end end
object tbExport: TToolButton object tbExport: TToolButton
Left = 100 Left = 99
Top = 2 Top = 2
Action = acExport Action = acExport
AutoSize = True AutoSize = True
end end
object ToolButton1: TToolButton object N1: TToolButton
Left = 147 Left = 146
Height = 46 Height = 46
Top = 2 Top = 2
Width = 8 Width = 5
Caption = 'ToolButton1' Caption = 'N1'
Style = tbsSeparator Style = tbsDivider
end end
object tbAddSrcEdit: TToolButton object grbOptions: TGroupBox
Left = 155 Left = 151
Height = 40
Top = 2 Top = 2
Caption = 'Add source editor units' Width = 244
OnClick = tbAddSrcEditClick AutoSize = True
Style = tbsCheck Caption = 'Options'
ClientHeight = 21
ClientWidth = 240
TabOrder = 0
object chkListed: TCheckBox
Left = 0
Height = 21
Top = 0
Width = 56
Align = alLeft
Caption = '&Listed'
Checked = True
OnChange = chkListedChange
State = cbChecked
TabOrder = 0
end
object chkUsed: TCheckBox
Left = 56
Height = 21
Top = 0
Width = 52
Align = alLeft
Caption = '&Used'
Checked = True
OnChange = chkUsedChange
State = cbChecked
TabOrder = 1
end
object chkSourceEditor: TCheckBox
Left = 108
Height = 21
Top = 0
Width = 56
Align = alLeft
Caption = 'Editor'
Checked = True
OnChange = chkSourceEditorChange
State = cbChecked
TabOrder = 2
end
object chkPackages: TCheckBox
Left = 164
Height = 21
Top = 0
Width = 76
Align = alLeft
Caption = '&Packages'
OnChange = chkPackagesChange
TabOrder = 3
end
end end
end end
object ButtonPanel1: TButtonPanel object ButtonPanel: TButtonPanel
Left = 6 Left = 6
Height = 28 Height = 27
Top = 266 Top = 267
Width = 825 Width = 825
OKButton.Name = 'OKButton' OKButton.Name = 'OKButton'
OKButton.DefaultCaption = True OKButton.DefaultCaption = True
@ -123,8 +175,8 @@ object IDETodoWindow: TIDETodoWindow
ShowBevel = False ShowBevel = False
end end
object ActionList: TActionList object ActionList: TActionList
left = 368 Left = 368
top = 11 Top = 11
object acGoto: TAction object acGoto: TAction
Caption = 'Goto' Caption = 'Goto'
OnExecute = acGotoExecute OnExecute = acGotoExecute
@ -138,12 +190,21 @@ object IDETodoWindow: TIDETodoWindow
OnExecute = acExportExecute OnExecute = acExportExecute
end end
end end
object SaveDialog1: TSaveDialog object SaveDialog: TSaveDialog
OnShow = SaveDialog1Show OnShow = SaveDialogShow
DefaultExt = '.csv' DefaultExt = '.csv'
Filter = 'csv|*.csv' Filter = 'csv|*.csv'
Options = [ofCreatePrompt, ofEnableSizing, ofViewDetail] Options = [ofCreatePrompt, ofEnableSizing, ofViewDetail]
left = 448 Left = 448
top = 11 Top = 11
end
object XMLPropStorage: TXMLPropStorage
StoredValues = <>
FileName = 'todolistoptions.xml'
Active = False
OnRestoringProperties = XMLPropStorageRestoringProperties
OnRestoreProperties = XMLPropStorageRestoreProperties
Left = 544
Top = 11
end end
end end

View File

@ -29,6 +29,7 @@
Gerard Visent <gerardusmercator@gmail.com> Gerard Visent <gerardusmercator@gmail.com>
Mattias Gaertner Mattias Gaertner
Alexander du Plessis Alexander du Plessis
Silvio Clecio
Abstract: Abstract:
List all to do comments of current project and the file List all to do comments of current project and the file
@ -62,7 +63,7 @@ uses
Classes, SysUtils, Math, LCLProc, Forms, Controls, Dialogs, StrUtils, Classes, SysUtils, Math, LCLProc, Forms, Controls, Dialogs, StrUtils,
ComCtrls, ActnList, AvgLvlTree, LazUTF8Classes, LCLType, ButtonPanel, ComCtrls, ActnList, AvgLvlTree, LazUTF8Classes, LCLType, ButtonPanel,
CodeCache, CodeToolManager, BasicCodeTools, FileProcs, LazFileUtils, CodeCache, CodeToolManager, BasicCodeTools, FileProcs, LazFileUtils,
LazFileCache, LclIntf, StdCtrls, LazFileCache, LclIntf, StdCtrls, XMLPropStorage,
// IDEIntf // IDEIntf
LazIDEIntf, IDEImagesIntf, PackageIntf, ProjectIntf, IDEUtils, LazIDEIntf, IDEImagesIntf, PackageIntf, ProjectIntf, IDEUtils,
// IDE // IDE
@ -136,18 +137,28 @@ type
acRefresh: TAction; acRefresh: TAction;
acExport: TAction; acExport: TAction;
ActionList: TActionList; ActionList: TActionList;
ButtonPanel1: TButtonPanel; ButtonPanel: TButtonPanel;
chkListed: TCheckBox;
chkUsed: TCheckBox;
chkPackages: TCheckBox;
chkSourceEditor: TCheckBox;
grbOptions: TGroupBox;
lvTodo: TListView; lvTodo: TListView;
SaveDialog1: TSaveDialog; SaveDialog: TSaveDialog;
ToolBar: TToolBar; ToolBar: TToolBar;
tbGoto: TToolButton; tbGoto: TToolButton;
tbRefresh: TToolButton; tbRefresh: TToolButton;
tbExport: TToolButton; tbExport: TToolButton;
ToolButton1: TToolButton; N1: TToolButton;
tbAddSrcEdit: TToolButton; XMLPropStorage: TXMLPropStorage;
procedure acExportExecute(Sender: TObject); procedure acExportExecute(Sender: TObject);
procedure acGotoExecute(Sender: TObject); procedure acGotoExecute(Sender: TObject);
procedure acRefreshExecute(Sender: TObject); procedure acRefreshExecute(Sender: TObject);
procedure chkListedChange(Sender: TObject);
procedure chkPackagesChange(Sender: TObject);
procedure chkSourceEditorChange(Sender: TObject);
procedure chkUsedChange(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
procedure FormCreate(Sender: TObject); procedure FormCreate(Sender: TObject);
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift:TShiftState); procedure FormKeyDown(Sender: TObject; var Key: Word; Shift:TShiftState);
procedure FormShow(Sender: TObject); procedure FormShow(Sender: TObject);
@ -156,13 +167,15 @@ type
procedure lvTodoColumnClick(Sender : TObject; Column : TListColumn); procedure lvTodoColumnClick(Sender : TObject; Column : TListColumn);
procedure lvTodoCompare(Sender : TObject; Item1, Item2 : TListItem; procedure lvTodoCompare(Sender : TObject; Item1, Item2 : TListItem;
{%H-}Data : Integer; var Compare : Integer); {%H-}Data : Integer; var Compare : Integer);
procedure SaveDialog1Show(Sender: TObject); procedure SaveDialogShow(Sender: TObject);
procedure tbAddSrcEditClick(Sender: TObject); procedure XMLPropStorageRestoreProperties(Sender: TObject);
procedure XMLPropStorageRestoringProperties(Sender: TObject);
private private
FBaseDirectory: string; FBaseDirectory: string;
fUpdating, fUpdateNeeded: Boolean; fUpdating, fUpdateNeeded: Boolean;
FIDEItem: string; FIDEItem: string;
FIdleConnected: boolean; FIdleConnected: boolean;
FLoadingOptions: boolean;
fStartFilename: String; fStartFilename: String;
FOnOpenFile : TOnOpenFile; FOnOpenFile : TOnOpenFile;
fScannedFiles: TAvgLvlTree;// tree of TTLScannedFile fScannedFiles: TAvgLvlTree;// tree of TTLScannedFile
@ -201,6 +214,9 @@ implementation
{$R *.lfm} {$R *.lfm}
const
DefaultTodoListCfgFile = 'todolistoptions.xml';
function CompareTLScannedFiles(Data1, Data2: Pointer): integer; function CompareTLScannedFiles(Data1, Data2: Pointer): integer;
begin begin
Result:=CompareFilenames(TTLScannedFile(Data1).Filename, Result:=CompareFilenames(TTLScannedFile(Data1).Filename,
@ -224,7 +240,7 @@ begin
acRefresh.ImageIndex := IDEImages.LoadImage(16, 'laz_refresh'); acRefresh.ImageIndex := IDEImages.LoadImage(16, 'laz_refresh');
acExport.ImageIndex := IDEImages.LoadImage(16, 'menu_saveas'); acExport.ImageIndex := IDEImages.LoadImage(16, 'menu_saveas');
SaveDialog1.Filter:= dlgFilterCsv+'|*.csv'; SaveDialog.Filter:= dlgFilterCsv+'|*.csv';
end; end;
destructor TIDETodoWindow.Destroy; destructor TIDETodoWindow.Destroy;
@ -246,6 +262,8 @@ var
CurPkg: TIDEPackage; CurPkg: TIDEPackage;
Flags: TFindUnitsOfOwnerFlags; Flags: TFindUnitsOfOwnerFlags;
begin begin
if FLoadingOptions then
exit;
if not Immediately then begin if not Immediately then begin
fUpdateNeeded:=true; fUpdateNeeded:=true;
IdleConnected:=true; IdleConnected:=true;
@ -280,9 +298,18 @@ begin
end; end;
ResolveIDEItem(CurOwner,CurProject,CurPkg); ResolveIDEItem(CurOwner,CurProject,CurPkg);
Flags:=[fuooListed,fuooUsed];
if tbAddSrcEdit.Down then Flags:=[];
Include(Flags,fuooSourceEditor);
if chkListed.Checked then
Include(Flags, fuooListed);
if chkUsed.Checked then
Include(Flags, fuooUsed);
if chkPackages.Checked then
Include(Flags, fuooPackages);
if chkSourceEditor.Checked then
Include(Flags, fuooSourceEditor);
Units:=LazarusIDE.FindUnitsOfOwner(CurOwner,Flags); Units:=LazarusIDE.FindUnitsOfOwner(CurOwner,Flags);
for i:=0 to Units.Count-1 do for i:=0 to Units.Count-1 do
ScanFile(Units[i]); ScanFile(Units[i]);
@ -389,16 +416,22 @@ begin
if lvTodo.SortDirection = sdDescending then Compare := -Compare; if lvTodo.SortDirection = sdDescending then Compare := -Compare;
end; end;
procedure TIDETodoWindow.SaveDialog1Show(Sender: TObject); procedure TIDETodoWindow.SaveDialogShow(Sender: TObject);
begin begin
SaveDialog1.InitialDir:=GetCurrentDirUTF8; SaveDialog.InitialDir:=GetCurrentDirUTF8;
end; end;
procedure TIDETodoWindow.tbAddSrcEditClick(Sender: TObject); procedure TIDETodoWindow.XMLPropStorageRestoreProperties(Sender: TObject);
begin begin
FLoadingOptions := False;
UpdateTodos; UpdateTodos;
end; end;
procedure TIDETodoWindow.XMLPropStorageRestoringProperties(Sender: TObject);
begin
FLoadingOptions := True;
end;
//Initialise the todo project and find them //Initialise the todo project and find them
procedure TIDETodoWindow.SetStartFilename(const AValue: String); procedure TIDETodoWindow.SetStartFilename(const AValue: String);
begin begin
@ -582,7 +615,7 @@ begin
else else
begin begin
SetItemFields(TodoItem, TempStr); SetItemFields(TodoItem, TempStr);
TempStr := '';; TempStr := '';
end; end;
inc(N); inc(N);
end; end;
@ -610,8 +643,15 @@ begin
tbRefresh.Caption := dlgUnitDepRefresh; tbRefresh.Caption := dlgUnitDepRefresh;
tbGoto.Caption := lisToDoGoto; tbGoto.Caption := lisToDoGoto;
tbExport.Caption := lisToDoExport; tbExport.Caption := lisToDoExport;
tbAddSrcEdit.Caption := lisAddUnitsInSourceEditor;
tbAddSrcEdit.Hint := lisSearchTodosInSourceEditorUnitsAsWell; chkListed.Caption := lisToDoListed;
chkListed.Hint := lisToDoListedHint;
chkUsed.Caption := lisToDoUsed;
chkUsed.Hint := lisToDoUsedHint;
chkPackages.Caption := lisPackages;
chkPackages.Hint := Format(lisPackagesHint, [lisToDoListed, lisToDoUsed]);
chkSourceEditor.Caption := lisSourceEditor;
chkSourceEditor.Hint := lisSourceEditorHint;
with lvTodo do with lvTodo do
begin begin
@ -624,6 +664,10 @@ begin
Column[5].Caption := lisToDoLOwner; Column[5].Caption := lisToDoLOwner;
Column[6].Caption := listToDoLCategory; Column[6].Caption := listToDoLCategory;
end; end;
XMLPropStorage.FileName := Concat(AppendPathDelim(LazarusIDE.GetPrimaryConfigPath),
DefaultTodoListCfgFile);
XMLPropStorage.Active := True;
end; end;
procedure TIDETodoWindow.acGotoExecute(Sender: TObject); procedure TIDETodoWindow.acGotoExecute(Sender: TObject);
@ -655,8 +699,8 @@ var
todoItm : TTodoItem; todoItm : TTodoItem;
i : integer; i : integer;
begin begin
SaveDialog1.FileName:='TodoList_'+FormatDateTime('YYYY_MM_DD',now); SaveDialog.FileName:='TodoList_'+FormatDateTime('YYYY_MM_DD',now);
if SaveDialog1.Execute then if SaveDialog.Execute then
begin begin
CommaList:=TStringListUTF8.Create; CommaList:=TStringListUTF8.Create;
try try
@ -675,7 +719,7 @@ begin
CommaList.Add(s); CommaList.Add(s);
i:=i+1; i:=i+1;
end; end;
CommaList.SaveToFile(SaveDialog1.FileName); CommaList.SaveToFile(SaveDialog.FileName);
finally finally
CommaList.Clear; CommaList.Clear;
CommaList.Free; CommaList.Free;
@ -688,6 +732,31 @@ begin
UpdateTodos; UpdateTodos;
end; end;
procedure TIDETodoWindow.chkListedChange(Sender: TObject);
begin
UpdateTodos;
end;
procedure TIDETodoWindow.chkPackagesChange(Sender: TObject);
begin
UpdateTodos;
end;
procedure TIDETodoWindow.chkSourceEditorChange(Sender: TObject);
begin
UpdateTodos;
end;
procedure TIDETodoWindow.chkUsedChange(Sender: TObject);
begin
UpdateTodos;
end;
procedure TIDETodoWindow.FormCloseQuery(Sender: TObject; var CanClose: boolean);
begin
XMLPropStorage.Save;
end;
procedure TIDETodoWindow.AddListItem(aTodoItem: TTodoItem); procedure TIDETodoWindow.AddListItem(aTodoItem: TTodoItem);
var var
aListItem: TListItem; aListItem: TListItem;

View File

@ -1,18 +1,15 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<CONFIG> <CONFIG>
<Package Version="4"> <Package Version="4">
<Name Value="ToDoListLaz"/> <Name Value="ToDoListLaz"/>
<Type Value="DesignTime"/>
<AddToProjectUsesSection Value="True"/> <AddToProjectUsesSection Value="True"/>
<Author Value="Olivier GUILBAUD &lt;golivier@free.fr>, Gerard Visent &lt;gerardusmercator@gmail.com>, Mattias Gaertner, Alexander du Plessis <Author Value="Olivier GUILBAUD &lt;golivier@free.fr>, Gerard Visent &lt;gerardusmercator@gmail.com>, Mattias Gaertner, Alexander du Plessis, Silvio Clecio"/>
"/>
<CompilerOptions> <CompilerOptions>
<Version Value="11"/> <Version Value="11"/>
<SearchPaths> <SearchPaths>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)/$(LCLWidgetType)"/> <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)/$(LCLWidgetType)"/>
</SearchPaths> </SearchPaths>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions> </CompilerOptions>
<Description Value="A todo list window for the Lazarus IDE <Description Value="A todo list window for the Lazarus IDE
"/> "/>
@ -46,7 +43,6 @@
<EnableI18N Value="True"/> <EnableI18N Value="True"/>
<OutDir Value="languages"/> <OutDir Value="languages"/>
</i18n> </i18n>
<Type Value="DesignTime"/>
<RequiredPkgs Count="3"> <RequiredPkgs Count="3">
<Item1> <Item1>
<PackageName Value="IDEIntf"/> <PackageName Value="IDEIntf"/>

View File

@ -40,9 +40,14 @@ resourcestring
listToDoLCategory = 'Category'; listToDoLCategory = 'Category';
lisToDoGoto = 'Goto'; lisToDoGoto = 'Goto';
lisToDoExport = 'Export'; lisToDoExport = 'Export';
lisAddUnitsInSourceEditor = 'Add units in source editor'; lisToDoListed = 'Listed';
lisSearchTodosInSourceEditorUnitsAsWell = 'Search todos in source editor ' lisToDoListedHint = 'Add units listed in lpi/lpk aka project inspector/package editor';
+'units as well'; lisToDoUsed = 'Used';
lisToDoUsedHint = 'Add units used by main source file';
lisPackages = 'Packages';
lisPackagesHint = 'Extends "%s" and "%s" options by units from used packages';
lisSourceEditor = 'Editor';
lisSourceEditorHint = 'Add units in source editor';
dlgUnitDepRefresh = 'Refresh'; dlgUnitDepRefresh = 'Refresh';
lisTDDInsertToDo = 'Insert ToDo'; lisTDDInsertToDo = 'Insert ToDo';
lisViewToDoList = 'View ToDo List'; lisViewToDoList = 'View ToDo List';