[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kofficeui
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2005-10-10 8:44:03
Message-ID: 1128933843.591608.29707.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 469136 by rempt:
Oops, used the wrong license header here.
M +19 -19 kotoolbox.cc
M +25 -24 kotoolbox.h
--- trunk/koffice/lib/kofficeui/kotoolbox.cc #469135:469136
@@ -1,22 +1,22 @@
/*
- * Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
+ Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
#include <qbuttongroup.h>
#include <qnamespace.h>
#include <qtoolbutton.h>
@@ -159,9 +159,9 @@
for (uint i = 0; i < m_tools.count(); ++i) {
ToolList * tl = m_tools.at(i);
-
+
if (!tl) continue;
-
+
ToolList::Iterator it;
for ( it = tl->begin(); it != tl->end(); ++it )
if (it != 0 && it.data())
@@ -178,7 +178,7 @@
for (uint i = 0; i < m_idToActionMap.count(); ++i) {
KAction * a = m_idToActionMap.at(i);
if (!a || a->name() != toolname) continue;
-
+
m_buttonGroup->setButton(i);
return;
--- trunk/koffice/lib/kofficeui/kotoolbox.h #469135:469136
@@ -1,19 +1,20 @@
/*
- * Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
#ifndef _KIS_TOOLBOX_H_
#define _KIS_TOOLBOX_H_
@@ -44,7 +45,7 @@
Q_OBJECT
public:
-
+
KoToolBox( KMainWindow *mainWin, const char* name, KInstance* instance, int \
numberOfTooltypes); virtual ~KoToolBox();
@@ -56,32 +57,32 @@
// Called when all tools have been added by the tool controller
void setupTools();
-
+
public slots:
-
+
virtual void setOrientation ( Orientation o );
void slotButtonPressed( int id );
void slotPressButton( int id );
// Enables or disables all buttons and the corresponding actions.
void enableTools(bool enable);
-
+
void slotSetTool(const QString & toolname);
-
+
private:
QToolButton * createButton(QWidget * parent, const char* iconName, QString \
tooltip);
-
+
private:
Q_UINT32 m_numberOfButtons;
-
+
QButtonGroup * m_buttonGroup; // The invisible group of all toolbuttons, so only \
one can be active at a given time
QPtrList<ToolArea> m_toolBoxes; // For every ToolArea
typedef QMap< int, KAction*> ToolList; // The priority ordered list of tools for \
a certain tooltype
-
+
QPtrList<ToolList> m_tools;
QPtrList<KAction> m_idToActionMap; // Map the buttongroup id's to actions for \
easy activating. KInstance* m_instance;
@@ -101,7 +102,7 @@
bool m_left;
QWidget * m_leftRow, * m_rightRow;
-
+
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic