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

kfloppy

floppy.h

Go to the documentation of this file.
00001 /*
00002 
00003     This file is part of the KFloppy program, part of the KDE project
00004     
00005     Copyright (C) 1997 Bernd Johannes Wuebben <wuebben@math.cornell.edu>
00006     Copyright (C) 2004, 2005 Nicolas GOUTTE <goutte@kde.org>
00007     
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00021 
00022 */
00023 
00024 #ifndef FloppyData_included
00025 #define FloppyData_included
00026 
00027 #include <kdialog.h>
00028 #include <QKeyEvent>
00029 #include <QCloseEvent>
00030 #include <kconfig.h>
00031 
00032 class QCheckBox;
00033 class QLineEdit;
00034 class QLabel;
00035 class QRadioButton;
00036 class QComboBox;
00037 class QGroupBox;
00038 
00039 class QProgressBar;
00040 class KPushButton;
00041 class KHelpMenu;
00042 class KFAction;
00043 class KFActionQueue;
00044 
00045 class FloppyData : public KDialog
00046 {
00047     Q_OBJECT
00048 
00049 public:
00050     FloppyData(QWidget* parent = 0);
00051     virtual ~FloppyData();
00052 
00054     void show();
00056     bool findDevice();
00058     bool setInitialDevice(const QString& dev);
00061     void closeEvent(QCloseEvent*);
00063     void writeSettings();
00065     void readSettings();
00067     void setWidgets();
00069     int findKeyWord(QString &, const QString &);
00071     void setEnabled(bool);
00072     
00073 public slots:
00074       void quit();
00075       void format();
00076       void reset();
00077 
00078       void formatStatus(const QString &,int);
00079       
00080 protected slots:
00081 
00082 private:
00083         int verifyconfig;
00084         int labelconfig;
00085         QString labelnameconfig;
00086     int quickformatconfig;
00087     QString driveconfig;
00088     QString densityconfig;
00089     QString filesystemconfig;
00090 
00091     int drive;
00093     int blocks;
00094 
00095     bool formating;
00096     //bool abort;
00097 
00098         QLabel*       label1;
00099         QLabel*       label2;
00100     QLabel*       label3;
00101     QGroupBox* buttongroup;
00102     QCheckBox*    verifylabel;
00103     QCheckBox*    labellabel;
00104     QLineEdit*    lineedit;
00105     QRadioButton* quick;
00106         QRadioButton* zerooutformat;
00107     KPushButton* quitbutton;
00108     KPushButton* helpbutton;
00109     QRadioButton* fullformat;
00110     KPushButton*  formatbutton;
00111     QLabel* frame;
00112     QComboBox* deviceComboBox;
00113     QComboBox* filesystemComboBox;
00114     QComboBox* densityComboBox;
00115     QProgressBar* progress;
00116     KHelpMenu* helpMenu;
00117 
00118     KFActionQueue *formatActions;
00119 
00120         bool m_canLowLevel; 
00121         bool m_canZeroOut; 
00122 protected:
00123     void keyPressEvent(QKeyEvent *e);
00124 
00125 };
00126 
00127 #endif // FloppyData_included

kfloppy

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal