diff --git a/IconSnap.readme b/IconSnap.readme index 7119445..6c54ddd 100644 --- a/IconSnap.readme +++ b/IconSnap.readme @@ -2,7 +2,7 @@ Short: Snap Workbench icons to a virtual grid Uploader: krustur@google.com (Krister Jansson) Author: Krister Jansson Type: util/wb -Version: 0.2 +Version: 0.3 Architecture: m68k-amigaos >= 2.0.4 Distribution: Aminet @@ -17,18 +17,20 @@ icons in Workbench any way you want, and then run this util to snap your Icons to a given grid. Features: + - Snap Workbench icons to grid (x and y individually customizable) - Add Padding to left and top (individually customizable) - Snap single icon - Snap all icons in entire folder or current directory -- Experimental feature: Snap vertically to bottom -- Experimental feature: Snap horizontally to center +- Supports OS3.5 Icons (requires icon.library v44) +- Snap vertically to bottom +- Snap horizontally to center Installation: Copy IconSnap to C: -Usage: +How to use: Order your Icons in Workbench roughly the way you want them positioned, and then snapshot their position. After that run this tool and point it to the @@ -74,6 +76,13 @@ IconSnap FILE Sys:Disk.info IconSnap DIR Sys:Utilities/ IconSnap DIR Sys:Tools PADLEFT 15 PADTOP 15 ALIGNX 5 ALIGNY 5 CENTERX BOTTOMY -Bug reports and Feature requests: +Version history: + +0.3 Support for OS3.5 Icons (requires icon.library v44) +0.2 First working version/release + +Bug reports and feature requests: + Post your Bug reports and Feature requests on github: https://github.com/krustur/IconSnap/issues + diff --git a/README.md b/README.md index d4bc104..4255c89 100644 --- a/README.md +++ b/README.md @@ -13,20 +13,15 @@ Icons to a given grid. - Add Padding to left and top (individually customizable) - Snap single icon - Snap all icons in entire folder or current directory -- Experimental feature: Snap vertically to bottom -- Experimental feature: Snap horizontally to center - -## Version -```VER: IconSnap 0.2 (26.11.2018)``` - -## Requirements -AmigaOS 2.04 +- Supports OS3.5 Icons (requires icon.library v44) +- Snap vertically to bottom +- Snap horizontally to center ## Installation Copy IconSnap to C: -## Usage -Order your Icons in Workbench roughly the way you want them positioned, and +## How to use +Order your Icons in Workbench roughly the way you want them positioned, and then snapshot their position. After that run this tool and point it to the folder containg the Icons to be Snapshot. @@ -69,8 +64,14 @@ VERBOSE/S: Active verbose logging. Used for debugging purposes. ``` IconSnap FILE Sys:Disk.info IconSnap DIR Sys:Utilities/ -IconSnap DIR Sys:Tools PADLEFT 15 PADTOP 15 ALIGNX 5 ALIGNY 5 CENTERX BOTTOMY +IconSnap DIR Sys:Tools PADLEFT 15 PADTOP 15 ALIGNX 5 ALIGNY 5 CENTERX BOTTOMY ``` -## Bug reports and Feature requests -Post your Bug reports and Feature requests [on github](https://github.com/krustur/IconSnap/issues) +## Version history +0.3 Support for OS3.5 Icons (requires icon.library v44) +0.2 First working version/release + +## Bug reports and feature requests +Post your Bug reports and Feature requests on github: +https://github.com/krustur/IconSnap/issues + diff --git a/pack b/pack index 8cc39c8..b0496a3 100644 --- a/pack +++ b/pack @@ -5,4 +5,99 @@ IF EXISTS bin_ ENDIF makedir bin_ +echo "Updating IconSnap.readme file" + +echo > IconSnap.readme "Short: Snap Workbench icons to a virtual grid" +echo >> IconSnap.readme "Uploader: krustur@google.com (Krister Jansson)" +echo >> IconSnap.readme "Author: Krister Jansson" +echo >> IconSnap.readme "Type: util/wb" +echo >> IconSnap.readme "Version: " +echo >> IconSnap.readme "Architecture: m68k-amigaos >= 2.0.4" +echo >> IconSnap.readme "Distribution: Aminet" +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "About IconSnap:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.about.txt +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "Features:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.features.txt +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "Installation:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.installation.txt +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "How to use:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.howtouse.txt +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "Command line usage:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.cliusage.txt +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "Examples:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.examples.txt +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "Version history:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.versions.txt +echo >> IconSnap.readme "" + +echo >> IconSnap.readme "Bug reports and feature requests:" +echo >> IconSnap.readme "" +type >> IconSnap.readme readme/IconSnap.readme.bugs.txt +echo >> IconSnap.readme "" + +echo "Updating README.md" + +echo > README.md "# IconSnap" +echo >> README.md "## About" +type >> README.md readme/IconSnap.readme.about.txt +echo >> README.md "" + +echo >> README.md "#### Features" +type >> README.md readme/IconSnap.readme.features.txt +echo >> README.md "" + +echo >> README.md "## Installation" +type >> README.md readme/IconSnap.readme.installation.txt +echo >> README.md "" + +echo >> README.md "## How to use" +type >> README.md readme/IconSnap.readme.howtouse.txt +echo >> README.md "" + +echo >> README.md "### Command line usage" +type >> README.md readme/IconSnap.readme.ticks.txt +type >> README.md readme/IconSnap.readme.cliusage.txt +type >> README.md readme/IconSnap.readme.ticks.txt +echo >> README.md "" + +echo >> README.md "### Examples" +type >> README.md readme/IconSnap.readme.ticks.txt +type >> README.md readme/IconSnap.readme.examples.txt +type >> README.md readme/IconSnap.readme.ticks.txt +echo >> README.md "" + +echo >> README.md "## Version history" +type >> README.md readme/IconSnap.readme.versions.txt +echo >> README.md "" + +echo >> README.md "## Bug reports and feature requests" +type >> README.md readme/IconSnap.readme.bugs.txt +echo >> README.md "" + + + lha -a a bin_/IconSnap.lha IconSnap.readme IconSnap + +echo "Make sure given version matches IconSnap executable version" +version IconSnap full \ No newline at end of file diff --git a/readme/IconSnap.readme.about.txt b/readme/IconSnap.readme.about.txt new file mode 100644 index 0000000..e55d595 --- /dev/null +++ b/readme/IconSnap.readme.about.txt @@ -0,0 +1,7 @@ +IconSnap is a command line utility that snaps Workbench icons to a virtual +grid. + +Have you ever felt limited by Workbench's ability to layout the icons? This +util aids you in your struggles by allowing you to roughly position your +icons in Workbench any way you want, and then run this util to snap your +Icons to a given grid. \ No newline at end of file diff --git a/readme/IconSnap.readme.bugs.txt b/readme/IconSnap.readme.bugs.txt new file mode 100644 index 0000000..e19826c --- /dev/null +++ b/readme/IconSnap.readme.bugs.txt @@ -0,0 +1,2 @@ +Post your Bug reports and Feature requests on github: +https://github.com/krustur/IconSnap/issues \ No newline at end of file diff --git a/readme/IconSnap.readme.cliusage.txt b/readme/IconSnap.readme.cliusage.txt new file mode 100644 index 0000000..dd5b897 --- /dev/null +++ b/readme/IconSnap.readme.cliusage.txt @@ -0,0 +1,31 @@ +IconSnap FILE/K,DIR/K,PADLEFT/N,PADTOP/N,ALIGNX/N,ALIGNY/N, + CENTERX/S,BOTTOMY/S,VERBOSE/S + +FILE/K: Single File or Folder to Snap. Can point to either the + actual file/folder or it's associated .info file. + +DIR/K: Folder containing Files and Folders to Snap. If you + want to snap the actual folder, use the FILE parameter + instead. + +PADLEFT/N: Use this option to create some Padding to the left of + the Snapped Icons. + +PADTOP/N: Use this option to create some Padding above the Snapped + Icons. + +ALIGNX/N: Number of pixels in the virual grid on the X axis. + +ALIGNY/N: Number of pixels in the virual grid on the Y axis. + +CENTERX/S: Snap horizontally to center of the Icon. + NOTE: A bug in the code, that reads the Icon width and + heigth incorrectly, results in this feature not behaving + as expected! + +BOTTOMY/S: Snap vertically to the bottom of the Icon. + NOTE: A bug in the code, that reads the Icon width and + heigth incorrectly, results in this feature not behaving + as expected! + +VERBOSE/S: Active verbose logging. Used for debugging purposes. \ No newline at end of file diff --git a/readme/IconSnap.readme.examples.txt b/readme/IconSnap.readme.examples.txt new file mode 100644 index 0000000..056826e --- /dev/null +++ b/readme/IconSnap.readme.examples.txt @@ -0,0 +1,3 @@ +IconSnap FILE Sys:Disk.info +IconSnap DIR Sys:Utilities/ +IconSnap DIR Sys:Tools PADLEFT 15 PADTOP 15 ALIGNX 5 ALIGNY 5 CENTERX BOTTOMY \ No newline at end of file diff --git a/readme/IconSnap.readme.features.txt b/readme/IconSnap.readme.features.txt new file mode 100644 index 0000000..47b723d --- /dev/null +++ b/readme/IconSnap.readme.features.txt @@ -0,0 +1,7 @@ +- Snap Workbench icons to grid (x and y individually customizable) +- Add Padding to left and top (individually customizable) +- Snap single icon +- Snap all icons in entire folder or current directory +- Supports OS3.5 Icons (requires icon.library v44) +- Snap vertically to bottom +- Snap horizontally to center \ No newline at end of file diff --git a/readme/IconSnap.readme.howtouse.txt b/readme/IconSnap.readme.howtouse.txt new file mode 100644 index 0000000..4257b44 --- /dev/null +++ b/readme/IconSnap.readme.howtouse.txt @@ -0,0 +1,3 @@ +Order your Icons in Workbench roughly the way you want them positioned, and +then snapshot their position. After that run this tool and point it to the +folder containg the Icons to be Snapshot. \ No newline at end of file diff --git a/readme/IconSnap.readme.installation.txt b/readme/IconSnap.readme.installation.txt new file mode 100644 index 0000000..5f20d4e --- /dev/null +++ b/readme/IconSnap.readme.installation.txt @@ -0,0 +1 @@ +Copy IconSnap to C: \ No newline at end of file diff --git a/readme/IconSnap.readme.ticks.txt b/readme/IconSnap.readme.ticks.txt new file mode 100644 index 0000000..4f1408d --- /dev/null +++ b/readme/IconSnap.readme.ticks.txt @@ -0,0 +1 @@ +``` \ No newline at end of file diff --git a/readme/IconSnap.readme.versions.txt b/readme/IconSnap.readme.versions.txt new file mode 100644 index 0000000..cbaa77f --- /dev/null +++ b/readme/IconSnap.readme.versions.txt @@ -0,0 +1,2 @@ +0.3 Support for OS3.5 Icons (requires icon.library v44) +0.2 First working version/release \ No newline at end of file diff --git a/src/main.c b/src/main.c index 20668f2..9bcdfe6 100644 --- a/src/main.c +++ b/src/main.c @@ -30,7 +30,7 @@ extern size_t __stack_usage; // Version tag -#define VERSTAG "\0$VER: IconSnap 0.2 (26.11.2018)" +#define VERSTAG "\0$VER: IconSnap 0.3 (30.11.2018)" unsigned char versiontag[] = VERSTAG; // Build Platform