Commit graph

221 commits

Author SHA1 Message Date
Peter Penz
22fcc2c4c5 don't add a place having an empty name
BUG: 156375

svn path=/trunk/KDE/kdebase/apps/; revision=766406
2008-01-25 19:14:12 +00:00
David Faure
8eed64171c Move (broken) action "Edit/Properties" to dolphinpart and made it work there.
Pass parent widget to all KPropertiesDialog instances.

svn path=/trunk/KDE/kdebase/apps/; revision=752542
2007-12-24 19:07:32 +00:00
Peter Penz
4e43b5465f use different icon for "Add to places" as suggested by David Vignoni
CCMAIL: david@icon-king.com

svn path=/trunk/KDE/kdebase/apps/; revision=747049
2007-12-10 22:00:48 +00:00
Peter Penz
46b52d7ba2 open the context-menu for the viewport if no selection is given although the mouse is above an item (this might happen if the shift-key is pressed during a right-button mouse click)
svn path=/trunk/KDE/kdebase/apps/; revision=738816
2007-11-19 19:58:00 +00:00
Peter Penz
1ce2fb199d allow to show/hide the menubar
BUG: 152463

svn path=/trunk/KDE/kdebase/apps/; revision=738282
2007-11-18 14:37:57 +00:00
Peter Penz
8e1f288d3a don't add 2 separators inside a 3 item-menu...
svn path=/trunk/KDE/kdebase/apps/; revision=737232
2007-11-15 20:41:25 +00:00
Kevin Ottens
6eba08233b Have "Add to Places" in the context menu for the trash too.
svn path=/trunk/KDE/kdebase/apps/; revision=733548
2007-11-06 17:09:00 +00:00
Jakob Petsovits
51f8171071 Icon naming spec compliance (code changes):
bookmark-folder -> folder-bookmarks
goto-page -> go-jump
www -> insert-link (doesn't yet exist in Oxygen)

svn path=/trunk/KDE/kdebase/apps/; revision=730639
2007-10-29 08:35:29 +00:00
Oswald Buddenhagen
6339218179 KConfig* API overhaul. only cosmetics, so don't panic.
KConfigBase:
- remove separator argument from list entry reading/writing functions
- introduce {read,write}XdgListEntry()
- kill readPathListEntry(), add readPathEntry() overload
  instead. the default value is not optional any more, as it defines the
  return type. this is consistent with the readEntry() functions.
- rename clean() => markAsClean(), remove rollback()
- rename ConfigState => AccessMode, getConfigState() => accessMode()
- rename {entry,group}IsImmutable() => is{Entry,Group}Immutable()
- remove NLS alias to Localized

KConfig:
- remove setGroup() & group()
- reshuffle OpenFlag enum, introduce NoCascade for symmetry
- remove setExtraConfigFiles() alias to addConfigSources()

KConfigGroup:
- inherit KConfigBase::deleteGroup() overloads
- make convertToQVariant() private, it will probably change somehow

- KConfig & KConfigGroup: deprecate entryMap()
- remove bogus declarations: KConfigGroup::setReadDefaults(),
  KConfig::readEntryUntranslated()
- apidox
- reshuffle the declarations in the headers


svn path=/trunk/KDE/kdebase/apps/; revision=728852
2007-10-24 13:08:37 +00:00
Pino Toscano
d05e966ef4 icon renamings:
- emptytrash -> trash-empty
- edit-trash -> user-trash

svn path=/trunk/KDE/kdebase/apps/; revision=728161
2007-10-22 15:58:52 +00:00
Peter Penz
a23a882c68 use KGlobal::config() instead of parsing kdeglobals each time (thanks to David for the hint!)
svn path=/trunk/KDE/kdebase/apps/; revision=725485
2007-10-15 14:34:12 +00:00
Peter Penz
95042476f6 Fixed issue that the "Show 'Delete' command in context menu" setting is not remembered anymore.
CCMAIL: ereslibre@kde.org
BUG: 150783

svn path=/trunk/KDE/kdebase/apps/; revision=724942
2007-10-13 22:00:56 +00:00
David Faure
b5eca6dc2a Extracted the servicemenu code from KonqPopupMenu into KonqMenuActions, and used it from both KonqPopupMenu and DolphinContextMenu.
This isn't the port-to-ktrader yet, this will come later, but at least the code is factorized and the impl can be changed without affecting the dolphin+konqpopupmenu code
Should I also implement the "Open With..." actions in KonqMenuActions? Seems like another bit of similar code duplicated.
CCMAIL: peter.penz@gmx.at, aseigo@kde.org

Removed KonqBookmarkManager (was a two-liner call to KBookmarkManager)

svn path=/trunk/KDE/kdebase/apps/; revision=722668
2007-10-07 21:12:46 +00:00
David Faure
ce3ec0d0e6 Fix crash in dolphinpart when doing RMB on viewport.
Clean up unnecessary use of Q3ValueList.

svn path=/trunk/KDE/kdebase/apps/; revision=714532
2007-09-19 20:33:28 +00:00
Peter Penz
33ddc0e791 don't use the term "Bookmarks" anymore, use "Places" instead (includes devices etc.)
svn path=/trunk/KDE/kdebase/apps/; revision=704553
2007-08-25 10:42:10 +00:00
Peter Penz
91a6cb80fd Readded correct Q_ASSERT(m_fileInfo.isNull()) (the previous Q_ASSERT(!m_fileInfo.isNull()) accidentally has been added due to the 'use KFileItem by value instead of pointer' change...)
svn path=/trunk/KDE/kdebase/apps/; revision=700651
2007-08-16 05:22:39 +00:00
Gabriel Anderson
e0138a6d7c Removed a bad Q_ASSERT
svn path=/trunk/KDE/kdebase/apps/; revision=700585
2007-08-15 22:29:19 +00:00
David Faure
81fcd720a2 Use KFileItem by value rather than by pointer
- in KDirModel::itemForIndex, as noted there as a TODO
 - in dolphin, everywhere.

svn path=/trunk/KDE/kdebase/apps/; revision=699691
2007-08-13 21:57:20 +00:00
Peter Penz
3cff59a75c removed "Toggle Views" context menu action (not required anymore as only the inactive view gets closed now)
svn path=/trunk/KDE/kdebase/apps/; revision=699313
2007-08-12 17:50:42 +00:00
Peter Penz
50d9e030e7 KUIT adaptions
svn path=/trunk/KDE/kdebase/apps/; revision=685763
2007-07-09 17:51:39 +00:00
Peter Penz
cd780167c3 minor coding style cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=678172
2007-06-20 20:44:18 +00:00
Peter Penz
6f5f07d391 * allow to toggle the content of split views by the context menu
* minor cleanups in DolphinMainWindow

svn path=/trunk/KDE/kdebase/apps/; revision=674713
2007-06-12 21:45:22 +00:00
Peter Penz
be9746e87b First big step to make it possible that the DolphinView can be embedded as KPart into Konqueror (discussed with David Faure). A lot of refactoring of the DolphinView has been done:
- The DolphinView does not contain the URL navigator, the filterbar and the statusbar anymore. Those widgets have been moved to DolphinViewContainer.
- The DolphinView does not contain any reference to the main window anymore.

Currently there are some minor regressions (the statusbar shows less informations, renaming has been deactivated), but they will get fixed during the next days. Also still a lot of interface cleanups must be done, but let's just do it step by step...

svn path=/trunk/KDE/kdebase/apps/; revision=672692
2007-06-07 21:10:48 +00:00
Peter Penz
da795d20e2 create modal dialogs on stack as David suggested
svn path=/trunk/KDE/kdebase/apps/; revision=668900
2007-05-28 04:32:57 +00:00
Peter Penz
9801eddcdc reanimate properties dialog (thanks to Laurent Montel for fixing it in the tree view!)
svn path=/trunk/KDE/kdebase/apps/; revision=668453
2007-05-26 13:33:36 +00:00
Dirk Mueller
a333c0d744 include cleanup
svn path=/trunk/KDE/kdebase/apps/; revision=663054
2007-05-09 22:23:52 +00:00
Peter Penz
cdcb4b0166 coding style cleanup: fix wrong indenting of members in constructor
svn path=/trunk/KDE/kdebase/apps/; revision=661819
2007-05-06 17:41:49 +00:00
Peter Penz
2060fa8d46 show column mode in viewport context menu (thanks to Thomas Georgiou for the patch)
svn path=/trunk/KDE/kdebase/apps/; revision=654709
2007-04-16 20:01:19 +00:00
Funda Wang
a1846f25c2 Emtpy -> Empty. typo fix.
svn path=/trunk/KDE/kdebase/apps/; revision=652867
2007-04-12 05:56:03 +00:00
Peter Penz
c8a4f1fd8d adapt Dolphin to kdelibs coding style (http://techbase.kde.org/Policies/Kdelibs_Coding_Style) by using:
astyle --indent=spaces=4 --brackets=linux \
       --indent-labels --pad=oper --unpad=paren \
       --one-line=keep-statements --convert-tabs \
       --indent-preprocessor \
       `find -type f -name '*.cpp'` `find -type f -name '*.h'`

svn path=/trunk/KDE/kdebase/apps/; revision=651981
2007-04-09 19:12:54 +00:00
Kevin Ottens
30161a7b3f Dolphin is now KBookmark* free.
svn path=/trunk/KDE/kdebase/apps/; revision=651766
2007-04-09 09:16:39 +00:00
Stephan Binner
c209c33cdd i18n style guide fixes
svn path=/trunk/KDE/kdebase/apps/; revision=650575
2007-04-04 21:11:21 +00:00
David Faure
cae12eb221 More use of KIcon
svn path=/trunk/KDE/kdebase/apps/; revision=647247
2007-03-27 19:44:43 +00:00
David Faure
623c19e042 Added setters in urlnavigator to remove dependency on dolphinsettings.
Removed old unused kfileiconview.h header, fixed some unrelated missing includes due to that one being removed.

svn path=/trunk/KDE/kdebase/apps/; revision=647244
2007-03-27 19:38:32 +00:00
David Faure
2d9dfdf3b3 KDEDesktopMimeType -> KDesktopFileActions
svn path=/trunk/KDE/kdebase/libkonq/; revision=646598
2007-03-26 08:24:06 +00:00
Peter Penz
8f9baef848 Patch by Luca Gugelmann: get rid of any mainwindow dependency from the sidebars.
svn path=/trunk/KDE/kdebase/apps/; revision=646256
2007-03-25 06:44:28 +00:00
Peter Penz
bf1f504039 use correct icons
svn path=/trunk/KDE/kdebase/apps/; revision=645273
2007-03-22 06:18:20 +00:00
Peter Penz
1ad1a5cb18 last commit for this day: I think I was quite tired when I wrote the code...
svn path=/trunk/KDE/kdebase/apps/; revision=643925
2007-03-18 20:04:07 +00:00
Peter Penz
c636d3e0ed assigning the rename-action might make sense ;-)
svn path=/trunk/KDE/kdebase/apps/; revision=643921
2007-03-18 19:58:58 +00:00
Peter Penz
6bd958c1d7 implemented cut, copy & paste for sidebar context
svn path=/trunk/KDE/kdebase/apps/; revision=643578
2007-03-17 21:10:50 +00:00
Peter Penz
acfccceb91 respect context for 'Move To Trash' and 'Delete' action
svn path=/trunk/KDE/kdebase/apps/; revision=643575
2007-03-17 20:49:17 +00:00
Peter Penz
6baba131b2 Allow to cut, copy, paste, ... the currently selected item from a sidebar by the DolphinContextMenu (currently only used by the tree view).
svn path=/trunk/KDE/kdebase/apps/; revision=643572
2007-03-17 20:42:26 +00:00
Peter Penz
9ed13b31b4 Let's keep it simple: only offer a basic context menu for the treeview sidebar.
svn path=/trunk/KDE/kdebase/apps/; revision=642982
2007-03-16 00:24:56 +00:00
Peter Penz
1cdb64a12b Don't force the context menu to be valid only for DolphinView instances, make it possible to have it also inside the treeview sidebar.
svn path=/trunk/KDE/kdebase/apps/; revision=642953
2007-03-15 22:42:21 +00:00
Peter Penz
242bda1ead let the context menu be aware about the trash
svn path=/trunk/KDE/kdebase/apps/; revision=642935
2007-03-15 21:24:41 +00:00
Peter Penz
bfcf764b69 Fixed icon-names so that they match to the new Oxygen naming scheme (erase all Dolphin config files to see the effect). Although Oxygen is not finished yet, it looks very beautiful already, kudos to the Oxygen team :-)
svn path=/trunk/KDE/kdebase/apps/; revision=641285
2007-03-10 19:41:49 +00:00
Peter Penz
6c4e3aee2a As Aaron suggested: use the global setting for "Show Delete command" instead of using a custom Dolphin setting. I hope I used the reworked KConfig classes in a correct manner (setGroup() has been marked as deprecated, Konqueror still uses those deprecated methods).
svn path=/trunk/KDE/kdebase/apps/; revision=637272
2007-02-25 22:42:47 +00:00
Peter Penz
d9c3648d5a Implemented one of the most often requested features for Dolphin: allow that the command 'Delete' is shown in the context menu to bypass the trash. Like in Konqueror the default setting is that the 'Delete' command is not shown. TODO: currently this is a custom setting of Dolphin. Konqueror uses the global settings from KDE for this -> should this be changed to use the global setting instead?
svn path=/trunk/KDE/kdebase/apps/; revision=637232
2007-02-25 20:51:05 +00:00
Stephan Kulow
3ebd1027a2 porting
svn path=/trunk/KDE/kdebase/apps/; revision=635532
2007-02-20 09:04:52 +00:00
Stephan Kulow
1bed1753d2 I hope this compiles better
svn path=/trunk/KDE/kdebase/apps/; revision=635522
2007-02-20 08:28:31 +00:00
Stephan Kulow
9189303656 compile some more
svn path=/trunk/KDE/kdebase/apps/; revision=635518
2007-02-20 08:18:28 +00:00
Peter Penz
546384562a Reanimated drag & drop support again after introducing the DolphinController. It is now also possible to move the items inside an icon view like discussed on kde-devel/kde-usability.
svn path=/trunk/KDE/kdebase/apps/; revision=634228
2007-02-16 17:03:02 +00:00
Peter Penz
214ee5de3f Use KNewMenu instead of custom implementation of Dolphin. TODO: currently errors are indicated automatically in a message box KNewMenu. In Dolphin modal dialogs having only an "OK" button are not used -> it would be nice if Dolphin could handle the errors in a custom way.
svn path=/trunk/playground/utils/dolphin/; revision=627085
2007-01-25 16:56:52 +00:00
Peter Penz
ccb06e68ac - Fixed crash when showing "Open With..." items of the context menu: the model index from the proxy model was used instead of the model index from the KDirModel.
- Use QMenu::addSeparator() instead of QMenu::insertSeparator().

svn path=/trunk/playground/utils/dolphin/; revision=626040
2007-01-21 22:12:49 +00:00
Peter Penz
70999c96a2 Cleanup of DolphinContextMenu:
- don't use any deprecated methods anymore
- temporary deactivated the "Open With..." submenu. There's a crash in KDirModel when invoking KFileItem::mimetype(); although the same code worked with an older version of kdelibs, I assume this is a Dolphin issue -> I'll do some further analyses...

svn path=/trunk/playground/utils/dolphin/; revision=626023
2007-01-21 21:20:37 +00:00
Peter Penz
86ad5d0a63 Reanimate drag and drop support for the URL navigator.
svn path=/trunk/playground/utils/dolphin/; revision=620633
2007-01-06 19:51:48 +00:00
Peter Penz
ddc11d9a26 fixed compile issues resulted by kdelibs cleanup
svn path=/trunk/playground/utils/dolphin/; revision=619596
2007-01-03 20:24:55 +00:00
Aaron J. Seigo
3396d0dbee build
svn path=/trunk/playground/utils/dolphin/; revision=614828
2006-12-19 02:56:16 +00:00
Aaron J. Seigo
934ba42b09 KStdAction -> KStandardAction
svn path=/trunk/playground/utils/dolphin/; revision=614825
2006-12-19 02:26:06 +00:00
Holger Freyther
6cb02408e4 Use a QLinkedList instead of Q3PtrList
svn path=/trunk/playground/utils/dolphin/; revision=612313
2006-12-10 21:01:38 +00:00
Holger Freyther
d7d4fb9d26 Update the FSF address to 51 Franklin Street (hopefully it is the right one)
gnused rocks!

svn path=/trunk/playground/utils/dolphin/; revision=611576
2006-12-08 21:24:08 +00:00
Simon Hausmann
d567bc3aea - compile with trunk kdelibs
svn path=/trunk/playground/utils/dolphin/; revision=610667
2006-12-04 21:51:17 +00:00
Zack Rusin
d27b30a66a fixing more warnings
svn path=/trunk/playground/utils/dolphin/; revision=610636
2006-12-04 19:51:53 +00:00
Peter Penz
c94276725b reanimated the context menu
svn path=/trunk/playground/utils/dolphin/; revision=609962
2006-12-02 21:51:36 +00:00
Holger Freyther
f31a541925 Make it (almost) possible to have more than one Dolphin KMainWindow
Create a DolphinApplication, holding DolphinMainWindows and update
    the code to use the DolphinView to get the MainWindow, or get a ptr
    to the MainWindow directly. Or if all windows are effected go through
    the DolphinApplication to update every mainwindow.
    The UndowManager and ProgressIndicator have a rather strange relationship
    and will need some more attention but as UndoManager will be killed
    anyway I have skipped this.
    More cleanup, debugging and thinking is needed.

svn path=/trunk/playground/utils/dolphin/; revision=608945
2006-11-29 00:02:19 +00:00
Peter Penz
7fec7ff9a0 As KURL has been renamed to KUrl all classes and methods, which use the term 'URL', have been converted to use 'Url' instead (e. g. the class URLNavigator is called UrlNavigator now).
svn path=/trunk/playground/utils/dolphin/; revision=606991
2006-11-22 17:13:11 +00:00
Kevin Ottens
a08b5f8357 Avoid triggering the bookmark action when it's not appropriate.
svn path=/trunk/playground/utils/dolphin/; revision=606934
2006-11-22 12:22:41 +00:00
Kevin Ottens
9a5f54d83d compile++
But crashes while listing folder...

svn path=/trunk/playground/utils/dolphin/; revision=606919
2006-11-22 11:34:19 +00:00
Laurent Montel
20b58b6c03 Some port
Remove not necessary file

svn path=/trunk/playground/utils/dolphin/; revision=606884
2006-11-22 08:22:45 +00:00
Laurent Montel
6987f297e6 Port++
svn path=/trunk/playground/utils/dolphin/; revision=606882
2006-11-22 08:12:45 +00:00
Peter Penz
5252c12db4 commited initial version of Dolphin
svn path=/trunk/playground/utils/dolphin/; revision=606622
2006-11-21 06:02:05 +00:00