This tool supports GUI development in GtkSharp, and automatically generates event handlers when events are added to the Glade tool's controls. What will be auto-generated Variable name of the control The event handler of the control
.net6
GtkSharp
Rider or Terminal or VisualSutdio Code
ExploerPanel - right click - edit execution configuration - external tools
Set up external tools. Set the arguments
Uncheck Run after file sync.
execution TopMenu - Tool - ExternalTool
Right-click on the Exploer bar You can run it from an external tool
Set the path of the program You must specify a macro copy perst****
-projectName $FilePath$ -fileDir $FilePath$ -saveDir $SolutionDir$
The working directory can be empty.
projectName Used for the namespace of the exported program. Rider doesn't have a macro for namespaces, so we need to fill in ProjetctPath projectPath Required to get accurate namespace fileDir The file or folder selected in Rider's explorer. saveDir The directory to be saved. The default setting is the project folder.
<Setting AddSaveFolder="" isCodeHint ="true" codeHitFolder="codeHint" />
isCodeHint We will also export a sample of the code when we export it. codeHitFolder Name of the folder with the code samples
CodeHint can be customized
Overrides the name of the class to be written out
<gladeFileMap>
<gladeFile targetFileName="" reNameClassName="" />
</gladeFileMap>
targetFileName Write the glade file name. Include extension reNameClassName Write the class name to be rewritten
You can prevent the specified grade file from being loaded.
<NoImportGladeFile>
<gladFile targetFileName="" />
</NoImportGladeFile>
The contents of the exported class can be changed
Every time you add a control to the Glade file, a declaration statement is added
using System;
using Gtk;
Using UI = Gtk.Builder.ObjectAttribute;
namespace testGtkApplication
{
partial class MainWindow
{
//[UI] private readonly Gtk.Window MainWindow = null;
[UI] private readonly Gtk.Box sdfsdfsd111 = null;
[UI] private readonly Gtk.Button _button1 = null;
}
}
Every time you add a signal to the control, an event handler statement is added.
using System;
using Gtk;
Using UI = Gtk.Builder.ObjectAttribute;
namespace testGtkApplication
{
partial class MainWindow
{
private void on__button1_Clicked(object sender , EventArgs e){
}
}
}
partial class MainWindow
Add "partial" before "class" in the class file you want to use
Use the IntelliSense feature in the name field of the handler of the grade
Enter 'On' in the Name field of the grade handler. IntelliSense will work.
If you are an open source developer, you can use all JetBrains products for free!
https://www.jetbrains.com/community/opensource
Any token on the Stellear network can be used. XLM etc This will be used for software maintenance costs.
GCZWMTY26CCFMIVCAMYZ5OOQXBAPN7VXDMQSHBZT3BFN5DFHQMXLEKEU