• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

Public Slots | Signals | Public Member Functions | Static Public Member Functions | List of all members
Project Class Reference

#include <project.h>

Inheritance diagram for Project:
Inheritance graph
[legend]

Public Slots

Q_SCRIPTABLE QString absolutePath (const QString &) const
 
GlossaryNS::GlossaryWindow * defineNewTerm (QString en=QString(), QString target=QString())
 
Q_SCRIPTABLE QString desirablePath () const
 
Q_SCRIPTABLE void init (const QString &path, const QString &kind, const QString &id, const QString &sourceLang, const QString &targetLang)
 
Q_SCRIPTABLE bool isTmSupported () const
 
Q_SCRIPTABLE QString kind () const
 
void populateDirModel ()
 
void populateGlossary ()
 
Q_SCRIPTABLE void setDesirablePath (const QString &path)
 
GlossaryNS::GlossaryWindow * showGlossary ()
 
void showTMManager ()
 
Q_SCRIPTABLE QString sourceLangCode () const
 
Q_SCRIPTABLE QString targetLangCode () const
 
Q_SCRIPTABLE QString templatesRoot () const
 
Q_SCRIPTABLE QString translationsRoot () const
 

Signals

Q_SCRIPTABLE void loaded ()
 

Public Member Functions

 Project ()
 
virtual ~Project ()
 
QString altTransDir () const
 
QString branchDir () const
 
GlossaryNS::Glossary * glossary () const
 
QString glossaryPath () const
 
bool isLoaded () const
 
void load (const QString &file)
 
ProjectModel * model ()
 
QString path () const
 
QString poDir () const
 
QString potDir () const
 
QString projectDir () const
 
QString qaPath () const
 
bool queryCloseForAuxiliaryWindows ()
 
void save ()
 
void setDefaults ()
 
- Public Member Functions inherited from ProjectBase
 ProjectBase (KSharedConfig::Ptr config=KGlobal::config())
 
 ~ProjectBase ()
 
QString accel () const
 
QString altDir () const
 
QString branchDir () const
 
QString glossaryTbx () const
 
QString kind () const
 
QString langCode () const
 
QString mailingList () const
 
QString mainQA () const
 
QString markup () const
 
QString poBaseDir () const
 
QString potBaseDir () const
 
QString projectID () const
 
void setAccel (const QString &v)
 
void setAltDir (const QString &v)
 
void setBranchDir (const QString &v)
 
void setGlossaryTbx (const QString &v)
 
void setKind (const QString &v)
 
void setLangCode (const QString &v)
 
void setMailingList (const QString &v)
 
void setMainQA (const QString &v)
 
void setMarkup (const QString &v)
 
void setPoBaseDir (const QString &v)
 
void setPotBaseDir (const QString &v)
 
void setProjectID (const QString &v)
 
void setSourceLangCode (const QString &v)
 
void setTargetLangCode (const QString &v)
 
void setWordWrap (int v)
 
QString sourceLangCode () const
 
QString targetLangCode () const
 
int wordWrap () const
 

Static Public Member Functions

static Project * instance ()
 
static ProjectLocal * local ()
 

Additional Inherited Members

- Protected Attributes inherited from ProjectBase
QString mAccel
 
QString mAltDir
 
QString mBranchDir
 
QString mGlossaryTbx
 
QString mKind
 
QString mLangCode
 
QString mMailingList
 
QString mMainQA
 
QString mMarkup
 
QString mPoBaseDir
 
QString mPotBaseDir
 
QString mProjectID
 
QString mSourceLangCode
 
QString mTargetLangCode
 
int mWordWrap
 

Detailed Description

Singleton object that represents project.

It is shared between EditorWindow 'mainwindows' that use the same project file. Keeps project's KDirModel, Glossary and kross::actions

GUI for config handling is implemented in prefs.cpp

Singleton object that represents project

Definition at line 51 of file project.h.

Constructor & Destructor Documentation

Project::Project ( )
explicit

Definition at line 77 of file project.cpp.

Project::~Project ( )
virtual

Definition at line 109 of file project.cpp.

Member Function Documentation

QString Project::absolutePath ( const QString &  possiblyRelPath) const
slot

Definition at line 178 of file project.cpp.

QString Project::altTransDir ( ) const
inline

Definition at line 74 of file project.h.

QString Project::branchDir ( ) const
inline

Definition at line 70 of file project.h.

GlossaryNS::GlossaryWindow * Project::defineNewTerm ( QString  en = QString(),
QString  target = QString() 
)
slot

Definition at line 211 of file project.cpp.

Q_SCRIPTABLE QString Project::desirablePath ( ) const
inlineslot

Definition at line 96 of file project.h.

GlossaryNS::Glossary* Project::glossary ( ) const
inline

Definition at line 73 of file project.h.

QString Project::glossaryPath ( ) const
inline

Definition at line 71 of file project.h.

void Project::init ( const QString &  path,
const QString &  kind,
const QString &  id,
const QString &  sourceLang,
const QString &  targetLang 
)
slot

Definition at line 279 of file project.cpp.

Project * Project::instance ( )
static

Definition at line 67 of file project.cpp.

bool Project::isLoaded ( ) const
inline

Definition at line 62 of file project.h.

bool Project::isTmSupported ( ) const
slot

Definition at line 234 of file project.cpp.

Q_SCRIPTABLE QString Project::kind ( ) const
inlineslot

Definition at line 91 of file project.h.

void Project::load ( const QString &  file)

Definition at line 115 of file project.cpp.

Q_SCRIPTABLE void Project::loaded ( )
signal
static ProjectLocal* Project::local ( )
inlinestatic

Definition at line 116 of file project.h.

ProjectModel * Project::model ( )

Definition at line 265 of file project.cpp.

QString Project::path ( ) const
inline

Definition at line 66 of file project.h.

QString Project::poDir ( ) const
inline

Definition at line 68 of file project.h.

void Project::populateDirModel ( )
slot

Definition at line 190 of file project.cpp.

void Project::populateGlossary ( )
slot

Definition at line 201 of file project.cpp.

QString Project::potDir ( ) const
inline

Definition at line 69 of file project.h.

QString Project::projectDir ( ) const
inline

Definition at line 67 of file project.h.

QString Project::qaPath ( ) const
inline

Definition at line 72 of file project.h.

bool Project::queryCloseForAuxiliaryWindows ( )

Definition at line 226 of file project.cpp.

void Project::save ( )

Definition at line 256 of file project.cpp.

void Project::setDefaults ( )

Definition at line 273 of file project.cpp.

Q_SCRIPTABLE void Project::setDesirablePath ( const QString &  path)
inlineslot

Definition at line 95 of file project.h.

GlossaryNS::GlossaryWindow * Project::showGlossary ( )
slot

Definition at line 206 of file project.cpp.

void Project::showTMManager ( )
slot

Definition at line 240 of file project.cpp.

Q_SCRIPTABLE QString Project::sourceLangCode ( ) const
inlineslot

Definition at line 88 of file project.h.

Q_SCRIPTABLE QString Project::targetLangCode ( ) const
inlineslot

Definition at line 87 of file project.h.

Q_SCRIPTABLE QString Project::templatesRoot ( ) const
inlineslot

Definition at line 84 of file project.h.

Q_SCRIPTABLE QString Project::translationsRoot ( ) const
inlineslot

Definition at line 83 of file project.h.


The documentation for this class was generated from the following files:
  • project.h
  • project.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal