small cosmetic cleanups:

* delete some comments
* use lyxerr instead of cout in PanelStack
* move PanelStack into lyx::frontend namespace


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15623 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-10-30 14:39:05 +00:00
parent e918c00190
commit 65354d63a7
6 changed files with 18 additions and 13 deletions

View File

@ -39,7 +39,6 @@ using std::vector;
using std::max;
using std::ostream;
using std::string;
using std::cout;
using std::endl;
@ -205,8 +204,6 @@ void TocBackend::update()
tocstring = pit->asString(*buffer_, true);
Item const item(pit, toclevel - min_toclevel, tocstring);
tocs_["TOC"].push_back(item);
//cout << "item inserted str " << item.str()
// << " id " << item.id() << endl;
}
}

View File

@ -14,6 +14,8 @@
#include "qt_helpers.h"
#include "debug.h"
#include <QStackedWidget>
#include <QTreeWidget>
#include <QHBoxLayout>
@ -23,11 +25,13 @@
#include <iostream>
using lyx::docstring;
using std::endl;
using std::cout;
namespace lyx {
namespace frontend {
PanelStack::PanelStack(QWidget * parent)
: QWidget(parent)
@ -55,7 +59,7 @@ void PanelStack::addCategory(docstring const & n, docstring const & parent)
QString name;
lyx::ucs4_to_qstring(n, name);
cout << "addCategory n= " << lyx::to_utf8(n) << " parent= " << endl;
lyxerr[Debug::GUI] << "addCategory n= " << lyx::to_utf8(n) << " parent= " << endl;
if (parent.empty()) {
item = new QTreeWidgetItem(list_);
@ -121,4 +125,7 @@ QSize PanelStack::sizeHint() const
qMax(list_->height(), stack_->height()));
}
} // namespace frontend
} // namespace lyx
#include "panelstack_moc.cpp"

View File

@ -24,7 +24,9 @@ class QTreeWidget;
class QTreeWidgetItem;
class QStackedWidget;
//namespace lyx {
namespace lyx {
namespace frontend {
class PanelStack : public QWidget
{
@ -64,7 +66,7 @@ private:
QStackedWidget * stack_;
};
//} // namespace lyx
} // namespace frontend
} // namespace lyx
#endif // PANELSTACK_H

View File

@ -34,7 +34,7 @@
<number>6</number>
</property>
<item>
<widget class="PanelStack" name="docPS" />
<widget class="lyx::frontend::PanelStack" name="docPS" />
</item>
<item>
<layout class="QHBoxLayout" >
@ -163,7 +163,7 @@
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
<class>PanelStack</class>
<class>lyx::frontend::PanelStack</class>
<extends></extends>
<header>panelstack.h</header>
<container>1</container>

View File

@ -34,7 +34,7 @@
<number>6</number>
</property>
<item>
<widget class="PanelStack" name="prefsPS" />
<widget class="lyx::frontend::PanelStack" name="prefsPS" />
</item>
<item>
<layout class="QHBoxLayout" >
@ -107,7 +107,7 @@
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
<class>PanelStack</class>
<class>lyx::frontend::PanelStack</class>
<extends></extends>
<header>panelstack.h</header>
<container>1</container>

View File

@ -40,7 +40,6 @@ using std::vector;
using std::max;
using std::ostream;
using std::string;
using std::cout;
using std::endl;
namespace lyx {