Exemplo n.º 1
0
CLayoutWizard::CLayoutWizard(QWidget *parent) :
        QDialog(parent,Qt::Sheet),
    ui(new Ui::CLayoutWizard)
{
    ui->setupUi(this);
    setWindowModality(Qt::WindowModal);
    setVisible(false);
    TitleElement.SetFont(QFont("Times New Roman",24));
    SubtitleElement.SetFont(QFont("Times New Roman",18));
    ComposerElement.SetFont(QFont("Times New Roman",12));
    NamesElement.SetFont(QFont("Times New Roman",8));
    connect(ui->topMargin,SIGNAL(Changed()),this,SLOT(UpdateMargins()));
    connect(ui->leftMargin,SIGNAL(Changed()),this,SLOT(UpdateMargins()));
    connect(ui->rightMargin,SIGNAL(Changed()),this,SLOT(UpdateMargins()));
    connect(ui->bottomMargin,SIGNAL(Changed()),this,SLOT(UpdateMargins()));
    connect(ui->tabWidget,SIGNAL(currentChanged(int)),this,SLOT(UpdateMargins()));
    connect(ui->NoteSpace,SIGNAL(valueChanged(int)),this,SLOT(SpacingTooltip(int)));
    ui->graphicsView->setScene(&S);
    Printer=new QPrinter();
    pageSetupButton=new QToolButton(ui->graphicsView);
    pageSetupButton->setProperty("transparent",true);
    pageSetupButton->setIcon(QIcon(":/preferences.png"));
    pageSetupButton->setIconSize(QSize(32,32));
    pageSetupButton->setFixedSize(QSize(36,36));
    connect(pageSetupButton,SIGNAL(clicked()),this,SLOT(ShowPageSetup()));
    UpdateMargins();
}
Exemplo n.º 2
0
LineChartCanvas::LineChartCanvas(wxWindow *parent, TemplateFrame* t_frame,
                                 Project* project, const LineChartStats& lcs_,
                                 LineChartCanvasCallbackInt* lc_canv_cb_,
                                 const wxPoint& pos, const wxSize& size)
: TemplateCanvas(parent, t_frame, project, project->GetHighlightState(), pos,
                 size, false, true),
lcs(lcs_), lc_canv_cb(lc_canv_cb_), summ_avg_circs(4, (GdaCircle*) 0),
y_axis_precision(1)
{
	LOG_MSG("Entering LineChartCanvas::LineChartCanvas");
	shps_orig_xmin = 0;
	shps_orig_ymin = 0;
	shps_orig_xmax = 100;
	shps_orig_ymax = 100;
	UpdateMargins();
	
	use_category_brushes = false;
	
	PopulateCanvas();
	ResizeSelectableShps();
	
	SetBackgroundStyle(wxBG_STYLE_CUSTOM);  // default style
    
    Bind(wxEVT_LEFT_DCLICK, &LineChartCanvas::OnDblClick, this);
    
	LOG_MSG("Exiting LineChartCanvas::LineChartCanvas");
}
Exemplo n.º 3
0
void LineChartCanvas::UpdateAll()
{
	invalidateBms();
	UpdateMargins();
	PopulateCanvas();
	Refresh();
}
Exemplo n.º 4
0
void FadeMetro::SetLabel(const QString &label)
{
	if(m_Label != label)
	{
		m_Label = label;
		UpdateMargins();
		update();
	}
}
Exemplo n.º 5
0
void FadeMetro::SetText(const QString &text)
{
	if(this->text() != text)
	{
		setText(text);
		UpdateMargins();
		update();
	}
}
Exemplo n.º 6
0
void FadeMetro::resizeEvent(QResizeEvent *event)
{
	FadeButton::resizeEvent(event);
	UpdateMargins();
	UpdateMetroRect();
}
void FadeFlicker::resizeEvent(QResizeEvent *event)
{
	FadeButton::resizeEvent(event);
	UpdateMargins();
	UpdateFlickerRect();
}