Beispiel #1
0
	def __init__(self, parent, prefpanel):
		CMS_Tab.__init__(self, parent, prefpanel)

		self.intents = INTENTS.keys()
		self.intents.sort()
		self.intents_names = []
		for item in self.intents:
			self.intents_names.append(INTENTS[item])

		panel = wal.VPanel(self.panel)

		#Intents panel
		int_panel = wal.LabeledPanel(panel, _('Rendering intents'))
		grid = wal.GridPanel(int_panel, vgap=5, hgap=5)

		grid.pack(wal.Label(grid, _('Display/RGB intent:')))
		self.display = wal.Combolist(grid, items=self.intents_names)
		self.display.set_active(self.intents.index(config.cms_rgb_intent))
		grid.pack(self.display)

		grid.pack(wal.Label(grid, _('Printer/CMYK intent:')))
		self.printer = wal.Combolist(grid, items=self.intents_names)
		self.printer.set_active(self.intents.index(config.cms_cmyk_intent))
		grid.pack(self.printer)

		int_panel.pack(grid, align_center=False, padding_all=10)
		panel.pack(int_panel, fill=True)

		#Simulate printer panel
		txt = _('Simulate printer on the screen')
		self.simulate_check = wal.Checkbox(panel, txt,
									config.cms_proofing,
									onclick=self.activate_simulation)

		sm_panel = wal.LabeledPanel(panel, widget=self.simulate_check)

		txt = _('Mark colors that are out of the printer gamut')
		self.outcolors_check = wal.Checkbox(sm_panel, txt,
									config.cms_gamutcheck,
									onclick=self.activate_outcolors)
		sm_panel.pack(self.outcolors_check, align_center=False, padding_all=5)

		clrpanel = wal.HPanel(sm_panel)
		clrpanel.pack((20, 1))
		self.alarm_label = wal.Label(clrpanel, _('Alarm color:'))
		clrpanel.pack(self.alarm_label, padding=5)
		self.color_btn = wal.ColorButton(clrpanel, config.cms_alarmcodes)
		clrpanel.pack(self.color_btn)
		sm_panel.pack(clrpanel, align_center=False, padding_all=2)

		txt = _('Separation for SPOT colors')
		self.separation_check = wal.Checkbox(sm_panel, txt,
									config.cms_proof_for_spot,
									onclick=self.activate_outcolors)
		sm_panel.pack(self.separation_check, align_center=False, padding_all=5)

		panel.pack(sm_panel, fill=True, padding=5)

		#Bottom checks
		txt = _('Use Blackpoint Compensation')
		self.bpc_check = wal.Checkbox(panel, txt,
									config.cms_bpc_flag)
		panel.pack(self.bpc_check, align_center=False)

		txt = _('Use Black preserving transforms')
		self.bpt_check = wal.Checkbox(panel, txt,
									config.cms_bpt_flag)
		panel.pack(self.bpt_check, align_center=False)

		self.panel.pack(panel, fill=True, padding_all=5)
		self.activate_simulation()
Beispiel #2
0
    def __init__(self, parent, prefpanel):
        CmsTab.__init__(self, parent, prefpanel)

        self.intents = INTENTS.keys()
        self.intents.sort()
        self.intents_names = []
        for item in self.intents:
            self.intents_names.append(INTENTS[item])

        panel = wal.VPanel(self.panel)

        # Intents panel
        int_panel = wal.LabeledPanel(panel, _('Rendering intents'))
        grid = wal.GridPanel(int_panel, vgap=5, hgap=5)

        grid.pack(wal.Label(grid, _('Display/RGB intent:')))
        self.display = wal.Combolist(grid, items=self.intents_names)
        self.display.set_active(self.intents.index(config.cms_rgb_intent))
        grid.pack(self.display)

        grid.pack(wal.Label(grid, _('Printer/CMYK intent:')))
        self.printer = wal.Combolist(grid, items=self.intents_names)
        self.printer.set_active(self.intents.index(config.cms_cmyk_intent))
        grid.pack(self.printer)

        int_panel.pack(grid, align_center=False, padding_all=10)
        panel.pack(int_panel, fill=True)

        # Simulate printer panel
        txt = _('Simulate printer on the screen')
        self.simulate_check = wal.Checkbox(panel,
                                           txt,
                                           config.cms_proofing,
                                           onclick=self.activate_simulation)

        sm_panel = wal.LabeledPanel(panel, widget=self.simulate_check)

        txt = _("Highlight colors that are outside of the printer's gamut")
        self.outcolors_check = wal.Checkbox(sm_panel,
                                            txt,
                                            config.cms_gamutcheck,
                                            onclick=self.activate_outcolors)
        sm_panel.pack(self.outcolors_check, align_center=False, padding_all=5)

        clrpanel = wal.HPanel(sm_panel)
        clrpanel.pack((20, 1))
        self.alarm_label = wal.Label(clrpanel, _('Highlight color:'))
        clrpanel.pack(self.alarm_label, padding=5)
        self.color_btn = wal.ColorButton(clrpanel, config.cms_alarmcodes)
        clrpanel.pack(self.color_btn)
        sm_panel.pack(clrpanel, align_center=False, padding_all=2)

        txt = _('Separation for SPOT colors')
        self.separation_check = wal.Checkbox(sm_panel,
                                             txt,
                                             config.cms_proof_for_spot,
                                             onclick=self.activate_outcolors)
        sm_panel.pack(self.separation_check, align_center=False, padding_all=5)

        panel.pack(sm_panel, fill=True, padding=5)

        # Bottom checks
        txt = _('Use Blackpoint Compensation')
        self.bpc_check = wal.Checkbox(panel, txt, config.cms_bpc_flag)
        panel.pack(self.bpc_check, align_center=False)

        if wal.IS_MSW:
            panel.pack((5, 5))

        txt = _('Use Black preserving transforms')
        self.bpt_check = wal.Checkbox(panel, txt, config.cms_bpt_flag)
        panel.pack(self.bpt_check, align_center=False)

        self.panel.pack(panel, fill=True, padding_all=5)
        self.activate_simulation()