PCManFM-Qt
createnewmenu.h
1 /*
2  Menu with entries to create new folders and files.
3  Copyright (C) 2012 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library 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 GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #ifndef FM_CREATENEWMENU_H
21 #define FM_CREATENEWMENU_H
22 
23 #include "libfmqtglobals.h"
24 #include <QMenu>
25 #include <libfm/fm.h>
26 
27 namespace Fm {
28 
29 class FolderView;
30 
31 class LIBFM_QT_API CreateNewMenu : public QMenu {
32 Q_OBJECT
33 
34 public:
35  explicit CreateNewMenu(QWidget* dialogParent, FmPath* dirPath,
36  QWidget* parent = 0);
37  virtual ~CreateNewMenu();
38 
39 protected Q_SLOTS:
40  void onCreateNewFolder();
41  void onCreateNewFile();
42  void onCreateNew();
43 
44 private:
45  QWidget* dialogParent_;
46  FmPath* dirPath_;
47 };
48 
49 }
50 
51 #endif // FM_CREATENEWMENU_H
Definition: createnewmenu.h:31
Definition: appchoosercombobox.cpp:26