Exemplo n.º 1
0
 def __init__(self, parent):
     fsui.Panel.__init__(self, parent)
     AmigaEnableBehavior(self)
     self.layout = fsui.VerticalLayout()
     self.text_field = fsui.TextField(self, "")
     hori_layout = fsui.HorizontalLayout()
     self.layout.add(hori_layout, fill=True, margin=10)
     hori_layout.add(self.text_field, expand=True)
     self.help_button = HelpButton(self,
                                   "https://fs-uae.net/whdload-support")
     hori_layout.add(self.help_button, margin_left=10)
     self.initialize_from_config()
     self.set_config_handlers()
Exemplo n.º 2
0
    def __init__(self, parent):
        fsui.Panel.__init__(self, parent)
        AmigaEnableBehavior(self)
        self.layout = fsui.VerticalLayout()

        hori_layout = fsui.HorizontalLayout()
        self.layout.add(hori_layout, fill=True)

        label = fsui.Label(self, gettext("Kickstart ROM") + ":")
        hori_layout.add(label, margin_left=10, margin_right=10)

        kickstart_types = [
            gettext("Default"),
            gettext("Custom"),
            gettext("Internal"),
        ]
        self.kickstart_type_choice = fsui.Choice(self, kickstart_types)
        hori_layout.add(self.kickstart_type_choice, margin=10)

        self.text_field = fsui.TextField(self, "", read_only=True)
        hori_layout.add(self.text_field, expand=True, margin=10)

        self.browse_button = IconButton(self, "browse_file_16.png")
        self.browse_button.set_tooltip(gettext("Browse for File"))
        self.browse_button.activated.connect(self.on_browse_button)
        hori_layout.add(self.browse_button, margin=10)

        hori_layout = fsui.HorizontalLayout()
        self.layout.add(hori_layout, fill=True)

        label = fsui.Label(self, gettext("Extended ROM") + ":")
        hori_layout.add(label, margin_left=10, margin_right=10)
        # self.layout.add_spacer(0)

        kickstart_types = [gettext("Default"), gettext("Custom")]
        self.ext_rom_type_choice = fsui.Choice(self, kickstart_types)
        hori_layout.add(self.ext_rom_type_choice, margin_right=10)

        self.ext_text_field = fsui.TextField(self, "", read_only=True)
        hori_layout.add(self.ext_text_field, expand=True, margin_right=10)

        self.ext_browse_button = IconButton(self, "browse_file_16.png")
        self.ext_browse_button.set_tooltip(gettext("Browse for File"))
        self.ext_browse_button.activated.connect(self.on_ext_browse_button)
        hori_layout.add(self.ext_browse_button, margin_right=10)

        self.initialize_from_config()
        self.set_config_handlers()
Exemplo n.º 3
0
 def __init__(self, parent):
     fsui.Panel.__init__(self, parent)
     AmigaEnableBehavior(self)
     self.layout = fsui.VerticalLayout()
     self.hori_layout = None
     self.hori_counter = 0
     config_widget_factory = ConfigWidgetFactory()
     self.add_widget(config_widget_factory.create(self, Option.CHIP_MEMORY))
     self.add_widget(
         config_widget_factory.create(self, Option.MOTHERBOARD_RAM))
     self.add_widget(config_widget_factory.create(self, Option.SLOW_MEMORY))
     self.add_widget(
         config_widget_factory.create(self, Option.ZORRO_III_MEMORY))
     self.add_widget(config_widget_factory.create(self, Option.FAST_MEMORY))
     self.add_widget(
         config_widget_factory.create(self, Option.ACCELERATOR_MEMORY))
     self.add_widget(fsui.Label(self, ""))
     self.add_widget(
         config_widget_factory.create(self, Option.GRAPHICS_MEMORY))
Exemplo n.º 4
0
    def __init__(self, parent, index):
        fsui.Panel.__init__(self, parent)
        AmigaEnableBehavior(self)
        self.layout = fsui.VerticalLayout()

        self.index = index
        self.config_key = "hard_drive_{0}".format(index)
        self.config_key_sha1 = "x_hard_drive_{0}_sha1".format(index)

        # if index == 0:
        #     # heading_label = fsui.HeadingLabel(self,
        #     #         _("Hard Drive {0}").format(index + 1))
        #     heading_label = fsui.HeadingLabel(self, gettext("Hard Drives"))
        #     self.layout.add(heading_label, margin_bottom=20)
        #     self.layout.add_spacer(0)

        hori_layout = fsui.HorizontalLayout()
        self.layout.add(hori_layout, fill=True)

        self.eject_button = IconButton(self, "eject_button.png")
        self.eject_button.set_tooltip(gettext("Eject"))
        self.eject_button.activated.connect(self.on_eject_button)
        hori_layout.add(self.eject_button)

        self.text_field = fsui.TextField(self, "", read_only=True)
        hori_layout.add(self.text_field, expand=True, margin_left=10)

        self.browse_button = IconButton(self, "browse_folder_16.png")
        self.browse_button.set_tooltip(gettext("Browse for Folder"))
        self.browse_button.activated.connect(self.on_browse_folder_button)
        hori_layout.add(self.browse_button, margin_left=10)

        self.browse_button = IconButton(self, "browse_file_16.png")
        self.browse_button.set_tooltip(gettext("Browse for File"))
        self.browse_button.activated.connect(self.on_browse_file_button)
        hori_layout.add(self.browse_button, margin_left=10)

        self.initialize_from_config()
        self.set_config_handlers()