diff --git a/files/settings.cfg b/files/settings.cfg index b600739..6430809 100644 --- a/files/settings.cfg +++ b/files/settings.cfg @@ -33,15 +33,58 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64' default_value=True type='check' [[[node-main]]] - display_name='Alt. Nodejs' + display_name='Node Main' default_value='' type='file' file_types='*.js' + description='A path to a nodejs script file that will be executed on startup.' [[[single-instance]]] display_name='Single Instance' default_value=True type='check' description='Restrict the app to run with only a single instance allowed at a time.' + [[[user-agent]]] + display_name='User Agent' + default_value='' + type='string' + description='Overrides the User-Agent header in http requests.' + [[[node-remote]]] + display_name='Node Remote' + default_value='' + type='string' + description='Enable calling node in remote pages. See the node-webkit manifest format for more info.' + [[[chromium-args]]] + display_name='Chromium Args' + default_value='' + type='string' + description='Specify chromium command line arguments. Example value: "--disable-accelerated-video --force-cpu-draw"' + [[[js-flags]]] + display_name='JS Flags' + default_value='' + type='string' + description='Specify flags passed to the js engine. Example value: "--harmony_proxies --harmony_collecions"' + [[[inject-js-start]]] + display_name='Inject JS Start' + default_value='' + type='file' + file_types='*.js' + description='A path to a js file that will be executed before any other script is run.' + [[[inject-js-end]]] + display_name='Inject JS End' + default_value='' + type='file' + file_types='*.js' + description='A path to a js file that will be executed after the DOM is loaded.' + [[[snapshot]]] + default_value='' + type='file' + file_types='*.bin' + description='A path to a binary file compiled with snapshot. Used if you don\'t want your code to be exposed.' + [[[additional_trust_anchors]]] + display_name='Trust Anchors' + default_value='' + type='string' + description='A list of PEM-encoded certificates. Used as additional root certificates for validation to allow connecting to services using a self-signed certificate.' [[webkit_settings]] [[[plugin]]] @@ -75,7 +118,7 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64' default_value='' type='file' file_types='*.png *.jpg *.jpeg' - description='This icon to be displayed for the windows exe of the app. Defaults to Winodow icon.' + description='This icon to be displayed for the windows exe of the app. Defaults to Window icon.' [[[width]]] default_value='640' type='string' @@ -211,8 +254,10 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64' [order] application_setting_order="""['main', 'name', 'node-main', 'description', 'version', 'keywords', - 'nodejs', 'single-instance', 'plugin', - 'java', 'page-cache']""" + 'user-agent', 'chromium-args', + 'node-remote', 'js-flags', 'inject-js-start', 'inject-js-end', + 'additional_trust_anchors', 'snapshot', + 'nodejs', 'single-instance', 'plugin', 'java', 'page-cache']""" window_setting_order = """['title', 'icon', 'mac_icon', 'exe_icon', 'position', 'width', 'height', 'min_width', 'min_height', 'max_width', 'max_height', 'toolbar', 'always-on-top', 'frame', diff --git a/main.py b/main.py index 8f3b3d0..313a892 100644 --- a/main.py +++ b/main.py @@ -525,7 +525,7 @@ class MainWindow(QtGui.QWidget, CommandBase): def create_application_settings(self): group_box = QtGui.QGroupBox("Application Settings") - vlayout = self.create_layout(self.settings['order']['application_setting_order']) + vlayout = self.create_layout(self.settings['order']['application_setting_order'], cols=4) group_box.setLayout(vlayout) return group_box @@ -545,7 +545,7 @@ class MainWindow(QtGui.QWidget, CommandBase): def create_window_settings(self): group_box = QtGui.QGroupBox("Window Settings") - vlayout = self.create_layout(self.settings['order']['window_setting_order']) + vlayout = self.create_layout(self.settings['order']['window_setting_order'], cols=4) group_box.setLayout(vlayout) return group_box @@ -786,7 +786,7 @@ class MainWindow(QtGui.QWidget, CommandBase): if __name__ == '__main__': app = QApplication(sys.argv) - frame = MainWindow(800, 500) + frame = MainWindow(1000, 500) frame.show_and_raise() sys.exit(app.exec_())