summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-20 15:12:36 (UTC)
committer llornkcor <llornkcor>2002-09-20 15:12:36 (UTC)
commit5442f262a9e59becacdde4822f439b91d43795df (patch) (side-by-side diff)
tree1a0bce6213a8619a822230c174715b4d908df4a2
parent504e00e215999d5aea32781c9f3067682e255e7c (diff)
downloadopie-5442f262a9e59becacdde4822f439b91d43795df.zip
opie-5442f262a9e59becacdde4822f439b91d43795df.tar.gz
opie-5442f262a9e59becacdde4822f439b91d43795df.tar.bz2
remove recording check
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index ba17732..c5d0a5b 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -237,100 +237,100 @@ VMemo::VMemo( QWidget *parent, const char *_name )
this, SLOT(receive(const QCString&, const QByteArray&)) );
if( toggleKey != -1 ) {
// QPEApplication::grabKeyboard();
QCopEnvelope e("QPE/Desktop", "keyRegister(int key, QString channel, QString message)");
// e << 4096; // Key_Escape
// e << Key_F5; //4148
e << toggleKey;
e << QString("QPE/VMemo");
e << QString("toggleRecord()");
}
if(toggleKey == 1)
usingIcon=TRUE;
else
usingIcon=FALSE;
if( vmCfg.readNumEntry("hideIcon",0) == 1)
hide();
}
}
VMemo::~VMemo() {
}
void VMemo::receive( const QCString &msg, const QByteArray &data ) {
qDebug("receive");
QDataStream stream( data, IO_ReadOnly );
if (msg == "toggleRecord()") {
if (recording) {
fromToggle = TRUE;
mouseReleaseEvent(NULL);
stopRecording();
} else {
fromToggle = TRUE;
// mousePressEvent(NULL);
startRecording();
}
}
}
void VMemo::paintEvent( QPaintEvent* ) {
QPainter p(this);
p.drawPixmap( 0, 1,( const char** ) vmemo_xpm );
}
void VMemo::mousePressEvent( QMouseEvent * me) {
// just to be safe
- if (recording) {
- recording = FALSE;
- return;
- }
+// if (recording) {
+// recording = FALSE;
+// return;
+// }
/* No mousePress/mouseRelease recording on the iPAQ. The REC button on the iPAQ calls these functions
mousePressEvent and mouseReleaseEvent with a NULL parameter. */
// if ( me->button() != LeftButton && me != NULL /*&& !systemZaurus*/) {
// if (!systemZaurus && me != NULL)
// return;
// }
if(!recording)
startRecording();
else
stopRecording();
}
void VMemo::mouseReleaseEvent( QMouseEvent * ) {
// if(usingIcon && !recording)
// stopRecording();
}
bool VMemo::startRecording() {
if ( recording)
return FALSE;
Config config( "Vmemo" );
config.setGroup( "System" );
useAlerts = config.readBoolEntry("Alert",1);
if(useAlerts) {
msgLabel = new QLabel( 0, "alertLabel" );
msgLabel->setText("<B><P><font size=+2>VMemo-Recording</font></B>");
msgLabel->show();
}
// if(useAlerts)
// QMessageBox::message("VMemo","Really Record?");//) ==1)
// return;
// } else {
// if (!systemZaurus )
// QSound::play(Resource::findSound("vmemob"));
// }
qDebug("Start recording engines");
recording = TRUE;
if (openDSP() == -1) {
// QMessageBox::critical(0, "vmemo", "Could not open dsp device.\n"+errorMsg, "Abort");
// delete msgLabel;