Seamly2D
Code documentation
EditLabelTemplateDialog Class Reference

#include <editlabeltemplate_dialog.h>

Inheritance diagram for EditLabelTemplateDialog:
Collaboration diagram for EditLabelTemplateDialog:

Public Member Functions

 EditLabelTemplateDialog (VAbstractPattern *doc, QWidget *parent=nullptr)
 
virtual ~EditLabelTemplateDialog ()
 
QVector< VLabelTemplateLineGetTemplate () const
 
void SetTemplate (const QVector< VLabelTemplateLine > &lines)
 
void SetPiece (const VPiece &piece)
 

Private Slots

void ShowLineDetails ()
 
void AddLine ()
 
void RemoveLine ()
 
void SaveLineText (const QString &text)
 
void SaveFontStyle (bool checked)
 
void SaveTextFormating (bool checked)
 
void NewTemplate ()
 
void ExportTemplate ()
 
void ImportTemplate ()
 
void InsertPlaceholder ()
 
void TabChanged (int index)
 
void SaveAdditionalFontSize (int i)
 

Private Member Functions

void SetupControls ()
 
void InitPlaceholdersMenu ()
 
void InitPlaceholders ()
 
QString ReplacePlaceholders (QString line) const
 
void InitPreviewLines (const QVector< VLabelTemplateLine > &lines)
 

Private Attributes

Ui::EditLabelTemplateDialog * ui
 
QMenu * m_placeholdersMenu
 
VAbstractPatternm_doc
 
QMap< QString, QPair< QString, QString > > m_placeholders
 

Detailed Description

Definition at line 71 of file editlabeltemplate_dialog.h.

Constructor & Destructor Documentation

◆ EditLabelTemplateDialog()

◆ ~EditLabelTemplateDialog()

EditLabelTemplateDialog::~EditLabelTemplateDialog ( )
virtual

Definition at line 107 of file editlabeltemplate_dialog.cpp.

References ui.

Member Function Documentation

◆ AddLine

void EditLabelTemplateDialog::AddLine ( )
privateslot

Definition at line 173 of file editlabeltemplate_dialog.cpp.

References ui.

Referenced by EditLabelTemplateDialog().

◆ ExportTemplate

void EditLabelTemplateDialog::ExportTemplate ( )
privateslot

◆ GetTemplate()

◆ ImportTemplate

void EditLabelTemplateDialog::ImportTemplate ( )
privateslot

◆ InitPlaceholders()

◆ InitPlaceholdersMenu()

void EditLabelTemplateDialog::InitPlaceholdersMenu ( )
private

◆ InitPreviewLines()

void EditLabelTemplateDialog::InitPreviewLines ( const QVector< VLabelTemplateLine > &  lines)
private

Definition at line 640 of file editlabeltemplate_dialog.cpp.

References ReplacePlaceholders(), and ui.

Referenced by TabChanged().

◆ InsertPlaceholder

void EditLabelTemplateDialog::InsertPlaceholder ( )
privateslot

Definition at line 408 of file editlabeltemplate_dialog.cpp.

References ui.

Referenced by InitPlaceholdersMenu().

◆ NewTemplate

void EditLabelTemplateDialog::NewTemplate ( )
privateslot

Definition at line 292 of file editlabeltemplate_dialog.cpp.

References ShowLineDetails(), and ui.

Referenced by EditLabelTemplateDialog().

◆ RemoveLine

void EditLabelTemplateDialog::RemoveLine ( )
privateslot

Definition at line 181 of file editlabeltemplate_dialog.cpp.

References ShowLineDetails(), and ui.

Referenced by EditLabelTemplateDialog().

◆ ReplacePlaceholders()

QString EditLabelTemplateDialog::ReplacePlaceholders ( QString  line) const
private

Definition at line 553 of file editlabeltemplate_dialog.cpp.

References m_placeholders.

Referenced by InitPreviewLines().

◆ SaveAdditionalFontSize

void EditLabelTemplateDialog::SaveAdditionalFontSize ( int  i)
privateslot

Definition at line 435 of file editlabeltemplate_dialog.cpp.

References ui.

Referenced by EditLabelTemplateDialog().

◆ SaveFontStyle

void EditLabelTemplateDialog::SaveFontStyle ( bool  checked)
privateslot

Definition at line 204 of file editlabeltemplate_dialog.cpp.

References ui.

Referenced by EditLabelTemplateDialog().

◆ SaveLineText

void EditLabelTemplateDialog::SaveLineText ( const QString &  text)
privateslot

Definition at line 194 of file editlabeltemplate_dialog.cpp.

References ui.

Referenced by EditLabelTemplateDialog().

◆ SaveTextFormating

void EditLabelTemplateDialog::SaveTextFormating ( bool  checked)
privateslot

Definition at line 229 of file editlabeltemplate_dialog.cpp.

References ui.

Referenced by EditLabelTemplateDialog().

◆ SetPiece()

◆ SetTemplate()

void EditLabelTemplateDialog::SetTemplate ( const QVector< VLabelTemplateLine > &  lines)

◆ SetupControls()

void EditLabelTemplateDialog::SetupControls ( )
private

Definition at line 448 of file editlabeltemplate_dialog.cpp.

References ui.

Referenced by ShowLineDetails().

◆ ShowLineDetails

void EditLabelTemplateDialog::ShowLineDetails ( )
privateslot

Definition at line 113 of file editlabeltemplate_dialog.cpp.

References SetupControls(), and ui.

Referenced by EditLabelTemplateDialog(), NewTemplate(), and RemoveLine().

◆ TabChanged

void EditLabelTemplateDialog::TabChanged ( int  index)
privateslot

Definition at line 419 of file editlabeltemplate_dialog.cpp.

References GetTemplate(), InitPreviewLines(), and ui.

Referenced by EditLabelTemplateDialog().

Member Data Documentation

◆ m_doc

VAbstractPattern* EditLabelTemplateDialog::m_doc
private

Definition at line 102 of file editlabeltemplate_dialog.h.

Referenced by InitPlaceholders().

◆ m_placeholders

QMap<QString, QPair<QString, QString> > EditLabelTemplateDialog::m_placeholders
private

◆ m_placeholdersMenu

QMenu* EditLabelTemplateDialog::m_placeholdersMenu
private

Definition at line 101 of file editlabeltemplate_dialog.h.

Referenced by EditLabelTemplateDialog(), and InitPlaceholdersMenu().

◆ ui


The documentation for this class was generated from the following files: