comparison libgui/src/files-dock-widget.h @ 17960:225c7be94c5f

Added a context menu changing the visible columns in the file browser * files-dock-widget.cc (constructor): add a context to the header; (toggle_headercontextitem_filesize, toggle_headercontextitem_filetype, toggle_headercontextitem_datemodified, toggle_headercontextitem_showhidden): new functions toggling the related entry in the settings file and updating the visibility of the columns (headercontextmenu_requested): new function creating the header context menu; * files-dock-widget.h: new functions toggle_headercontextitem_filesize, toggle_headercontextitem_filetype, toggle_headercontextitem_datemodified, toggle_headercontextitem_showhidden, and headercontextmenu_requested
author John Swensen <jpswensen@gmail.com>
date Mon, 18 Nov 2013 14:19:49 -0500
parents 86c6ae5f969e
children 2d5d0d86432e
comparison
equal deleted inserted replaced
17959:1329866151be 17960:225c7be94c5f
81 81
82 private slots: 82 private slots:
83 /** context menu wanted */ 83 /** context menu wanted */
84 void contextmenu_requested (const QPoint& pos); 84 void contextmenu_requested (const QPoint& pos);
85 85
86 void toggle_headercontextitem_filesize ();
87 void toggle_headercontextitem_filetype ();
88 void toggle_headercontextitem_datemodified ();
89 void toggle_headercontextitem_showhidden ();
90
91 void headercontextmenu_requested (const QPoint& pos);
92
86 /* context menu actions */ 93 /* context menu actions */
87 void contextmenu_open (bool); 94 void contextmenu_open (bool);
88 void contextmenu_open_in_app (bool); 95 void contextmenu_open_in_app (bool);
89 void contextmenu_copy_selection (bool); 96 void contextmenu_copy_selection (bool);
90 void contextmenu_run (bool); 97 void contextmenu_run (bool);