• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

ark

  • sources
  • kde-4.14
  • kdeutils
  • ark
  • app
mainwindow.h
Go to the documentation of this file.
1 /*
2  * ark -- archiver for the KDE project
3  *
4  * Copyright (C) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
5  * Copyright (C) 2008 Harald Hvaal <haraldhv@stud.ntnu.no>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 #ifndef MAINWINDOW_H
23 #define MAINWINDOW_H
24 
25 #include <KParts/MainWindow>
26 #include <KParts/ReadWritePart>
27 #include <KUrl>
28 
29 class KRecentFilesAction;
30 
31 class MainWindow: public KParts::MainWindow
32 {
33  Q_OBJECT
34 public:
35  MainWindow(QWidget *parent = 0);
36  ~MainWindow();
37  bool loadPart();
38 
39  void dragEnterEvent(class QDragEnterEvent * event);
40  void dropEvent(class QDropEvent * event);
41  void dragMoveEvent(class QDragMoveEvent * event);
42 
43 public slots:
44  void openUrl(const KUrl& url);
45  void setShowExtractDialog(bool);
46 
47 private slots:
48  void updateActions();
49  void newArchive();
50  void openArchive();
51  void quit();
52 
53  void editKeyBindings();
54  void editToolbars();
55 
56 private:
57  void setupActions();
58 
59  KParts::ReadWritePart *m_part;
60  KRecentFilesAction *m_recentFilesAction;
61  QAction *m_openAction;
62  QAction *m_newAction;
63  KParts::OpenUrlArguments m_openArgs;
64 };
65 
66 #endif // MAINWINDOW_H
QWidget
MainWindow::dragEnterEvent
void dragEnterEvent(class QDragEnterEvent *event)
Definition: mainwindow.cpp:79
MainWindow::loadPart
bool loadPart()
Definition: mainwindow.cpp:129
QDragMoveEvent
QDropEvent
MainWindow::MainWindow
MainWindow(QWidget *parent=0)
Definition: mainwindow.cpp:52
QDragEnterEvent
MainWindow::setShowExtractDialog
void setShowExtractDialog(bool)
Definition: mainwindow.cpp:229
QAction
MainWindow::dragMoveEvent
void dragMoveEvent(class QDragMoveEvent *event)
Definition: mainwindow.cpp:114
MainWindow::openUrl
void openUrl(const KUrl &url)
Definition: mainwindow.cpp:216
MainWindow::~MainWindow
~MainWindow()
Definition: mainwindow.cpp:68
MainWindow
Definition: mainwindow.h:31
MainWindow::dropEvent
void dropEvent(class QDropEvent *event)
Definition: mainwindow.cpp:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ark

Skip menu "ark"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal