-rw-r--r-- | noncore/apps/confedit/editwidget.cpp | 8 | ||||
-rw-r--r-- | noncore/apps/confedit/listviewitemconffile.cpp | 1 | ||||
-rw-r--r-- | noncore/apps/confedit/listviewitemconfigentry.cpp | 1 | ||||
-rw-r--r-- | noncore/apps/confedit/mainwindow.cpp | 9 |
4 files changed, 0 insertions, 19 deletions
diff --git a/noncore/apps/confedit/editwidget.cpp b/noncore/apps/confedit/editwidget.cpp index f7dc408..21f69c7 100644 --- a/noncore/apps/confedit/editwidget.cpp +++ b/noncore/apps/confedit/editwidget.cpp | |||
@@ -1,25 +1,17 @@ | |||
1 | #include "editwidget.h" | 1 | #include "editwidget.h" |
2 | 2 | ||
3 | #include <qlabel.h> | 3 | #include <qlabel.h> |
4 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
5 | #include <qpushbutton.h> | ||
6 | #include <qlayout.h> | 5 | #include <qlayout.h> |
7 | #include <qvariant.h> | ||
8 | #include <qtooltip.h> | ||
9 | #include <qwhatsthis.h> | ||
10 | #include <qtimer.h> | ||
11 | #include <qpopupmenu.h> | ||
12 | #include <qaction.h> | ||
13 | #include "listviewitemconfigentry.h" | ||
14 | 6 | ||
15 | EditWidget::EditWidget( QWidget* parent, const char* name, WFlags fl ) | 7 | EditWidget::EditWidget( QWidget* parent, const char* name, WFlags fl ) |
16 | : QWidget( parent, name, fl ) | 8 | : QWidget( parent, name, fl ) |
17 | { | 9 | { |
18 | 10 | ||
19 | EditWidgetLayout = new QGridLayout( this ); | 11 | EditWidgetLayout = new QGridLayout( this ); |
20 | EditWidgetLayout->setSpacing( 0 ); | 12 | EditWidgetLayout->setSpacing( 0 ); |
21 | EditWidgetLayout->setMargin( 0 ); | 13 | EditWidgetLayout->setMargin( 0 ); |
22 | // setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Maximum));//, sizePolicy().hasHeightForWidth() ) ); | 14 | // setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Maximum));//, sizePolicy().hasHeightForWidth() ) ); |
23 | 15 | ||
24 | TextLabelFileName = new QLabel( this, "TextLabelFileName" ); | 16 | TextLabelFileName = new QLabel( this, "TextLabelFileName" ); |
25 | TextLabelFileName->setText( tr( "File Name:" ) ); | 17 | TextLabelFileName->setText( tr( "File Name:" ) ); |
diff --git a/noncore/apps/confedit/listviewitemconffile.cpp b/noncore/apps/confedit/listviewitemconffile.cpp index ce6504c..1ff2c44 100644 --- a/noncore/apps/confedit/listviewitemconffile.cpp +++ b/noncore/apps/confedit/listviewitemconffile.cpp | |||
@@ -2,25 +2,24 @@ | |||
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | 9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> |
10 | 10 | ||
11 | #include "listviewitemconffile.h" | 11 | #include "listviewitemconffile.h" |
12 | #include <qmessagebox.h> | 12 | #include <qmessagebox.h> |
13 | #include <qtextstream.h> | 13 | #include <qtextstream.h> |
14 | #include <qstring.h> | ||
15 | #include "listviewitemconfigentry.h" | 14 | #include "listviewitemconfigentry.h" |
16 | 15 | ||
17 | #define tr QObject::tr | 16 | #define tr QObject::tr |
18 | 17 | ||
19 | ListViewItemConfFile::ListViewItemConfFile(QFileInfo *file, QListView *parent) | 18 | ListViewItemConfFile::ListViewItemConfFile(QFileInfo *file, QListView *parent) |
20 | : ListViewItemConf(parent), _valid(false) | 19 | : ListViewItemConf(parent), _valid(false) |
21 | { | 20 | { |
22 | confFileInfo = file; | 21 | confFileInfo = file; |
23 | // parseFile(); | 22 | // parseFile(); |
24 | displayText(); | 23 | displayText(); |
25 | } | 24 | } |
26 | 25 | ||
diff --git a/noncore/apps/confedit/listviewitemconfigentry.cpp b/noncore/apps/confedit/listviewitemconfigentry.cpp index 5ef9f61..0970125 100644 --- a/noncore/apps/confedit/listviewitemconfigentry.cpp +++ b/noncore/apps/confedit/listviewitemconfigentry.cpp | |||
@@ -1,24 +1,23 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogtp <tille@handhelds.org> | 9 | // (c) 2002 Patrick S. Vogtp <tille@handhelds.org> |
10 | 10 | ||
11 | #include "listviewitemconfigentry.h" | 11 | #include "listviewitemconfigentry.h" |
12 | #include "listviewitemconffile.h" | ||
13 | #include <qtextstream.h> | 12 | #include <qtextstream.h> |
14 | 13 | ||
15 | ListViewItemConfigEntry::ListViewItemConfigEntry(ListViewItemConfFile *parent, QString group, QString key) | 14 | ListViewItemConfigEntry::ListViewItemConfigEntry(ListViewItemConfFile *parent, QString group, QString key) |
16 | : ListViewItemConf(parent) | 15 | : ListViewItemConf(parent) |
17 | { | 16 | { |
18 | _fileItem = parent; | 17 | _fileItem = parent; |
19 | _file = parent->fileName(); | 18 | _file = parent->fileName(); |
20 | _group = group; | 19 | _group = group; |
21 | setKey(key); | 20 | setKey(key); |
22 | _groupOrig = group; | 21 | _groupOrig = group; |
23 | _keyOrig = _key; | 22 | _keyOrig = _key; |
24 | _valueOrig = _value; | 23 | _valueOrig = _value; |
diff --git a/noncore/apps/confedit/mainwindow.cpp b/noncore/apps/confedit/mainwindow.cpp index 4fe45ba..5f7ad50 100644 --- a/noncore/apps/confedit/mainwindow.cpp +++ b/noncore/apps/confedit/mainwindow.cpp | |||
@@ -3,38 +3,29 @@ | |||
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | 9 | ||
10 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | 10 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> |
11 | 11 | ||
12 | 12 | ||
13 | #include "mainwindow.h" | 13 | #include "mainwindow.h" |
14 | 14 | ||
15 | #include <qaction.h> | ||
16 | #include <qmessagebox.h> | ||
17 | #include <qpopupmenu.h> | ||
18 | #include <qtoolbutton.h> | ||
19 | #include <qstring.h> | ||
20 | #include <qlabel.h> | 15 | #include <qlabel.h> |
21 | #include <qfile.h> | ||
22 | #include <qpushbutton.h> | ||
23 | #include <qlayout.h> | 16 | #include <qlayout.h> |
24 | #include <qlineedit.h> | 17 | #include <qlineedit.h> |
25 | #include <qcursor.h> | ||
26 | 18 | ||
27 | #include "listviewconfdir.h" | 19 | #include "listviewconfdir.h" |
28 | #include "listviewitemconf.h" | ||
29 | #include "listviewitemconfigentry.h" | 20 | #include "listviewitemconfigentry.h" |
30 | 21 | ||
31 | 22 | ||
32 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : | 23 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : |
33 | QMainWindow( parent, name, f ), _currentItem(0), _fileItem(0) | 24 | QMainWindow( parent, name, f ), _currentItem(0), _fileItem(0) |
34 | { | 25 | { |
35 | setCaption( tr("Conf File Editor") ); | 26 | setCaption( tr("Conf File Editor") ); |
36 | 27 | ||
37 | //setBaseSize( qApp->globalStrut() ); | 28 | //setBaseSize( qApp->globalStrut() ); |
38 | setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); | 29 | setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); |
39 | 30 | ||
40 | mainLayout = new QVBoxLayout( this ); | 31 | mainLayout = new QVBoxLayout( this ); |