Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi Profile Support #14

Open
SSgumS opened this issue Jun 6, 2021 · 0 comments
Open

Multi Profile Support #14

SSgumS opened this issue Jun 6, 2021 · 0 comments

Comments

@SSgumS
Copy link
Owner

SSgumS commented Jun 6, 2021

User can save settings as profile for the script and load them and choose default between them

settings.json should refactor to this format too:

{
    "Default Profile": "Ali Fav",
    "Profiles": [
        {
            "Name": "Default",
            "Line Filter": {
                "Line Type": "Selected"
            },
            "Controls": [
                {
                    "name": "label1",
                    "x": 0,
                    "label": "Direction:",
                    "y": 0,
                    "class": "label",
                    "height": 1,
                    "width": 1
                },
                {
                    "x": 1,
                    "y": 0,
                    "class": "dropdown",
                    "items": [
                        "Horizontal",
                        "Vertical",
                        "Slant",
                        "Oval"
                    ],
                    "hint": "",
                    "value": "Horizontal",
                    "width": 1,
                    "name": "dropdown1",
                    "height": 1
                },
                {
                    "max": 1000000,
                    "x": 2,
                    "y": 0,
                    "class": "floatedit",
                    "min": -1000000,
                    "hint": "The angle:\n in case you are selecting Slant",
                    "value": 45,
                    "step": 0.01,
                    "width": 1,
                    "name": "floatedit1",
                    "height": 1
                }
            ]
        },
        {
            "Name": "Ali Fav",
            "Line Filter": {
                "Line Type": "Selected",
                "Filter Type": "Style",
                "Filter Term": "Mohsen"
            },
            "Controls": [
                {
                    "name": "label1",
                    "x": 0,
                    "label": "Direction:",
                    "y": 0,
                    "class": "label",
                    "height": 1,
                    "width": 1
                },
                {
                    "x": 1,
                    "y": 0,
                    "class": "dropdown",
                    "items": [
                        "Horizontal",
                        "Vertical",
                        "Slant",
                        "Oval"
                    ],
                    "hint": "",
                    "value": "Horizontal",
                    "width": 1,
                    "name": "dropdown1",
                    "height": 1
                },
                {
                    "max": 1000000,
                    "x": 2,
                    "y": 0,
                    "class": "floatedit",
                    "min": -1000000,
                    "hint": "The angle:\n in case you are selecting Slant",
                    "value": 45,
                    "step": 0.01,
                    "width": 1,
                    "name": "floatedit1",
                    "height": 1
                }
            ]
        }
    ]
}
@DrunkSimurgh DrunkSimurgh self-assigned this Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants