PCManFM-Qt
view.h
1 /*
2 
3  Copyright (C) 2013 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 
21 #ifndef PCMANFM_FOLDERVIEW_H
22 #define PCMANFM_FOLDERVIEW_H
23 
24 #include "folderview.h"
25 
26 namespace Fm {
27  class FileMenu;
28  class FolderMenu;
29 }
30 
31 namespace PCManFM {
32 
33 class Settings;
34 
35 class View : public Fm::FolderView {
36 Q_OBJECT
37 public:
38 
39  explicit View(Fm::FolderView::ViewMode _mode = IconMode, QWidget* parent = 0);
40  virtual ~View();
41 
42  void updateFromSettings(Settings& settings);
43 
44 Q_SIGNALS:
45  void openDirRequested(FmPath* path, int target);
46 
47 protected Q_SLOTS:
48  void onNewWindow();
49  void onNewTab();
50  void onOpenInTerminal();
51  void onSearch();
52 
53 protected:
54  virtual void onFileClicked(int type, FmFileInfo* fileInfo);
55  virtual void prepareFileMenu(Fm::FileMenu* menu);
56  virtual void prepareFolderMenu(Fm::FolderMenu* menu);
57 
58 private:
59 
60 };
61 
62 };
63 #endif // PCMANFM_FOLDERVIEW_H
Definition: appchoosercombobox.cpp:26
Definition: foldermenu.h:35
Definition: settings.h:41
Definition: filemenu.h:37
Definition: view.h:35
Definition: folderview.h:42
Definition: application.h:39