DetailsTable

Search for usage in LXR

DetailsTable Class Reference

#include <detailstable.h>

Public Member Functions

 DetailsTable ()
 
 ~DetailsTable ()
 
void clearContents ()
 
void createAsteroidCometTable (SkyObject *obj)
 
void createCoordinatesTable (SkyObject *obj, const KStarsDateTime &ut, GeoLocation *geo)
 
void createGeneralTable (SkyObject *obj)
 
void createRSTTAble (SkyObject *obj, const KStarsDateTime &ut, GeoLocation *geo)
 
QTextDocumentgetDocument ()
 
QTextCharFormat getItemNameCharFormat ()
 
QTextCharFormat getItemValueCharFormat ()
 
QTextTableFormat getTableFormat ()
 
QTextCharFormat getTableTitleCharFormat ()
 
void setItemNameCharFormat (const QTextCharFormat &format)
 
void setItemValueCharFormat (const QTextCharFormat &format)
 
void setTableFormat (const QTextTableFormat &format)
 
void setTableTitleCharFormat (const QTextCharFormat &format)
 

Detailed Description

Represents details tables that can be inserted to finder charts and logging forms.

DetailsTable class is used for creating QTextTables filled with details about objects of all types. Created tables are stored inside QTextDocument, which can be obtained by DetailsTable::getDocument() and inserted into other QTextDocument as fragment. Four types of details tables are supported: general details, position details, Rise/Set/Transit details and Asteroid/Comet details.

Author
Rafał Kułaga

Definition at line 28 of file detailstable.h.

Constructor & Destructor Documentation

◆ DetailsTable()

DetailsTable::DetailsTable ( )

Default constructor - creates empty details table.

Definition at line 25 of file detailstable.cpp.

◆ ~DetailsTable()

DetailsTable::~DetailsTable ( )

Destructor.

Definition at line 32 of file detailstable.cpp.

Member Function Documentation

◆ clearContents()

void DetailsTable::clearContents ( )

Clear current table.

Definition at line 680 of file detailstable.cpp.

◆ createAsteroidCometTable()

void DetailsTable::createAsteroidCometTable ( SkyObject * obj)

Create Asteroid/Comet details table.

Parameters
objSky object (Asteroid/Comet) for which table will be created.

Definition at line 343 of file detailstable.cpp.

◆ createCoordinatesTable()

void DetailsTable::createCoordinatesTable ( SkyObject * obj,
const KStarsDateTime & ut,
GeoLocation * geo )

Create coordinates details table.

Parameters
objSky object for which table will be created.
utDate and time.
geoGeographic location.

Definition at line 491 of file detailstable.cpp.

◆ createGeneralTable()

void DetailsTable::createGeneralTable ( SkyObject * obj)

Create general details table.

Parameters
objSkyObject for which table will be created.

Definition at line 40 of file detailstable.cpp.

◆ createRSTTAble()

void DetailsTable::createRSTTAble ( SkyObject * obj,
const KStarsDateTime & ut,
GeoLocation * geo )

Create Rise/Set/Transit details table.

Parameters
objSky object for which table will be created.
utDate and time.
geoGeographic location.

Definition at line 579 of file detailstable.cpp.

◆ getDocument()

QTextDocument * DetailsTable::getDocument ( )
inline

Get table document.

Returns
Table document.

Definition at line 126 of file detailstable.h.

◆ getItemNameCharFormat()

QTextCharFormat DetailsTable::getItemNameCharFormat ( )
inline

Get table item name character format.

Returns
Current table item name character format.

Definition at line 57 of file detailstable.h.

◆ getItemValueCharFormat()

QTextCharFormat DetailsTable::getItemValueCharFormat ( )
inline

Get table item value character format.

Returns
Current table item value character format.

Definition at line 63 of file detailstable.h.

◆ getTableFormat()

QTextTableFormat DetailsTable::getTableFormat ( )
inline

Get table format.

Returns
Current table format.

Definition at line 45 of file detailstable.h.

◆ getTableTitleCharFormat()

QTextCharFormat DetailsTable::getTableTitleCharFormat ( )
inline

Get table title character format.

Returns
Current table title character format.

Definition at line 51 of file detailstable.h.

◆ setItemNameCharFormat()

void DetailsTable::setItemNameCharFormat ( const QTextCharFormat & format)
inline

Set table item name character format.

Parameters
formatNew table item name character format.

Definition at line 81 of file detailstable.h.

◆ setItemValueCharFormat()

void DetailsTable::setItemValueCharFormat ( const QTextCharFormat & format)
inline

Set table item value character format.

Parameters
formatNew table item value character format.

Definition at line 87 of file detailstable.h.

◆ setTableFormat()

void DetailsTable::setTableFormat ( const QTextTableFormat & format)
inline

Set table format.

Parameters
formatNew table format.

Definition at line 69 of file detailstable.h.

◆ setTableTitleCharFormat()

void DetailsTable::setTableTitleCharFormat ( const QTextCharFormat & format)
inline

Set table title character format.

Parameters
formatNew table title character format.

Definition at line 75 of file detailstable.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.