[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdemultimedia/kmid
From: Laurent Montel <montel () kde ! org>
Date: 2004-06-10 12:35:33
Message-ID: 20040610123533.119AC126E4 () office ! kde ! org
[Download RAW message or body]
CVS commit by mlaurent:
Allow to change shortcut
M +22 -3 kmidframe.cpp 1.67
M +4 -0 kmidframe.h 1.26
--- kdemultimedia/kmid/kmidframe.cpp #1.66:1.67
@@ -16,5 +16,5 @@
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ Foundation, Inc., 59 Temple
Send comments and bug fixes to larrosa@kde.org
@@ -48,5 +48,5 @@
#include <kstdaction.h>
#include <kurldrag.h>
-
+#include <kedittoolbar.h>
#include <dcopclient.h>
@@ -173,4 +173,6 @@ kmidFrame::kmidFrame(const char *name)
actionCollection());
+ KStdAction::configureToolbars(this, SLOT(slotConfigureToolbars()), actionCollection());
+
(void)new KAction(i18n("MIDI &Setup..."), 0, this,
SLOT(options_MidiSetup()), actionCollection(), "midi_setup");
@@ -278,4 +280,21 @@ kmidFrame::~kmidFrame()
}
+void kmidFrame::slotConfigureToolbars()
+{
+ saveMainWindowSettings(KGlobal::config(), "MainWindow");
+ KEditToolbar dlg( actionCollection(),"kmidui.rc" );
+ connect(&dlg, SIGNAL(newToolbarConfig()), SLOT(saveToolbarConfig()));
+ dlg.exec();
+}
+
+/**
+ * Save new toolbarconfig.
+ */
+void kmidFrame::saveToolbarConfig()
+{
+ createGUI("kmidui.rc");
+ applyMainWindowSettings(KGlobal::config(), "MainWindow");
+}
+
void kmidFrame::file_Open()
{
--- kdemultimedia/kmid/kmidframe.h #1.25:1.26
@@ -126,4 +126,8 @@ public slots:
void shuttingDown();
+ void saveToolbarConfig();
+
+ void slotConfigureToolbars();
+
private:
kmidClient *kmidclient;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic