QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BorderProperties Class Reference

The BorderProperties class This class is a container for dimensions and display properties of a diagram. More...

#include <borderproperties.h>

Collaboration diagram for BorderProperties:
Collaboration graph

Public Member Functions

 BorderProperties ()
 BorderProperties::BorderProperties constructor Initializes a BorderProperties object with default properties.
 
virtual ~BorderProperties ()
 BorderProperties::~BorderProperties destructor.
 
bool operator== (const BorderProperties &)
 BorderProperties::operator ==.
 
bool operator!= (const BorderProperties &)
 BorderProperties::operator !=.
 
void toXml (QDomElement &) const
 BorderProperties::toXml Exports dimensions as XML attributes added to element e.
 
void fromXml (QDomElement &)
 BorderProperties::fromXml Import dimensions from XML attributes of element e.
 
void toSettings (QSettings &, const QString &=QString()) const
 BorderProperties::toSettings Export dimensions in a QSettings object.
 
void fromSettings (QSettings &, const QString &=QString())
 BorderProperties::fromSettings Import dimensions from a QSettings object.
 

Static Public Member Functions

static BorderProperties defaultProperties ()
 BorderProperties::defaultProperties.
 

Public Attributes

int columns_count
 Columns count.
 
qreal columns_width
 Columns width.
 
qreal columns_header_height
 Column headers height.
 
bool display_columns
 Whether to display column headers.
 
int rows_count
 Rows count.
 
qreal rows_height
 Rows height.
 
qreal rows_header_width
 Row headers width.
 
bool display_rows
 Whether to display row headers.
 

Detailed Description

The BorderProperties class This class is a container for dimensions and display properties of a diagram.

Remarks
Attributes are public

Constructor & Destructor Documentation

◆ BorderProperties()

BorderProperties::BorderProperties ( )

BorderProperties::BorderProperties constructor Initializes a BorderProperties object with default properties.

Initializes a BorderProperties object with the following default properties:

  • 17 columns of 60.0 px wide by 20.0px high
  • 8 lines of 80.0 px high by 20.0px wide

◆ ~BorderProperties()

BorderProperties::~BorderProperties ( )
virtual

Member Function Documentation

◆ defaultProperties()

BorderProperties BorderProperties::defaultProperties ( )
static

BorderProperties::defaultProperties.

Returns
the default properties stored in the setting file
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromSettings()

void BorderProperties::fromSettings ( QSettings &  settings,
const QString &  prefix = QString() 
)

BorderProperties::fromSettings Import dimensions from a QSettings object.

Parameters
settings: QSettings object to read
prefix: prefix to be added before the names of the parameters
Here is the caller graph for this function:

◆ fromXml()

void BorderProperties::fromXml ( QDomElement &  e)

BorderProperties::fromXml Import dimensions from XML attributes of element e.

Parameters
e: XML element whose attributes will be read
Here is the caller graph for this function:

◆ operator!=()

bool BorderProperties::operator!= ( const BorderProperties bp)

BorderProperties::operator !=.

Parameters
bp: Other BorderProperties container/class.
Returns
False if it and this container are identical, true otherwise.

◆ operator==()

bool BorderProperties::operator== ( const BorderProperties bp)

BorderProperties::operator ==.

Parameters
bp: Other BorderProperties container/class.
Returns
True if it and this container are identical, false otherwise.

◆ toSettings()

void BorderProperties::toSettings ( QSettings &  settings,
const QString &  prefix = QString() 
) const

BorderProperties::toSettings Export dimensions in a QSettings object.

Parameters
settings: QSettings object to write
prefix: prefix to be added before the names of the parameters

◆ toXml()

void BorderProperties::toXml ( QDomElement &  e) const

BorderProperties::toXml Exports dimensions as XML attributes added to element e.

Parameters
e: XML element to which attributes will be added
Here is the caller graph for this function:

Member Data Documentation

◆ columns_count

int BorderProperties::columns_count

Columns count.

◆ columns_header_height

qreal BorderProperties::columns_header_height

Column headers height.

◆ columns_width

qreal BorderProperties::columns_width

Columns width.

◆ display_columns

bool BorderProperties::display_columns

Whether to display column headers.

◆ display_rows

bool BorderProperties::display_rows

Whether to display row headers.

◆ rows_count

int BorderProperties::rows_count

Rows count.

◆ rows_header_width

qreal BorderProperties::rows_header_width

Row headers width.

◆ rows_height

qreal BorderProperties::rows_height

Rows height.


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