lokalize
binunitsview.cpp
Go to the documentation of this file.
95 m_catalog->push(new InsTextCmd(m_catalog, pos, KUrl::relativePath(Project::instance()->projectDir(),path)));
118 KDirWatch::self()->addFile(absPath); //TODO remember watched files to react only on them in dirty() signal handler
200 // QAction* openSource=menu.addAction(i18nc("@action:inmenu","Open source file in external program"));
201 // QAction* openTarget=menu.addAction(i18nc("@action:inmenu","Open target file in external program"));
207 QString sourceFilePath=item.sibling(item.row(),BinUnitsModel::SourceFilePath).data().toString();
QVariant data(const QModelIndex &, int role=Qt::DisplayRole) const
Definition: binunitsview.cpp:107
iterator insert(const Key &key, const T &value)
void setAlternatingRowColors(bool enable)
how undo system works: undo() and redo() functions call appropriate private method of Catalog to chan...
Definition: cmd.h:85
void setCurrentIndex(const QModelIndex &index)
Definition: binunitsview.h:62
virtual void setVisible(bool visible)
QWidget * viewport() const
int binUnitsCount() const
so DocPosition::entry may actually be < size()+binUnitsCount()
Definition: catalog.cpp:448
Definition: cmd.h:99
BinUnitsModel(Catalog *catalog, QObject *parent)
Definition: binunitsview.cpp:39
void reset()
bool isValid() const
Definition: binunitsview.h:69
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
BinUnitsView(Catalog *catalog, QWidget *parent)
Definition: binunitsview.cpp:157
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void setObjectName(const QString &name)
int row() const
void setTargetFilePath(int row, const QString &)
Definition: binunitsview.cpp:85
Definition: binunitsview.h:68
void hide()
int remove(const Key &key)
Definition: phaseswindow.h:71
void clear()
const T value(const Key &key) const
virtual void scrollTo(const QModelIndex &index, ScrollHint hint)
Definition: binunitsview.h:70
void setWidget(QWidget *widget)
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: binunitsview.cpp:100
QVariant data(int role) const
Q_SCRIPTABLE QString absolutePath(const QString &) const
Definition: project.cpp:178
QModelIndex sibling(int row, int column) const
virtual void setModel(QAbstractItemModel *model)
int column() const
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
bool contains(const Key &key) const
void show()
void setBackgroundRole(QPalette::ColorRole role)
QModelIndex currentIndex() const
void setRootIsDecorated(bool show)
QVariant headerData(int section, Qt::Orientation, int role=Qt::DisplayRole) const
Definition: binunitsview.cpp:141
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.