summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/mediummountgui.cpp5
-rw-r--r--core/launcher/mediummountgui.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp
index 0be90e6..2454efa 100644
--- a/core/launcher/mediummountgui.cpp
+++ b/core/launcher/mediummountgui.cpp
@@ -1,48 +1,49 @@
#include "mediummountgui.h"
#include <qvariant.h>
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include <qpe/resource.h>
#include <opie/oconfig.h>
#include <qapplication.h>
-MediumMountGui::MediumMountGui( const QString &path ,QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl ) {
+MediumMountGui::MediumMountGui( const QString &path ,QWidget* parent, const char* name, bool modal, WFlags fl )
+ : QDialog( parent, name, modal, fl ) {
+
QWidget *d = QApplication::desktop();
int w=d->width();
int h=d->height();
resize( w , h );
setCaption( tr( "Medium inserted" ) );
mediumPath = path;
readConfig();
startGui();
}
void MediumMountGui::readConfig(){
OConfig cfg (mediumPath +"/.opiestorage.cf");
cfg.setGroup("main");
checkagain = cfg.readBoolEntry("check", false);
cfg.setGroup("mimetypes");
checkmimeaudio = cfg.readBoolEntry("audio", false);
checkmimeimage = cfg.readBoolEntry("image", true);
checkmimetext = cfg.readBoolEntry("text", true);
checkmimevideo = cfg.readBoolEntry("video", true);
diff --git a/core/launcher/mediummountgui.h b/core/launcher/mediummountgui.h
index 0da2803..700a922 100644
--- a/core/launcher/mediummountgui.h
+++ b/core/launcher/mediummountgui.h
@@ -1,44 +1,44 @@
#ifndef MEDIUMMOUNTGUI_H
#define MEDIUMMOUNTGUI_H
#include <qvariant.h>
-#include <qwidget.h>
+#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QCheckBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
-class MediumMountGui : public QWidget
+class MediumMountGui : public QDialog
{
Q_OBJECT
public:
- MediumMountGui( const QString &path = "/tmp/", QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ MediumMountGui( const QString &path = "/tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 );
~MediumMountGui();
protected:
QPushButton* quit;
QPushButton* quit_2;
QLabel* DirSelectText_2;
QLineEdit* LineEdit1;
QPushButton* PushButton3;
QLabel* DirSelectText;
QLabel* Text_2;
QLabel* Text;
QGroupBox* GroupBox1;
QCheckBox* CheckBoxAudio;
QCheckBox* CheckBoxImage;
QCheckBox* CheckBoxText;
QCheckBox* CheckBoxVideo;
QCheckBox* AskBox;
public:
bool check();
private:
void startGui();
void readConfig();