[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesdk/kbabel
From: Stanislav Višňovský <visnovsky () nenya ! ms ! mff ! cuni ! cz
Date: 2005-04-24 9:08:49
Message-ID: 20050424090849.E692B62B () office ! kde ! org
[Download RAW message or body]
CVS commit by nanulo:
Added a view for the list of errors in the current entry (thanks
to Albert Cervera Areny)
CCMAIL:albertca@hotpop.com
A kbabel/errorlistview.cpp 1.1 [GPL (v2+) (+Qt exception)]
A kbabel/errorlistview.h 1.1 [GPL (v2+) (+Qt exception)]
M +2 -0 AUTHORS 1.9
M +1 -1 datatools/Makefile.am 1.9
M +2 -2 datatools/accelerators/main.cc 1.11
M +2 -2 datatools/arguments/main.cc 1.18
M +4 -3 kbabel/Makefile.am 1.62
M +18 -0 kbabel/kbabelview.cpp 1.275
M +2 -0 kbabel/main.cpp 1.84
--- kdesdk/kbabel/AUTHORS #1.8:1.9
@@ -4,2 +4,4 @@
Bram Schoenmakers <bramschoenmakers@kde.nl>
Asgeir Frimannsson <asgeirf@redhat.com>
+Albert Cervera Areny <albertca@hotpop.com>
+
--- kdesdk/kbabel/datatools/Makefile.am #1.8:1.9
@@ -4,5 +4,5 @@
# there are none, comment this out
SUBDIRS = arguments accelerators context equations pluralforms xml \
-not-translated whitespace length setfuzzy punctuation
+not-translated whitespace length setfuzzy punctuation
#pkgincludedir = $(includedir)/kbabel
--- kdesdk/kbabel/datatools/accelerators/main.cc #1.10:1.11
@@ -123,9 +123,9 @@ bool AcceleratorTool::run( const QString
if(hasError)
{
- item->appendError( "accelerator" );
+ item->appendError( "Accelerator" );
}
else
{
- item->removeError( "accelerator" );
+ item->removeError( "Accelerator" );
}
--- kdesdk/kbabel/datatools/arguments/main.cc #1.17:1.18
@@ -263,9 +263,9 @@ bool ArgumentTool::run( const QString& c
if(hasError)
{
- item->appendError( "arguments" );
+ item->appendError( "Arguments" );
}
else
{
- item->removeError( "arguments" );
+ item->removeError( "Arguments" );
}
--- kdesdk/kbabel/kbabel/Makefile.am #1.61:1.62
@@ -37,6 +37,6 @@
editorpreferences.ui \
searchpreferences.ui \
- kbcataloglistview.cpp kbcataloglistviewitem.cpp
-
+ kbcataloglistview.cpp kbcataloglistviewitem.cpp \
+ errorlistview.cpp
kde_kcfg_DATA=kbabel.kcfg
@@ -67,5 +67,6 @@
kbhighlighting.h \
kbcataloglistview.h \
- kbcataloglistviewitem.h
+ kbcataloglistviewitem.h \
+ errorlistview.h
# let automoc handle all of the meta source files (moc)
--- kdesdk/kbabel/kbabel/kbabelview.cpp #1.274:1.275
@@ -109,4 +109,5 @@
#include "taglistview.h"
#include "sourceview.h"
+#include "errorlistview.h"
#include "version.h"
@@ -538,4 +539,17 @@ of the currently displayed entry.</p></q
translist_dock->show ();
+ dock = m_mainwindow->createDockWidget( "Error List", QPixmap ());
+ // translators: Dock window caption
+ dock->setCaption(i18n("Error List"));
+ // translators: Dock tab caption
+ dock->setTabPageLabel(i18n("Errors"));
+ dock->setGeometry(50, 50, 100, 100);
+ ErrorListView* m_errorlistview = new ErrorListView(_catalog, dock, _project);
+ dock->setWidget(m_errorlistview);
+ dock->manualDock( tools, // dock target
+ KDockWidget::DockCenter, // dock site
+ 20 );
+ dock->show ();
+
connect(m_cataloglistview,SIGNAL(signalSelectionChanged(const \
KBabel::DocPosition&)) ,this,SLOT(gotoEntry(const KBabel::DocPosition&)));
@@ -548,4 +562,8 @@ of the currently displayed entry.</p></q
connect(this,SIGNAL(signalDisplayed(const KBabel::DocPosition&))
,m_sourceview,SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,SIGNAL(signalDisplayed(const KBabel::DocPosition&))
+ ,m_errorlistview,SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,SIGNAL(signalFaultyDisplayed(bool))
+ ,m_errorlistview,SLOT(updateView()));
connect(m_charselectorview, SIGNAL( characterDoubleClicked(QChar) )
,this, SLOT( insertChar(QChar) ));
--- kdesdk/kbabel/kbabel/main.cpp #1.83:1.84
@@ -545,4 +545,6 @@ int main(int argc, char **argv)
about.addCredit("Eva Brucherseifer", I18N_NOOP("String difference algorithm \
implementation"), "eva@kde.org");
+ about.addCredit("Albert Cervera Areny", I18N_NOOP("Error list for current \
entry"), "albertca@hotpop.com"); +
about.setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names")
,I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic