.TH "LastUsedStyle" 3 "Version 0.200.1-dev" "QElectroTech" \" -*- nroff -*-
.ad l
.nh
.SH NAME
LastUsedStyle \- The \fBLastUsedStyle\fP class Session-scoped "last used" style for new shapes and free text created on the diagram canvas: whatever pen/brush/font was last applied through the properties editors becomes the starting point for the next new item of that type, the way most drawing tools behave\&.  

.SH SYNOPSIS
.br
.PP
.PP
\fR#include <lastusedstyle\&.h>\fP
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static bool \fBhasShapePen\fP ()"
.br
.ti -1c
.RI "static QPen \fBshapePen\fP ()"
.br
.ti -1c
.RI "static void \fBsetShapePen\fP (const QPen &pen)"
.br
.RI "\fBLastUsedStyle::setShapePen\fP Record \fIpen\fP as the last-used shape pen for this session\&. "
.ti -1c
.RI "static bool \fBhasShapeBrush\fP ()"
.br
.ti -1c
.RI "static QBrush \fBshapeBrush\fP ()"
.br
.ti -1c
.RI "static void \fBsetShapeBrush\fP (const QBrush &brush)"
.br
.RI "\fBLastUsedStyle::setShapeBrush\fP Record \fIbrush\fP as the last-used shape brush for this session\&. "
.ti -1c
.RI "static bool \fBhasTextFont\fP ()"
.br
.ti -1c
.RI "static QFont \fBtextFont\fP ()"
.br
.ti -1c
.RI "static void \fBsetTextFont\fP (const QFont &font)"
.br
.RI "\fBLastUsedStyle::setTextFont\fP Record \fIfont\fP as the last-used free text font for this session\&. "
.in -1c
.SS "Private Member Functions"

.in +1c
.ti -1c
.RI "\fBLastUsedStyle\fP ()=delete"
.br
.in -1c
.SS "Static Private Attributes"

.in +1c
.ti -1c
.RI "static QPen \fBm_shape_pen\fP"
.br
.ti -1c
.RI "static bool \fBm_has_shape_pen\fP = false"
.br
.ti -1c
.RI "static QBrush \fBm_shape_brush\fP"
.br
.ti -1c
.RI "static bool \fBm_has_shape_brush\fP = false"
.br
.ti -1c
.RI "static QFont \fBm_text_font\fP"
.br
.ti -1c
.RI "static bool \fBm_has_text_font\fP = false"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fBLastUsedStyle\fP class Session-scoped "last used" style for new shapes and free text created on the diagram canvas: whatever pen/brush/font was last applied through the properties editors becomes the starting point for the next new item of that type, the way most drawing tools behave\&. 

Deliberately in-memory only, not QSettings-backed: this is a live "what did I just use" value for the current editing session, not an app-wide default (that's already covered by the Preferences dialog's font setting, read as the fallback when nothing has been set yet)\&. 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "LastUsedStyle::LastUsedStyle ()\fR [private]\fP, \fR [delete]\fP"

.SH "Member Function Documentation"
.PP 
.SS "bool LastUsedStyle::hasShapeBrush ()\fR [static]\fP"

.PP
\fBReturns\fP
.RS 4
true if a shape brush was set this session 
.RE
.PP

.SS "bool LastUsedStyle::hasShapePen ()\fR [static]\fP"

.PP
\fBReturns\fP
.RS 4
true if a shape pen was set this session 
.RE
.PP

.SS "bool LastUsedStyle::hasTextFont ()\fR [static]\fP"

.PP
\fBReturns\fP
.RS 4
true if a text font was set this session 
.RE
.PP

.SS "void LastUsedStyle::setShapeBrush (const QBrush & brush)\fR [static]\fP"

.PP
\fBLastUsedStyle::setShapeBrush\fP Record \fIbrush\fP as the last-used shape brush for this session\&. 
.PP
\fBParameters\fP
.RS 4
\fIbrush\fP 
.RE
.PP

.SS "void LastUsedStyle::setShapePen (const QPen & pen)\fR [static]\fP"

.PP
\fBLastUsedStyle::setShapePen\fP Record \fIpen\fP as the last-used shape pen for this session\&. 
.PP
\fBParameters\fP
.RS 4
\fIpen\fP 
.RE
.PP

.SS "void LastUsedStyle::setTextFont (const QFont & font)\fR [static]\fP"

.PP
\fBLastUsedStyle::setTextFont\fP Record \fIfont\fP as the last-used free text font for this session\&. 
.PP
\fBParameters\fP
.RS 4
\fIfont\fP 
.RE
.PP

.SS "QBrush LastUsedStyle::shapeBrush ()\fR [static]\fP"

.PP
\fBReturns\fP
.RS 4
the last brush applied to a shape this session 
.RE
.PP

.SS "QPen LastUsedStyle::shapePen ()\fR [static]\fP"

.PP
\fBReturns\fP
.RS 4
the last pen applied to a shape this session 
.RE
.PP

.SS "QFont LastUsedStyle::textFont ()\fR [static]\fP"

.PP
\fBReturns\fP
.RS 4
the last font applied to a free text item this session 
.RE
.PP

.SH "Member Data Documentation"
.PP 
.SS "bool LastUsedStyle::m_has_shape_brush = false\fR [static]\fP, \fR [private]\fP"

.SS "bool LastUsedStyle::m_has_shape_pen = false\fR [static]\fP, \fR [private]\fP"

.SS "bool LastUsedStyle::m_has_text_font = false\fR [static]\fP, \fR [private]\fP"

.SS "QBrush LastUsedStyle::m_shape_brush\fR [static]\fP, \fR [private]\fP"

.SS "QPen LastUsedStyle::m_shape_pen\fR [static]\fP, \fR [private]\fP"

.SS "QFont LastUsedStyle::m_text_font\fR [static]\fP, \fR [private]\fP"


.SH "Author"
.PP 
Generated automatically by Doxygen for QElectroTech from the source code\&.
