コード例 #1
0
ファイル: prefs_display.cpp プロジェクト: moceap/scribus
Prefs_Display::Prefs_Display(QWidget* parent)
	: Prefs_Pane(parent)
{
	setupUi(this);
	languageChange();

	buttonRestoreDPI->setIcon(QIcon(loadIcon("screen.png")));

	connect(pageFillColorButton, SIGNAL(clicked()), this, SLOT(changePaperColor()));
	connect(frameSelectedColorButton, SIGNAL(clicked()), this, SLOT(changeFrameColor()));
	connect(frameColorButton, SIGNAL(clicked()), this, SLOT(changeNormFrameColor()));
	connect(frameGroupedColorButton, SIGNAL(clicked()), this, SLOT(changeGroupFrameColor()));
	connect(frameLinkedColorButton, SIGNAL(clicked()), this, SLOT(changeChainFrameColor()));
	connect(frameLockedColorButton, SIGNAL(clicked()), this, SLOT(changeLockFrameColor()));
	connect(frameAnnotationColorButton, SIGNAL(clicked()), this, SLOT(changeAnnotFrameColor()));
	connect(selectedPageBorderButton, SIGNAL(clicked()), this, SLOT(changePageBorderColor()));
	connect(textControlCharsButton, SIGNAL(clicked()), this, SLOT(changeControlCharsColor()));

	connect(buttonRestoreDPI, SIGNAL(clicked()), this, SLOT(restoreDisScale()));
	connect(adjustDisplaySlider, SIGNAL(valueChanged(int)), this, SLOT(setDisScale()));
	connect(rulerUnitComboBox, SIGNAL(activated(int)), this, SLOT(drawRuler()));
}
コード例 #2
0
ファイル: prefs_display.cpp プロジェクト: Sheikha443/scribus
Prefs_Display::Prefs_Display(QWidget* parent, ScribusDoc* doc) : Prefs_Pane(parent), m_doc(doc)
{
	setupUi(this);
	languageChange();

	buttonRestoreDPI->setIcon(IconManager::instance()->loadIcon("screen.png"));

	connect(pageFillColorButton, SIGNAL(clicked()), this, SLOT(changePaperColor()));

	if (m_doc == NULL && !ScCore->primaryMainWindow()->HaveDoc)
	{
		connect(scratchSpaceColorButton, SIGNAL(clicked()), this, SLOT(changeScratchColor()));
		connect(frameSelectedColorButton, SIGNAL(clicked()), this, SLOT(changeFrameColor()));
		connect(frameColorButton, SIGNAL(clicked()), this, SLOT(changeNormFrameColor()));
		connect(frameGroupedColorButton, SIGNAL(clicked()), this, SLOT(changeGroupFrameColor()));
		connect(frameLinkedColorButton, SIGNAL(clicked()), this, SLOT(changeChainFrameColor()));
		connect(frameLockedColorButton, SIGNAL(clicked()), this, SLOT(changeLockFrameColor()));
		connect(frameAnnotationColorButton, SIGNAL(clicked()), this, SLOT(changeAnnotFrameColor()));
		connect(selectedPageBorderButton, SIGNAL(clicked()), this, SLOT(changePageBorderColor()));
		connect(textControlCharsButton, SIGNAL(clicked()), this, SLOT(changeControlCharsColor()));
		connect(buttonRestoreDPI, SIGNAL(clicked()), this, SLOT(restoreDisScale()));
		connect(adjustDisplaySlider, SIGNAL(valueChanged(int)), this, SLOT(setDisScale()));
		connect(rulerUnitComboBox, SIGNAL(activated(int)), this, SLOT(drawRuler()));
	}