summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-sheet/cellformat.cpp47
-rw-r--r--noncore/apps/opie-sheet/finddlg.cpp2
-rw-r--r--noncore/apps/opie-sheet/mainwindow.cpp2
-rw-r--r--noncore/apps/opie-sheet/numberdlg.cpp5
-rw-r--r--noncore/apps/opie-sheet/sheet.cpp14
-rw-r--r--noncore/apps/opie-sheet/sortdlg.cpp5
-rw-r--r--noncore/apps/opie-sheet/textdlg.cpp5
-rw-r--r--noncore/tools/remote/helptab.cpp2
-rw-r--r--noncore/tools/remote/helptab.h7
-rw-r--r--noncore/tools/remote/recorddialog.cpp9
-rw-r--r--noncore/tools/remote/recorddialog.h8
11 files changed, 74 insertions, 32 deletions
diff --git a/noncore/apps/opie-sheet/cellformat.cpp b/noncore/apps/opie-sheet/cellformat.cpp
index 597502c..342ebe9 100644
--- a/noncore/apps/opie-sheet/cellformat.cpp
+++ b/noncore/apps/opie-sheet/cellformat.cpp
@@ -25,14 +25,35 @@
25#define HALIGN_COUNT 3 25#define HALIGN_COUNT 3
26#define VALIGN_COUNT 3 26#define VALIGN_COUNT 3
27 27
28QColor qtColors[COLOR_COUNT]={Qt::black, Qt::white, Qt::darkGray, Qt::gray, Qt::lightGray, Qt::red, Qt::green, Qt::blue, Qt::cyan, Qt::magenta, Qt::yellow, Qt::darkRed, Qt::darkGreen, Qt::darkBlue, Qt::darkCyan, Qt::darkMagenta, Qt::darkYellow}; 28QColor qtColors[COLOR_COUNT]={Qt::black,Qt::white, Qt::darkGray,
29Qt::BrushStyle brushStyles[STYLE_COUNT]={Qt::SolidPattern, Qt::Dense1Pattern, Qt::Dense2Pattern, Qt::Dense3Pattern, Qt::Dense4Pattern, Qt::Dense5Pattern, Qt::Dense6Pattern, Qt::Dense7Pattern, Qt::HorPattern, Qt::VerPattern, Qt::CrossPattern, Qt::BDiagPattern, Qt::FDiagPattern, Qt::DiagCrossPattern}; 29 Qt::gray, Qt::lightGray, Qt::red,
30 Qt::green, Qt::blue, Qt::cyan,
31 Qt::magenta, Qt::yellow,
32 Qt::darkRed, Qt::darkGreen,
33 Qt::darkBlue, Qt::darkCyan,
34 Qt::darkMagenta, Qt::darkYellow};
35
36Qt::BrushStyle brushStyles[STYLE_COUNT]={Qt::SolidPattern,
37 Qt::Dense1Pattern, Qt::Dense2Pattern,
38 Qt::Dense3Pattern, Qt::Dense4Pattern,
39 Qt::Dense5Pattern, Qt::Dense6Pattern,
40 Qt::Dense7Pattern, Qt::HorPattern,
41 Qt::VerPattern, Qt::CrossPattern,
42 Qt::BDiagPattern, Qt::FDiagPattern,
43 Qt::DiagCrossPattern};
44
30QString namesHAlign[HALIGN_COUNT]={"Left", "Right", "Center"}; 45QString namesHAlign[HALIGN_COUNT]={"Left", "Right", "Center"};
31QString namesVAlign[VALIGN_COUNT]={"Top", "Bottom", "Center"}; 46QString namesVAlign[VALIGN_COUNT]={"Top", "Bottom", "Center"};
32Qt::AlignmentFlags flagsHAlign[HALIGN_COUNT]={Qt::AlignLeft, Qt::AlignRight, Qt::AlignHCenter};
33Qt::AlignmentFlags flagsVAlign[VALIGN_COUNT]={Qt::AlignTop, Qt::AlignBottom, Qt::AlignVCenter};
34 47
35CellFormat::CellFormat(QWidget *parent=0) 48Qt::AlignmentFlags flagsHAlign[HALIGN_COUNT]={Qt::AlignLeft,
49 Qt::AlignRight,
50 Qt::AlignHCenter};
51
52Qt::AlignmentFlags flagsVAlign[VALIGN_COUNT]={Qt::AlignTop,
53 Qt::AlignBottom,
54 Qt::AlignVCenter};
55
56CellFormat::CellFormat(QWidget *parent)
36 :QDialog(parent, 0, TRUE) 57 :QDialog(parent, 0, TRUE)
37{ 58{
38 // Main widget 59 // Main widget
@@ -52,14 +73,18 @@ CellFormat::CellFormat(QWidget *parent=0)
52 // Borders tab 73 // Borders tab
53 borderEditor=new BorderEditor(widgetBorders); 74 borderEditor=new BorderEditor(widgetBorders);
54 borderEditor->setGeometry(10, 10, 215, 145); 75 borderEditor->setGeometry(10, 10, 215, 145);
55 connect(borderEditor, SIGNAL(clicked(BorderEditor::BorderArea)), this, SLOT(borderClicked(BorderEditor::BorderArea))); 76 connect(borderEditor, SIGNAL(clicked(BorderEditor::BorderArea)),
77 this, SLOT(borderClicked(BorderEditor::BorderArea)));
56 78
57 comboBordersWidth=createCombo(COMBO_WIDTH, widgetBorders, tr("&Width:"), 165); 79 comboBordersWidth=createCombo(COMBO_WIDTH, widgetBorders, tr("&Width:"), 165);
58 comboBordersColor=createCombo(COMBO_COLOR, widgetBorders, tr("&Color:"), 165+(COMBO_HEIGHTS+10)); 80 comboBordersColor=createCombo(COMBO_COLOR, widgetBorders, tr("&Color:"), 165+(COMBO_HEIGHTS+10));
59 81
60 buttonBordersDefaults=new QPushButton(tr("&Default Borders"), widgetBorders); 82 buttonBordersDefaults=new QPushButton(tr("&Default Borders"), widgetBorders);
61 buttonBordersDefaults->setGeometry(115, 165+2*(COMBO_HEIGHTS+10), 110, COMBO_HEIGHTS); 83 buttonBordersDefaults->setGeometry(115, 165+2*(COMBO_HEIGHTS+10),
62 connect(buttonBordersDefaults, SIGNAL(clicked()), this, SLOT(slotBordersDefaults())); 84 110, COMBO_HEIGHTS);
85
86 connect(buttonBordersDefaults, SIGNAL(clicked()),
87 this, SLOT(slotBordersDefaults()));
63 88
64 // Background tab 89 // Background tab
65 frameBackground=new QFrame(widgetBackground); 90 frameBackground=new QFrame(widgetBackground);
@@ -292,7 +317,8 @@ int CellFormat::findComboItemIndex(QComboBox *combo, const QString &item)
292 return 0; 317 return 0;
293} 318}
294 319
295QComboBox *CellFormat::createCombo(comboType type, QWidget *parent, const QString &caption, int y) 320QComboBox *CellFormat::createCombo(comboType type, QWidget *parent,
321 const QString &caption, int y)
296{ 322{
297 QComboBox *combo=new QComboBox(FALSE, parent); 323 QComboBox *combo=new QComboBox(FALSE, parent);
298 combo->setGeometry(70, y, COMBO_WIDTHS, COMBO_HEIGHTS); 324 combo->setGeometry(70, y, COMBO_WIDTHS, COMBO_HEIGHTS);
@@ -307,6 +333,7 @@ QComboBox *CellFormat::createCombo(comboType type, QWidget *parent, const QStrin
307 case COMBO_COLOR: createColorCombo(combo); break; 333 case COMBO_COLOR: createColorCombo(combo); break;
308 case COMBO_HALIGN: createHAlignCombo(combo); break; 334 case COMBO_HALIGN: createHAlignCombo(combo); break;
309 case COMBO_VALIGN: createVAlignCombo(combo); break; 335 case COMBO_VALIGN: createVAlignCombo(combo); break;
336 default: break;
310 } 337 }
311 338
312 QLabel *label=new QLabel(combo, caption, parent); 339 QLabel *label=new QLabel(combo, caption, parent);
@@ -495,7 +522,7 @@ int CellFormat::exec(Sheet *s)
495// Border Editor 522// Border Editor
496// 523//
497 524
498BorderEditor::BorderEditor(QWidget *parent=0) 525BorderEditor::BorderEditor(QWidget *parent)
499 :QFrame(parent) 526 :QFrame(parent)
500{ 527{
501 setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); 528 setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
diff --git a/noncore/apps/opie-sheet/finddlg.cpp b/noncore/apps/opie-sheet/finddlg.cpp
index d1237ca..e4c6ec8 100644
--- a/noncore/apps/opie-sheet/finddlg.cpp
+++ b/noncore/apps/opie-sheet/finddlg.cpp
@@ -16,7 +16,7 @@
16#include <qradiobutton.h> 16#include <qradiobutton.h>
17#include "finddlg.h" 17#include "finddlg.h"
18 18
19FindDialog::FindDialog(QWidget *parent=0) 19FindDialog::FindDialog(QWidget *parent)
20 :QDialog(parent, 0, TRUE) 20 :QDialog(parent, 0, TRUE)
21{ 21{
22 // Main widget 22 // Main widget
diff --git a/noncore/apps/opie-sheet/mainwindow.cpp b/noncore/apps/opie-sheet/mainwindow.cpp
index 09ee68b..2f07bae 100644
--- a/noncore/apps/opie-sheet/mainwindow.cpp
+++ b/noncore/apps/opie-sheet/mainwindow.cpp
@@ -166,7 +166,7 @@ void MainWindow::documentOpen(const DocLnk &lnkDoc)
166 } 166 }
167} 167}
168 168
169int MainWindow::saveCurrentFile(bool ask=TRUE) 169int MainWindow::saveCurrentFile(bool ask)
170{ 170{
171 if (ask) 171 if (ask)
172 { 172 {
diff --git a/noncore/apps/opie-sheet/numberdlg.cpp b/noncore/apps/opie-sheet/numberdlg.cpp
index e8de639..90fbaa2 100644
--- a/noncore/apps/opie-sheet/numberdlg.cpp
+++ b/noncore/apps/opie-sheet/numberdlg.cpp
@@ -14,7 +14,7 @@
14 14
15#include "numberdlg.h" 15#include "numberdlg.h"
16 16
17NumberDialog::NumberDialog(QWidget *parent=0) 17NumberDialog::NumberDialog(QWidget *parent)
18 :QDialog(parent, 0, TRUE) 18 :QDialog(parent, 0, TRUE)
19{ 19{
20 edit=new QSpinBox(this); 20 edit=new QSpinBox(this);
@@ -31,7 +31,8 @@ NumberDialog::~NumberDialog()
31{ 31{
32} 32}
33 33
34int NumberDialog::exec(const QString &caption, const QString &text, int value=1, int min=1, int max=99, int step=1) 34int NumberDialog::exec(const QString &caption, const QString &text,
35 int value, int min, int max, int step)
35{ 36{
36 setCaption(caption); 37 setCaption(caption);
37 label->setText(text); 38 label->setText(text);
diff --git a/noncore/apps/opie-sheet/sheet.cpp b/noncore/apps/opie-sheet/sheet.cpp
index 1d7ec6f..2279191 100644
--- a/noncore/apps/opie-sheet/sheet.cpp
+++ b/noncore/apps/opie-sheet/sheet.cpp
@@ -107,7 +107,7 @@ void Sheet::swapCells(int row1, int col1, int row2, int col2)
107 } 107 }
108} 108}
109 109
110QString Sheet::getParameter(const QString &parameters, int paramNo, bool giveError=FALSE, const QString funcName="") 110QString Sheet::getParameter(const QString &parameters, int paramNo, bool giveError, const QString funcName)
111{ 111{
112 QString params(parameters); 112 QString params(parameters);
113 int position; 113 int position;
@@ -145,7 +145,7 @@ bool Sheet::findRange(const QString &variable1, const QString &variable2, int *r
145 return TRUE; 145 return TRUE;
146} 146}
147 147
148bool Sheet::findRowColumn(const QString &variable, int *row, int *col, bool giveError=FALSE) 148bool Sheet::findRowColumn(const QString &variable, int *row, int *col, bool giveError)
149{ 149{
150 int position=variable.find(QRegExp("\\d")); 150 int position=variable.find(QRegExp("\\d"));
151 if (position<1) 151 if (position<1)
@@ -452,7 +452,7 @@ QString Sheet::getData()
452 return ""; 452 return "";
453} 453}
454 454
455void Sheet::lockClicks(bool lock=TRUE) 455void Sheet::lockClicks(bool lock)
456{ 456{
457 clicksLocked=lock; 457 clicksLocked=lock;
458} 458}
@@ -736,7 +736,7 @@ void Sheet::editCut()
736 editClear(); 736 editClear();
737} 737}
738 738
739void Sheet::editPaste(bool onlyContents=FALSE) 739void Sheet::editPaste(bool onlyContents)
740{ 740{
741 int row1=currentRow(), col1=currentColumn(); 741 int row1=currentRow(), col1=currentColumn();
742 typeCellData *cellData, *tempCellData; 742 typeCellData *cellData, *tempCellData;
@@ -761,7 +761,7 @@ void Sheet::editPaste(bool onlyContents=FALSE)
761 } 761 }
762} 762}
763 763
764void Sheet::insertRows(int no=1, bool allColumns=TRUE) 764void Sheet::insertRows(int no, bool allColumns)
765{ 765{
766 setNumRows(numRows()+no); 766 setNumRows(numRows()+no);
767 767
@@ -783,7 +783,7 @@ void Sheet::insertRows(int no=1, bool allColumns=TRUE)
783 emit sheetModified(); 783 emit sheetModified();
784} 784}
785 785
786void Sheet::insertColumns(int no=1, bool allRows=TRUE) 786void Sheet::insertColumns(int no, bool allRows)
787{ 787{
788 int noCols=numCols(); 788 int noCols=numCols();
789 int newCols=noCols+no; 789 int newCols=noCols+no;
@@ -809,7 +809,7 @@ void Sheet::insertColumns(int no=1, bool allRows=TRUE)
809 emit sheetModified(); 809 emit sheetModified();
810} 810}
811 811
812void Sheet::dataFindReplace(const QString &findStr, const QString &replaceStr, bool matchCase=TRUE, bool allCells=TRUE, bool entireCell=FALSE, bool replace=FALSE, bool replaceAll=FALSE) 812void Sheet::dataFindReplace(const QString &findStr, const QString &replaceStr, bool matchCase, bool allCells, bool entireCell, bool replace, bool replaceAll)
813{ 813{
814 typeCellData *tempCellData; 814 typeCellData *tempCellData;
815 int row1, col1, row2, col2; 815 int row1, col1, row2, col2;
diff --git a/noncore/apps/opie-sheet/sortdlg.cpp b/noncore/apps/opie-sheet/sortdlg.cpp
index c60be0d..c2cdec8 100644
--- a/noncore/apps/opie-sheet/sortdlg.cpp
+++ b/noncore/apps/opie-sheet/sortdlg.cpp
@@ -17,7 +17,7 @@
17#include <qmessagebox.h> 17#include <qmessagebox.h>
18#include "sortdlg.h" 18#include "sortdlg.h"
19 19
20SortDialog::SortDialog(QWidget *parent=0) 20SortDialog::SortDialog(QWidget *parent)
21 :QDialog(parent, 0, TRUE) 21 :QDialog(parent, 0, TRUE)
22{ 22{
23 // Main widget 23 // Main widget
@@ -178,7 +178,8 @@ int SortDialog::exec(Sheet *s)
178 return QDialog::Rejected; 178 return QDialog::Rejected;
179} 179}
180 180
181int SortDialog::compareItems(QTableItem *item1, QTableItem *item2, int descending=0, bool caseSensitive=TRUE) 181int SortDialog::compareItems(QTableItem *item1, QTableItem *item2,
182 int descending, bool caseSensitive)
182{ 183{
183 int result=0; 184 int result=0;
184 if (item1) 185 if (item1)
diff --git a/noncore/apps/opie-sheet/textdlg.cpp b/noncore/apps/opie-sheet/textdlg.cpp
index 0810eb2..34cec29 100644
--- a/noncore/apps/opie-sheet/textdlg.cpp
+++ b/noncore/apps/opie-sheet/textdlg.cpp
@@ -14,7 +14,7 @@
14 14
15#include "textdlg.h" 15#include "textdlg.h"
16 16
17TextDialog::TextDialog(QWidget *parent=0) 17TextDialog::TextDialog(QWidget *parent)
18 :QDialog(parent, 0, TRUE) 18 :QDialog(parent, 0, TRUE)
19{ 19{
20 edit=new QLineEdit(this); 20 edit=new QLineEdit(this);
@@ -31,7 +31,8 @@ TextDialog::~TextDialog()
31{ 31{
32} 32}
33 33
34int TextDialog::exec(const QString &caption, const QString &text, const QString &value="") 34int TextDialog::exec(const QString &caption, const QString &text,
35 const QString &value)
35{ 36{
36 setCaption(caption); 37 setCaption(caption);
37 label->setText(text); 38 label->setText(text);
diff --git a/noncore/tools/remote/helptab.cpp b/noncore/tools/remote/helptab.cpp
index 3c53ab6..ac51e13 100644
--- a/noncore/tools/remote/helptab.cpp
+++ b/noncore/tools/remote/helptab.cpp
@@ -16,7 +16,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 16
17#include "helptab.h" 17#include "helptab.h"
18 18
19HelpTab::HelpTab(QWidget *parent=0, const char *name=0):QWidget(parent, name) 19HelpTab::HelpTab(QWidget *parent, const char *name):QWidget(parent, name)
20{ 20{
21 QVBoxLayout *layout = new QVBoxLayout(this); 21 QVBoxLayout *layout = new QVBoxLayout(this);
22 QString *string = new QString("<qt><h1>Opie-Remote Usage Instructions</h1><p>First, some definitions. A Remote is a remote entry in an lircd.conf file, it represents one remote you want to emulate. A Remote Layout is one entry in your ~/Settings/Remote.conf file. It represents the buttons that you see on your screen. Each button on a Remote Layout can be mapped to any button in a Remote. This way you can have, for example, a vcr remote layout, in which all the play/pause/etc buttons are mapped to the buttons on your vcr's remote. However, most VCR's don't have volume controls, so the volume buttons can be mapped to the volume buttons on your TV.</p><p>The first things you need the lirc and lirc-modules ipkgs. If you installed this from an ipkg, they should already be there, thanks to the wonderful world of dependencies. If not, get them. The next thing you need is an lircd.conf file. you can get these at <a href=http://www.lirc.org/>http://www.lirc.org/</a>. Read the documentation there to figure out how to make your own, if one for your remote doesn't exist, or how to have multiple remotes in one lircd.conf file. Once you have a good lircd.conf file, put it in /etc, kill the lircd daemon (if its running) and do a modprobe lirc_sir. Then, run lircd again.</p><p>The next thing you want to do is to create a remote layout. Go to the config tab, and enter a name for your remote layout in the pulldown menu. Dont use the name Remotes, as that could confuse the app. Hopefully, that will be fixed soon. after entering the name you want to use, press New, and then select the name again from the pulldown menu (another oddity that i hope to fix). Then, press each button that you want to map, and a dialog should appear. Select the remote and button that you want to use, and click OK. Once you are done, go to the Remote tab, and select the new remote from the dropdown menu. It should works fine. If at any time you want to change a remote layout, go to the Config tab, select the layout from the dropdown menu, and change the buttons you want to change.</p><p>This is program is written and maintaned by Thomas (spiralman) Stephens. <a href=mailto:spiralman@softhome.net>spiralman@softhome.net</a>. Or, look for me on #opie or #handhelds.org on irc.openprojects.net.</p></qt>"); 22 QString *string = new QString("<qt><h1>Opie-Remote Usage Instructions</h1><p>First, some definitions. A Remote is a remote entry in an lircd.conf file, it represents one remote you want to emulate. A Remote Layout is one entry in your ~/Settings/Remote.conf file. It represents the buttons that you see on your screen. Each button on a Remote Layout can be mapped to any button in a Remote. This way you can have, for example, a vcr remote layout, in which all the play/pause/etc buttons are mapped to the buttons on your vcr's remote. However, most VCR's don't have volume controls, so the volume buttons can be mapped to the volume buttons on your TV.</p><p>The first things you need the lirc and lirc-modules ipkgs. If you installed this from an ipkg, they should already be there, thanks to the wonderful world of dependencies. If not, get them. The next thing you need is an lircd.conf file. you can get these at <a href=http://www.lirc.org/>http://www.lirc.org/</a>. Read the documentation there to figure out how to make your own, if one for your remote doesn't exist, or how to have multiple remotes in one lircd.conf file. Once you have a good lircd.conf file, put it in /etc, kill the lircd daemon (if its running) and do a modprobe lirc_sir. Then, run lircd again.</p><p>The next thing you want to do is to create a remote layout. Go to the config tab, and enter a name for your remote layout in the pulldown menu. Dont use the name Remotes, as that could confuse the app. Hopefully, that will be fixed soon. after entering the name you want to use, press New, and then select the name again from the pulldown menu (another oddity that i hope to fix). Then, press each button that you want to map, and a dialog should appear. Select the remote and button that you want to use, and click OK. Once you are done, go to the Remote tab, and select the new remote from the dropdown menu. It should works fine. If at any time you want to change a remote layout, go to the Config tab, select the layout from the dropdown menu, and change the buttons you want to change.</p><p>This is program is written and maintaned by Thomas (spiralman) Stephens. <a href=mailto:spiralman@softhome.net>spiralman@softhome.net</a>. Or, look for me on #opie or #handhelds.org on irc.openprojects.net.</p></qt>");
diff --git a/noncore/tools/remote/helptab.h b/noncore/tools/remote/helptab.h
index f3f99b3..83f24ef 100644
--- a/noncore/tools/remote/helptab.h
+++ b/noncore/tools/remote/helptab.h
@@ -14,6 +14,9 @@ You should have received a copy of the GNU General Public License along with thi
14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15*/ 15*/
16 16
17#ifndef HELP_TAB_H
18#define HELP_TAB_H
19
17#include <qwidget.h> 20#include <qwidget.h>
18#include <qtextview.h> 21#include <qtextview.h>
19#include <qstring.h> 22#include <qstring.h>
@@ -23,4 +26,6 @@ class HelpTab : public QWidget
23{ 26{
24public: 27public:
25 HelpTab(QWidget *parent=0, const char *name=0); 28 HelpTab(QWidget *parent=0, const char *name=0);
26}; \ No newline at end of file 29};
30
31#endif
diff --git a/noncore/tools/remote/recorddialog.cpp b/noncore/tools/remote/recorddialog.cpp
index f7cd30c..cfab730 100644
--- a/noncore/tools/remote/recorddialog.cpp
+++ b/noncore/tools/remote/recorddialog.cpp
@@ -16,11 +16,12 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 16
17#include "recorddialog.h" 17#include "recorddialog.h"
18 18
19RecordDialog::RecordDialog(QWidget *parent=0, const char *name=0):QDialog(parent, name) 19RecordDialog::RecordDialog(QWidget *parent, const char *name)
20 :QDialog(parent, name)
20{ 21{
21 QVBoxLayout *layout = new QVBoxLayout(this); 22 QVBoxLayout *layout = new QVBoxLayout(this);
22 QHBoxLayout *hlayout = new QHBoxLayout(this); 23 QHBoxLayout *hlayout = new QHBoxLayout(this);
23 24
24 layout->insertSpacing(0,5); 25 layout->insertSpacing(0,5);
25 output = new QTextView("Please enter the name of the new remote, and press Return\n", 0, this, "output"); 26 output = new QTextView("Please enter the name of the new remote, and press Return\n", 0, this, "output");
26 layout->insertWidget(-1, output); 27 layout->insertWidget(-1, output);
@@ -32,13 +33,13 @@ RecordDialog::RecordDialog(QWidget *parent=0, const char *name=0):QDialog(parent
32 input = new QLineEdit(this, "input"); 33 input = new QLineEdit(this, "input");
33 hlayout->insertWidget(-1, input, 1); 34 hlayout->insertWidget(-1, input, 1);
34 hlayout->insertSpacing(-1, 5); 35 hlayout->insertSpacing(-1, 5);
35 36
36 QPushButton *ret = new QPushButton("Return", this, "return"); 37 QPushButton *ret = new QPushButton("Return", this, "return");
37 hlayout->insertWidget(-1, ret); 38 hlayout->insertWidget(-1, ret);
38 hlayout->insertSpacing(-1, 5); 39 hlayout->insertSpacing(-1, 5);
39 connect(ret, SIGNAL(clicked()), this, SLOT(retPressed()) ); 40 connect(ret, SIGNAL(clicked()), this, SLOT(retPressed()) );
40 where = 0; 41 where = 0;
41 42
42 record = new OProcess; 43 record = new OProcess;
43} 44}
44 45
diff --git a/noncore/tools/remote/recorddialog.h b/noncore/tools/remote/recorddialog.h
index 38b2bb4..e4dcae6 100644
--- a/noncore/tools/remote/recorddialog.h
+++ b/noncore/tools/remote/recorddialog.h
@@ -14,6 +14,9 @@ You should have received a copy of the GNU General Public License along with thi
14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15*/ 15*/
16 16
17#ifndef RecordDialog_H
18#define RecordDialog_H
19
17#include <qdialog.h> 20#include <qdialog.h>
18#include <qtextview.h> 21#include <qtextview.h>
19#include <qlineedit.h> 22#include <qlineedit.h>
@@ -40,4 +43,7 @@ private:
40 QLineEdit *input; 43 QLineEdit *input;
41 OProcess *record; 44 OProcess *record;
42 int where; 45 int where;
43}; \ No newline at end of file 46};
47
48#endif
49