This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,214 additions
and
1,218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,6 @@ | |
* Authored by: alcadica <[email protected]> | ||
*/ | ||
namespace Alcadica.Actions.ProjectEditing { | ||
public const string TEMPLATE_DID_COPY = "Alcadica.Actions.ProjectEditing.TEMPLATE_DID_COPY"; | ||
public const string TEMPLATE_DIDNOT_COPY = "Alcadica.Actions.ProjectEditing.TEMPLATE_DIDNOT_COPY"; | ||
} | ||
public const string TEMPLATE_DID_COPY = "Alcadica.Actions.ProjectEditing.TEMPLATE_DID_COPY"; | ||
public const string TEMPLATE_DIDNOT_COPY = "Alcadica.Actions.ProjectEditing.TEMPLATE_DIDNOT_COPY"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,11 @@ | |
* Authored by: alcadica <[email protected]> | ||
*/ | ||
namespace Alcadica.Actions.Window { | ||
public const string FIRST_RUN = "Alcadica.Actions.Window.FIRST_RUN"; | ||
public const string FIRST_RUN_END = "Alcadica.Actions.Window.FIRST_RUN_END"; | ||
public const string QUIT = "Alcadica.Actions.Window.QUIT"; | ||
public const string SETTINGS_CLOSE = "Alcadica.Actions.Window.SETTINGS_CLOSE"; | ||
public const string SETTINGS_OPEN = "Alcadica.Actions.Window.SETTINGS_OPEN"; | ||
public const string START = "Alcadica.Actions.Window.START"; | ||
public const string SHOW_WELCOME_VIEW = "Alcadica.Actions.Window.SHOW_WELCOME_VIEW"; | ||
} | ||
public const string FIRST_RUN = "Alcadica.Actions.Window.FIRST_RUN"; | ||
public const string FIRST_RUN_END = "Alcadica.Actions.Window.FIRST_RUN_END"; | ||
public const string QUIT = "Alcadica.Actions.Window.QUIT"; | ||
public const string SETTINGS_CLOSE = "Alcadica.Actions.Window.SETTINGS_CLOSE"; | ||
public const string SETTINGS_OPEN = "Alcadica.Actions.Window.SETTINGS_OPEN"; | ||
public const string START = "Alcadica.Actions.Window.START"; | ||
public const string SHOW_WELCOME_VIEW = "Alcadica.Actions.Window.SHOW_WELCOME_VIEW"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
* | ||
* Authored by: alcadica <[email protected]> | ||
*/ | ||
using Gtk; | ||
|
||
namespace Alcadica { | ||
|
||
|
@@ -35,9 +34,9 @@ namespace Alcadica { | |
return _instance; | ||
} | ||
} | ||
|
||
public Develop () { | ||
Object( | ||
Object ( | ||
application_id: APP_ID | ||
); | ||
Intl.setlocale (LocaleCategory.ALL, ""); | ||
|
@@ -54,9 +53,9 @@ namespace Alcadica { | |
var settings = new Services.UserSettings (); | ||
|
||
Services.FileSystem.window = window; | ||
|
||
window.set_titlebar (new Views.Partials.Window.HeaderBar ()); | ||
|
||
window.title = APP_NAME; | ||
window.add (main); | ||
window.show_all (); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,9 @@ | |
* Authored by: alcadica <[email protected]> | ||
*/ | ||
|
||
namespace Alcadica.CommonRegEx { | ||
public const string PROJECT_NAME = "^[a-z\\-A-Z]+[a-z\\-A-Z0-9]+$"; | ||
public const string USER_NAME = "^([a-zA-Z]+[0-9\\s]{0,})+[^\\s]$"; | ||
public const string USER_EMAIL = "^(([\\w-]+\\.)+[\\w-]+|([a-zA-Z]{1}|[\\w-]{2,}))@((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]? [0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]? [0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|([a-zA-Z0-9]+[\\w-]+\\.)+[a-zA-Z]{1}[a-zA-Z0-9-]{1,23})$"; | ||
public const string URL = "^https?://(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"; | ||
namespace Alcadica.CommonRegEx { | ||
public const string PROJECT_NAME = "^[a-z\\-A-Z]+[a-z\\-A-Z0-9]+$"; | ||
public const string USER_NAME = "^([a-zA-Z]+[0-9\\s]{0,})+[^\\s]$"; | ||
public const string USER_EMAIL = "^(([\\w-]+\\.)+[\\w-]+|([a-zA-Z]{1}|[\\w-]{2,}))@((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]? [0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]? [0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|([a-zA-Z0-9]+[\\w-]+\\.)+[a-zA-Z]{1}[a-zA-Z0-9-]{1,23})$"; | ||
public const string URL = "^https?://(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,14 @@ | |
* | ||
* Authored by: alcadica <[email protected]> | ||
*/ | ||
namespace Alcadica.Entities.Generic { | ||
namespace Alcadica.Entities.Generic { | ||
public class KeyValuePair<TKey, TValue> : Object { | ||
public TKey key { get; set; } | ||
public TValue value { get; set; } | ||
public TKey key { get; set; } | ||
public TValue value { get; set; } | ||
|
||
public KeyValuePair(TKey key, TValue value) { | ||
this.key = key; | ||
this.value = value; | ||
} | ||
} | ||
} | ||
public KeyValuePair (TKey key, TValue value) { | ||
this.key = key; | ||
this.value = value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,10 @@ | |
* | ||
* Authored by: alcadica <[email protected]> | ||
*/ | ||
namespace Alcadica.Entities.Template { | ||
public class TemplateFile : Object { | ||
namespace Alcadica.Entities.Template { | ||
public class TemplateFile : Object { | ||
public string content { get; set; } | ||
public string path { get; set; } | ||
public TemplateFileType file_type { get; set; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ | |
* | ||
* Authored by: alcadica <[email protected]> | ||
*/ | ||
namespace Alcadica.Entities.Template { | ||
namespace Alcadica.Entities.Template { | ||
public enum TemplateFileType { | ||
Directory, | ||
File | ||
} | ||
} | ||
DIRECTORY, | ||
FILE | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,17 +18,17 @@ | |
* | ||
* Authored by: alcadica <[email protected]> | ||
*/ | ||
namespace Alcadica.Entities.Template { | ||
public class TemplateToken : Object { | ||
public static string delimiter_start = "{{"; | ||
public static string delimiter_end = "}}"; | ||
namespace Alcadica.Entities.Template { | ||
public class TemplateToken : Object { | ||
public static string delimiter_start = "{{"; | ||
public static string delimiter_end = "}}"; | ||
|
||
public string token { get; set; } | ||
public string token_value { get; set; } | ||
public string token { get; set; } | ||
public string token_value { get; set; } | ||
|
||
public TemplateToken (string name, string token_value) { | ||
this.token = TemplateToken.delimiter_start + name + TemplateToken.delimiter_end; | ||
this.token_value = token_value; | ||
} | ||
} | ||
} | ||
public TemplateToken (string name, string token_value) { | ||
this.token = TemplateToken.delimiter_start + name + TemplateToken.delimiter_end; | ||
this.token_value = token_value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,45 +19,45 @@ | |
* Authored by: alcadica <[email protected]> | ||
*/ | ||
namespace Alcadica.Services { | ||
public class ActionManager : Object { | ||
private static ActionManager _instance = null; | ||
|
||
public static ActionManager instance { | ||
get { | ||
if (_instance == null) { | ||
_instance = new ActionManager (); | ||
} | ||
return _instance; | ||
} | ||
} | ||
|
||
public SimpleActionGroup action_group { get; construct; } | ||
|
||
private ActionManager () { | ||
Object ( | ||
action_group: new SimpleActionGroup () | ||
); | ||
} | ||
|
||
public void add (string name) { | ||
SimpleAction action = new SimpleAction (name, null); | ||
this.action_group.add_action (action); | ||
} | ||
|
||
public SimpleAction get_action (string name) { | ||
if (!this.action_group.has_action (name)) { | ||
this.add (name); | ||
} | ||
return this.action_group.lookup_action (name) as SimpleAction; | ||
} | ||
|
||
public void dispatch (string name) { | ||
this.action_group.activate_action (name, null); | ||
} | ||
|
||
public void remove (string name) { | ||
this.action_group.remove_action (name); | ||
} | ||
} | ||
} | ||
public class ActionManager : Object { | ||
private static ActionManager _instance = null; | ||
|
||
public static ActionManager instance { | ||
get { | ||
if (_instance == null) { | ||
_instance = new ActionManager (); | ||
} | ||
return _instance; | ||
} | ||
} | ||
|
||
public SimpleActionGroup action_group { get; construct; } | ||
|
||
private ActionManager () { | ||
Object ( | ||
action_group: new SimpleActionGroup () | ||
); | ||
} | ||
|
||
public void add (string name) { | ||
SimpleAction action = new SimpleAction (name, null); | ||
this.action_group.add_action (action); | ||
} | ||
|
||
public SimpleAction get_action (string name) { | ||
if (!this.action_group.has_action (name)) { | ||
this.add (name); | ||
} | ||
|
||
return this.action_group.lookup_action (name) as SimpleAction; | ||
} | ||
|
||
public void dispatch (string name) { | ||
this.action_group.activate_action (name, null); | ||
} | ||
|
||
public void remove (string name) { | ||
this.action_group.remove_action (name); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.