Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
Uic Class Reference

#include <uic.h>

+ Collaboration diagram for Uic:

Public Member Functions

 Uic (Driver *driver)
 
 ~Uic ()
 
bool printDependencies ()
 
Driverdriver () const
 
QTextStreamoutput ()
 
const Optionoption () const
 
QString pixmapFunction () const
 
void setPixmapFunction (const QString &f)
 
const DatabaseInfodatabaseInfo () const
 
const CustomWidgetsInfocustomWidgetsInfo () const
 
bool write (QIODevice *in)
 
bool write (DomUI *ui)
 
bool isButton (const QString &className) const
 
bool isContainer (const QString &className) const
 
bool isMenu (const QString &className) const
 

Detailed Description

Definition at line 29 of file uic.h.

Constructor & Destructor Documentation

◆ Uic()

Uic::Uic ( Driver * driver)

Definition at line 27 of file uic.cpp.

◆ ~Uic()

Uic::~Uic ( )
default

Member Function Documentation

◆ customWidgetsInfo()

const CustomWidgetsInfo * Uic::customWidgetsInfo ( ) const
inline

Definition at line 56 of file uic.h.

Referenced by CPP::WriteInitialization::acceptConnection(), CPP::WriteDeclaration::acceptWidget(), CPP::WriteInitialization::acceptWidget(), WriteIncludesBase::add(), Python::WriteImports::doAdd(), isButton(), isContainer(), and isMenu().

+ Here is the caller graph for this function:

◆ databaseInfo()

const DatabaseInfo * Uic::databaseInfo ( ) const
inline

Definition at line 53 of file uic.h.

Referenced by CPP::WriteDeclaration::acceptUI(), and CPP::WriteInitialization::acceptUI().

+ Here is the caller graph for this function:

◆ driver()

Driver * Uic::driver ( ) const
inline

Definition at line 38 of file uic.h.

Referenced by Python::WriteImports::acceptUI(), and write().

+ Here is the caller graph for this function:

◆ isButton()

bool Uic::isButton ( const QString & className) const

Definition at line 292 of file uic.cpp.

References className, customWidgetsInfo(), and CustomWidgetsInfo::extendsOneOf().

Referenced by CPP::WriteInitialization::acceptWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isContainer()

bool Uic::isContainer ( const QString & className) const

Definition at line 302 of file uic.cpp.

References className, customWidgetsInfo(), and CustomWidgetsInfo::extendsOneOf().

Referenced by CPP::WriteInitialization::acceptWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isMenu()

bool Uic::isMenu ( const QString & className) const

Definition at line 314 of file uic.cpp.

References className, customWidgetsInfo(), and CustomWidgetsInfo::extendsOneOf().

Referenced by CPP::WriteInitialization::acceptActionRef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ option()

const Option & Uic::option ( ) const
inline

Definition at line 44 of file uic.h.

Referenced by CPP::WriteIncludes::acceptUI().

+ Here is the caller graph for this function:

◆ output()

QTextStream & Uic::output ( )
inline

Definition at line 41 of file uic.h.

Referenced by Python::WriteImports::acceptUI().

+ Here is the caller graph for this function:

◆ pixmapFunction()

QString Uic::pixmapFunction ( ) const
inline

Definition at line 47 of file uic.h.

◆ printDependencies()

bool Uic::printDependencies ( )

Definition at line 36 of file uic.cpp.

References file, fileName, header(), Option::inputFile, QIODeviceBase::ReadOnly, QImageReader::setDevice(), and QFile::setFileName().

Referenced by Driver::printDependencies().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPixmapFunction()

void Uic::setPixmapFunction ( const QString & f)
inline

Definition at line 50 of file uic.h.

◆ write() [1/2]

bool Uic::write ( DomUI * ui)

Definition at line 220 of file uic.cpp.

References CPP::WriteDeclaration::acceptUI(), CustomWidgetsInfo::acceptUI(), DatabaseInfo::acceptUI(), Python::WriteDeclaration::acceptUI(), Validator::acceptUI(), QString::clear(), Option::copyrightHeader, Cpp, Option::headerProtection, language::language(), Option::messagePrefix(), Python, and qPrintable.

+ Here is the call graph for this function:

◆ write() [2/2]

bool Uic::write ( QIODevice * in)

Definition at line 191 of file uic.cpp.

References Qt::CaseInsensitive, driver(), qPrintable, QImageReader::setDevice(), Driver::setUseIdBasedTranslations(), and write().

Referenced by Driver::uic(), Driver::uic(), and write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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