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

kfloppy

  • sources
  • kde-4.12
  • kdeutils
  • kfloppy
floppy.h
Go to the documentation of this file.
1 /*
2 
3  This file is part of the KFloppy program, part of the KDE project
4 
5  Copyright (C) 1997 Bernd Johannes Wuebben <wuebben@math.cornell.edu>
6  Copyright (C) 2004, 2005 Nicolas GOUTTE <goutte@kde.org>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 
22 */
23 
24 #ifndef FloppyData_included
25 #define FloppyData_included
26 
27 #include <kdialog.h>
28 #include <QKeyEvent>
29 #include <QCloseEvent>
30 #include <kconfig.h>
31 
32 class QCheckBox;
33 class QLineEdit;
34 class QLabel;
35 class QRadioButton;
36 class QComboBox;
37 class QGroupBox;
38 
39 class QProgressBar;
40 class KPushButton;
41 class KHelpMenu;
42 class KFAction;
43 class KFActionQueue;
44 
45 class FloppyData : public KDialog
46 {
47  Q_OBJECT
48 
49 public:
50  FloppyData(QWidget* parent = 0);
51  virtual ~FloppyData();
52 
54  void show();
56  bool findDevice();
58  bool setInitialDevice(const QString& dev);
61  void closeEvent(QCloseEvent*);
63  void writeSettings();
65  void readSettings();
67  void setWidgets();
69  int findKeyWord(QString &, const QString &);
71  void setEnabled(bool);
72 
73 public slots:
74  void quit();
75  void format();
76  void reset();
77 
78  void formatStatus(const QString &,int);
79 
80 protected slots:
81 
82 private:
83  int verifyconfig;
84  int labelconfig;
85  QString labelnameconfig;
86  int quickformatconfig;
87  QString driveconfig;
88  QString densityconfig;
89  QString filesystemconfig;
90 
91  int drive;
93  int blocks;
94 
95  bool formating;
96  //bool abort;
97 
98  QLabel* label1;
99  QLabel* label2;
100  QLabel* label3;
101  QGroupBox* buttongroup;
102  QCheckBox* verifylabel;
103  QCheckBox* labellabel;
104  QLineEdit* lineedit;
105  QRadioButton* quick;
106  QRadioButton* zerooutformat;
107  KPushButton* quitbutton;
108  KPushButton* helpbutton;
109  QRadioButton* fullformat;
110  KPushButton* formatbutton;
111  QLabel* frame;
112  QComboBox* deviceComboBox;
113  QComboBox* filesystemComboBox;
114  QComboBox* densityComboBox;
115  QProgressBar* progress;
116  KHelpMenu* helpMenu;
117 
118  KFActionQueue *formatActions;
119 
120  bool m_canLowLevel;
121  bool m_canZeroOut;
122 protected:
123  void keyPressEvent(QKeyEvent *e);
124 
125 };
126 
127 #endif // FloppyData_included
FloppyData::~FloppyData
virtual ~FloppyData()
Definition: floppy.cpp:349
FloppyData::quit
void quit()
Definition: floppy.cpp:449
FloppyData::findDevice
bool findDevice()
Maps combobox selection to drive and density.
Definition: floppy.cpp:376
FloppyData::show
void show()
Need to overload normal show() in order to mangle caption.
Definition: floppy.cpp:371
FloppyData::writeSettings
void writeSettings()
Writing the user-visible settings.
Definition: floppy.cpp:688
FloppyData::findKeyWord
int findKeyWord(QString &, const QString &)
A kind of QString::find()
KDialog
FloppyData
Definition: floppy.h:45
FloppyData::reset
void reset()
Definition: floppy.cpp:481
FloppyData::formatStatus
void formatStatus(const QString &, int)
Definition: floppy.cpp:668
FloppyData::closeEvent
void closeEvent(QCloseEvent *)
Override closeEvent() in order to properly close the entire application.
Definition: floppy.cpp:354
KFActionQueue
Acts as a queue and executes the actions in the queue in FIFO order.
Definition: format.h:115
FloppyData::readSettings
void readSettings()
Reading the user-visible settings.
Definition: floppy.cpp:716
FloppyData::setWidgets
void setWidgets()
Map stored settings to widget status.
Definition: floppy.cpp:733
FloppyData::setInitialDevice
bool setInitialDevice(const QString &dev)
set default device
Definition: floppy.cpp:416
FloppyData::setEnabled
void setEnabled(bool)
Enable/disable all UI elements.
Definition: floppy.cpp:456
KFAction
Abstract base class of actions to be undertaken.
Definition: format.h:66
FloppyData::FloppyData
FloppyData(QWidget *parent=0)
Definition: floppy.cpp:56
FloppyData::keyPressEvent
void keyPressEvent(QKeyEvent *e)
Definition: floppy.cpp:359
FloppyData::format
void format()
Definition: floppy.cpp:499
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:08:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kfloppy

Skip menu "kfloppy"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • 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