https://github.com/iotagtk1/gtkfilegenerator
Tool to generate GtkTemplateFile
https://github.com/iotagtk1/gtkfilegenerator
csharp generator glade gtk linux
Last synced: 9 months ago
JSON representation
Tool to generate GtkTemplateFile
- Host: GitHub
- URL: https://github.com/iotagtk1/gtkfilegenerator
- Owner: iotagtk1
- Created: 2021-06-15T09:47:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-02T17:36:41.000Z (about 4 years ago)
- Last Synced: 2025-02-04T17:52:24.969Z (11 months ago)
- Topics: csharp, generator, glade, gtk, linux
- Language: C#
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### GtkFileGenerator
Generates a new template file generated by GtkSharp.Template, renaming the class.
Template.
It is convenient to use external tool registration in Rider.
#### Usage
- install GtkSharp.Template.CSharp or install gtkSharp from Nuget
- Copy and paste the class name.
- Set the arguments to GtkFileGenerator
- Run the GtkFileGenerator
#### Location of the GtkSharp template file
https://github.com/GtkSharp/GtkSharp
The templates can be installed from dotnet new.
#### nuget gtkSharp
https://www.nuget.org/packages/GtkSharp/
```
$ dotnet new --install GtkSharp.Template.CSharp
```
#### Run from a terminal
Run from a terminal You can't use macros in a terminal, so you need to put the absolute path in the projectDir.
```
$ GtkFileGenerator -projectName namespace -projectDir projectPath
```
##### Run from Rider macro can be used
Settings - Tools - External Tools
Register this app with external tools.
Set the path of the program.
Set the arguments.
```
-projectName $FilePath$ -projectDir $FileDir$
```
The working Path can be empty.
Uncheck the "Synchronize after execution" box.
When you run the GtkFileGenerator, a class file based on the template file will be generated in the project folder.
#### Modify the templates at
Modify classTemplate.txt and gladeTemplate.txt.
#### If you cannot build
When importing with Rider, please re-set the file properties to Embeded resource.
Or use AddItem to add it again.
#### Use Rider for Free
If you are an open source developer, you can use all JetBrains products for free!
https://www.jetbrains.com/community/opensource