From 6040d26c56a95d9f5bd09688e22009fc5b5e124d Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 11 Aug 2005 10:10:40 +0000 Subject: add opie-smb --- (limited to 'core') diff --git a/core/applets/vmemo/vmemo.h b/core/applets/vmemo/vmemo.h index 1bd735f..806fe0e 100644 --- a/core/applets/vmemo/vmemo.h +++ b/core/applets/vmemo/vmemo.h @@ -29,7 +29,9 @@ class VMemo : public QWidget { Q_OBJECT + public: + VMemo( QWidget *parent, const char *name = NULL); ~VMemo(); static int position(); @@ -38,8 +40,10 @@ public: QString fileName, errorMsg, date; QLabel* msgLabel; QTimer *t_timer; -bool usingIcon, useADPCM; + bool usingIcon, useADPCM; + public slots: + bool record(); void mousePressEvent( QMouseEvent * ); void mouseReleaseEvent( QMouseEvent * ); @@ -47,7 +51,9 @@ public slots: bool startRecording(); void stopRecording(); void timerBreak(); + private: + bool useAlerts; void paintEvent( QPaintEvent* ); int setToggleButton(int); diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index ca760bb..759e440 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -907,11 +907,11 @@ bool TextEdit::saveAs() { dire = QPEApplication::documentDir(); QString str; if( !featureAutoSave) { - str = OFileDialog::getSaveFileName( 2, - dire, - filee, map); - } else - str=currentFileName; + str = OFileDialog::getSaveFileName( 2, + dire, + filee, map); + } else + str = currentFileName; if(!str.isEmpty()) { QString fileNm=str; @@ -923,31 +923,31 @@ bool TextEdit::saveAs() { // QString file = doc->file(); // doc->removeFiles(); delete doc; - DocLnk nf; - nf.setType("text/plain"); - nf.setFile( fileNm); - doc = new DocLnk(nf); + DocLnk nf; + nf.setType("text/plain"); + nf.setFile( fileNm); + doc = new DocLnk(nf); // editor->setText(rt); - odebug << "Saving file as "+currentFileName << oendl; - doc->setName( fi.baseName() /*currentFileName*/); - updateCaption( currentFileName); - - FileManager fm; - if ( !fm.saveFile( *doc, rt ) ) { - QMessageBox::message(tr("Text Edit"),tr("Save Failed")); - return false; - } - - if( filePerms ) { - filePermissions *filePerm; - filePerm = new filePermissions(this, - tr("Permissions"),true, - 0,(const QString &)fileNm); - QPEApplication::execDialog( filePerm ); - - if( filePerm) - delete filePerm; - } + odebug << "Saving file as "+currentFileName << oendl; + doc->setName( fi.baseName() /*currentFileName*/); + updateCaption( currentFileName); + + FileManager fm; + if ( !fm.saveFile( *doc, rt ) ) { + QMessageBox::message(tr("Text Edit"),tr("Save Failed")); + return false; + } + + if( filePerms ) { + filePermissions *filePerm; + filePerm = new filePermissions(this, + tr("Permissions"),true, + 0,(const QString &)fileNm); + QPEApplication::execDialog( filePerm ); + + if( filePerm) + delete filePerm; + } // } editor->setEdited( false); edited1 = false; diff --git a/core/pim/datebook/dateentry.ui b/core/pim/datebook/dateentry.ui index f776911..6e4ada1 100644 --- a/core/pim/datebook/dateentry.ui +++ b/core/pim/datebook/dateentry.ui @@ -32,14 +32,20 @@ 0 0 - 242 - 339 + 286 + 396 caption New Event + + layoutMargin + + + layoutSpacing + margin @@ -47,500 +53,740 @@ spacing - 0 + 2 - - QLabel - - name - TextLabel2 - - - frameShape - MShape - - - frameShadow - MShadow - - - text - Location - - - - QLabel - - name - TextLabel2_2 - - - text - Category - - - buddy - comboPriority - - - - QComboBox - - - text - - - - - - text - Meeting - - - - - text - Lunch - - - - - text - Dinner - - - - - text - Travel - - - - name - comboDescription - - - sizePolicy - - 3 - 0 - - - - editable - true - - - currentItem - 0 - - - duplicatesEnabled - false - - - QLabel - - name - TextLabel1 - - - text - Description - - - - QComboBox - - - text - - - - - - text - Office - - - - - text - Home - - - - name - comboLocation - - - sizePolicy - - 3 - 0 - - - - editable - true - - - currentItem - 0 - - - duplicatesEnabled - false - - - - CategorySelect - - name - comboCategory - - - sizePolicy - - 3 - 1 - - - - - QLabel - - name - TextLabel3 - - - text - Start - End - - - - QPushButton - - name - buttonStart - - - minimumSize - - 70 - 0 - - - - maximumSize - - 70 - 32767 - - - - text - Jan 02 00 - - - - QLineEdit - - name - comboStart - - - sizePolicy - - 3 - 0 - - - - minimumSize - - 70 - 0 - - - - maximumSize - - 70 - 32767 - - - - alignment - AlignHCenter - - - hAlign - - - - - name - Spacer1_2 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - TimePicker - - name - timePickerStart - - - sizePolicy - - 3 - 1 - - - - - QPushButton - - name - buttonEnd - - - minimumSize - - 70 - 0 - - - - maximumSize - - 70 - 32767 - - - - text - Jan 02 00 - - - - QLineEdit + QLayoutWidget name - comboEnd + Layout19 - - sizePolicy - - 3 - 0 - - - - minimumSize - - 70 - 0 - - - - maximumSize - - 70 - 32767 - - - - alignment - AlignHCenter - - - hAlign - - - - QLabel - - name - TimePickerLabel - - - text - Start time - - - - QCheckBox - - name - checkAllDay - - - text - All day - - - - QLabel - - name - TextLabel3_2_2 - - - text - Time zone - - - - TimeZoneSelector - - name - timezone - - - sizePolicy - - 3 - 1 - - - - - QCheckBox - - name - checkAlarm - - - enabled - true - - - autoMask - false - - - text - &Alarm - - - checked - false - - - - QSpinBox - - name - spinAlarm - - - enabled - false - - - suffix - minutes - - - maxValue - 180 - - - minValue - 0 - - - lineStep - 5 - - - value - 5 - - - - QComboBox - - - text - Silent + + + margin + 0 - - - - text - Loud + + spacing + 6 - - - name - comboSound - - - enabled - false - - - - QLabel - - name - lblRepeat - - - text - Repeat - - - - QToolButton - - name - cmdRepeat - - - sizePolicy - - 3 - 0 - - - - focusPolicy - TabFocus - - - text - No Repeat... - - - - QToolButton - - name - editNote - - - text - Note... - + + QLayoutWidget + + name + Layout1 + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TextLabel1 + + + text + Description + + + + QComboBox + + + text + + + + + + text + Meeting + + + + + text + Lunch + + + + + text + Dinner + + + + + text + Travel + + + + name + comboDescription + + + sizePolicy + + 3 + 0 + + + + editable + true + + + currentItem + 0 + + + duplicatesEnabled + false + + + + + + QLayoutWidget + + name + Layout2 + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TextLabel2 + + + frameShape + MShape + + + frameShadow + MShadow + + + text + Location + + + + QComboBox + + + text + + + + + + text + Office + + + + + text + Home + + + + name + comboLocation + + + sizePolicy + + 3 + 0 + + + + editable + true + + + currentItem + 0 + + + duplicatesEnabled + false + + + + + + QLayoutWidget + + name + Layout3 + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TextLabel2_2 + + + text + Category + + + buddy + comboPriority + + + + CategorySelect + + name + comboCategory + + + sizePolicy + + 3 + 1 + + + + + + + QLayoutWidget + + name + Layout18 + + + + margin + 0 + + + spacing + 6 + + + QLayoutWidget + + name + Layout17 + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TextLabel3 + + + text + Start - End + + + + + + QLayoutWidget + + name + Layout4 + + + + margin + 0 + + + spacing + 6 + + + QPushButton + + name + buttonStart + + + minimumSize + + 70 + 0 + + + + maximumSize + + 70 + 32767 + + + + text + Jan 02 00 + + + + QLineEdit + + name + comboStart + + + sizePolicy + + 3 + 0 + + + + minimumSize + + 70 + 0 + + + + maximumSize + + 70 + 32767 + + + + alignment + AlignHCenter + + + hAlign + + + + + + + name + Spacer12 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QLayoutWidget + + name + Layout5 + + + + margin + 0 + + + spacing + 6 + + + QPushButton + + name + buttonEnd + + + minimumSize + + 70 + 0 + + + + maximumSize + + 70 + 32767 + + + + text + Jan 02 00 + + + + QLineEdit + + name + comboEnd + + + sizePolicy + + 3 + 0 + + + + minimumSize + + 70 + 0 + + + + maximumSize + + 70 + 32767 + + + + alignment + AlignHCenter + + + hAlign + + + + + + + + QLayoutWidget + + name + Layout7 + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TimePickerLabel + + + text + Start time + + + + TimePicker + + name + timePickerStart + + + sizePolicy + + 3 + 1 + + + + + + + QCheckBox + + name + checkAllDay + + + text + All day + + + + QLayoutWidget + + name + Layout8 + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TextLabel3_2_2 + + + text + Time zone + + + + TimeZoneSelector + + name + timezone + + + sizePolicy + + 3 + 1 + + + + + + + QLayoutWidget + + name + Layout9 + + + layoutSpacing + + + + margin + 0 + + + spacing + 1 + + + QCheckBox + + name + checkAlarm + + + enabled + true + + + autoMask + false + + + text + &Alarm + + + checked + false + + + + QSpinBox + + name + spinAlarm + + + enabled + false + + + suffix + + + + maxValue + 180 + + + minValue + 0 + + + lineStep + 1 + + + value + 5 + + + + QComboBox + + + text + minutes + + + + + text + hours + + + + + text + days + + + + name + ComboInterval + + + enabled + false + + + currentItem + 0 + + + + QComboBox + + + text + Silent + + + + + text + Loud + + + + name + comboSound + + + enabled + false + + + + + + QLayoutWidget + + name + Layout11 + + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + lblRepeat + + + text + Repeat + + + + QToolButton + + name + cmdRepeat + + + sizePolicy + + 3 + 0 + + + + focusPolicy + TabFocus + + + text + No Repeat... + + + + + + QToolButton + + name + editNote + + + text + Note... + + + @@ -647,6 +893,12 @@ comboStart setDisabled(bool) + + checkAlarm + toggled(bool) + ComboInterval + setEnabled(bool) + endDateChanged( const QString & ) endDateChanged( int, int, int ) endTimeChanged( const QString & ) -- cgit v0.9.0.2