[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/plasma
From:       Matt Williams <matt () milliams ! com>
Date:       2007-05-29 22:49:31
Message-ID: 1180478971.170573.4870.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 669652 by milliams:

ControlBox: Plasmiod -> Plasmoid
Corona: Add some inline TODOs regarding d'n'd

 M  +2 -2      controlbox.cpp  
 M  +1 -1      controlbox.h  
 M  +9 -0      corona.cpp  


--- trunk/KDE/kdebase/workspace/plasma/plasma/controlbox.cpp #669651:669652
@@ -138,12 +138,12 @@
     connect(m_appletList, SIGNAL(doubleClicked(QModelIndex)), this, \
SLOT(addPlasmoidSlot(QModelIndex)));  
     //TODO: this should be delayed until (if) the box is actually shown.
-    refreshPlasmiodList();
+    refreshPlasmoidList();
 }
 
 ControlWidget::~ControlWidget() {}
 
-void ControlWidget::refreshPlasmiodList()
+void ControlWidget::refreshPlasmoidList()
 {
     KPluginInfo::List applets = Plasma::Applet::knownApplets();
 
--- trunk/KDE/kdebase/workspace/plasma/plasma/controlbox.h #669651:669652
@@ -78,7 +78,7 @@
         ~ControlWidget();
 
     protected:
-        void refreshPlasmiodList();
+        void refreshPlasmoidList();
 
         QLabel* m_label;
         QListView* m_appletList;
--- trunk/KDE/kdebase/workspace/plasma/plasma/corona.cpp #669651:669652
@@ -197,12 +197,20 @@
     kDebug() << "Corona::dragEnterEvent(QDragEnterEvent* event)" << endl;
     if (event->mimeData()->hasFormat("text/x-plasmoidservicename")) {
         event->acceptProposedAction();
+        //TODO Create the applet, move to mouse position then send the 
+        //     following event to lock it to the mouse
+        //QMouseEvent event(QEvent::MouseButtonPress, event->pos(), Qt::LeftButton, \
event->mouseButtons(), 0); +        //QApplication::sendEvent(this, &event);
     }
+    //TODO Allow dragging an applet from another Corona into this one while
+    //     keeping its settings etc.
 }
 
 void Corona::dragLeaveEvent(QDragLeaveEvent* event)
 {
     kDebug() << "Corona::dragLeaveEvent(QDragLeaveEvent* event)" << endl;
+    //TODO If an established Applet is dragged out of the Corona, remove it and
+    //     create a QDrag type thing to keep the Applet's settings
 }
 
 void Corona::dragMoveEvent(QDragMoveEvent* event)
@@ -214,6 +222,7 @@
 {
     kDebug() << "Corona::dropEvent(QDropEvent* event)" << endl;
     if (event->mimeData()->hasFormat("text/x-plasmoidservicename")) {
+        //TODO This will pretty much move into dragEnterEvent()
         QString plasmoidName;
         plasmoidName = event->mimeData()->data("text/x-plasmoidservicename");
         kDebug() << acceptDrops() << endl;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic