Qt 6.x
The Qt SDK
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 291 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 301 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 313 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 DomUI::elementCustomWidgets(), DomUI::elementIncludes(), file, fileName, header(), Option::inputFile, QIODeviceBase::ReadOnly, and QImageReader::setDevice().

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]

◆ write() [2/2]

bool Uic::write ( QIODevice in)

Definition at line 190 of file uic.cpp.

References Qt::CaseInsensitive, QScopedPointer< T, Cleanup >::data(), driver(), QScopedPointer< T, Cleanup >::isNull(), qPrintable, QScopedPointer< T, Cleanup >::reset(), 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: