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

Add application settings file: settings.json #4

Closed
GoogleCodeExporter opened this issue Aug 28, 2015 · 12 comments
Closed

Add application settings file: settings.json #4

GoogleCodeExporter opened this issue Aug 28, 2015 · 12 comments

Comments

@GoogleCodeExporter
Copy link

In settings file we could have options for customizing application's window, 
some of the options might allow setting:
 * default window size
 * minimum/maximum window size when resizing
 * disable maximize button
 * center the window on the screen

Original issue reported on code.google.com by [email protected] on 13 Jan 2013 at 1:19

@GoogleCodeExporter
Copy link
Author

Minimum & maximum window size is set in MainFrame::OnGetMinMaxInfo().

Original comment by [email protected] on 14 Jan 2013 at 7:46

@GoogleCodeExporter
Copy link
Author

Maximize box can be disabled with this code:

    mainFrame.SetWindowLongW(GWL_STYLE, mainFrame.GetWindowLongW(GWL_STYLE) & ~WS_MAXIMIZEBOX);

Original comment by [email protected] on 14 Jan 2013 at 7:53

@GoogleCodeExporter
Copy link
Author

Window is centered by default, allow for customization when that is
not an expected behavior, the code responsible for centering the window:

    mainFrame.CenterWindow();

Original comment by [email protected] on 14 Jan 2013 at 7:54

@GoogleCodeExporter
Copy link
Author

Add a setting to allow for opening Developer Tools using F12 key in Chrome.

Original comment by [email protected] on 14 Jan 2013 at 8:35

@GoogleCodeExporter
Copy link
Author

An example settings.json file would look like:

{
    "application": {
        "single_instance": false
    },
    "main_window": {
        "title": "PHP Desktop",
        "icon": "",
        "default_size": [1024, 768],
        "minimum_size": [800, 600],
        "maximum_size": [],
        "disable_maximize_button": false,
        "center_on_screen": true
    },
    "web_server": {
        "listen_on": ["127.0.0.1", 54007],
        "www_dir": "www",
        "php_cgi": "php\\php-cgi.exe"
    },
    "msie": {
        "on_navigation_error": {
            "redirect_to": "",
            "display_html": ""
        }
    },
    "chrome": {
        "f12_developer_tools": true
    }
}

Original comment by [email protected] on 15 Jan 2013 at 10:12

  • Changed title: Add application settings file: settings.json

@GoogleCodeExporter
Copy link
Author

Add debug option to "application":

"debug": {
    "show_console": false,
    "log_level": "INFO",
    "log_file": "debug.log"            
}

Original comment by [email protected] on 15 Jan 2013 at 10:52

@GoogleCodeExporter
Copy link
Author

Settings file is working, I've used json-parser library, it's great:
https://github.com/udp/json-parser

Original comment by [email protected] on 16 Jan 2013 at 5:48

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 16 Jan 2013 at 5:49

  • Added labels: NextRelease

@GoogleCodeExporter
Copy link
Author

Feature added in revision 01c415ff2c24. Will appear in next release.

Original comment by [email protected] on 17 Jan 2013 at 5:36

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 17 Jan 2013 at 5:36

  • Removed labels: NextRelease

@GoogleCodeExporter
Copy link
Author

I want to remove back button(Backsoace) action.

Original comment by [email protected] on 18 Jun 2015 at 9:03

@GoogleCodeExporter
Copy link
Author

Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/4

Original comment by [email protected] on 24 Aug 2015 at 3:12

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

1 participant