summaryrefslogtreecommitdiff
authordavipt <davipt>2002-06-20 17:50:48 (UTC)
committer davipt <davipt>2002-06-20 17:50:48 (UTC)
commit82c21e9596f15d96d6d8d8cdf837969960479dcb (patch) (side-by-side diff)
treedebe9ccda82ce9e443275c3cd9621586e049f5f7
parentfd64293dbcfae3bcf3265e31fbe847ac86b2a0af (diff)
downloadopie-82c21e9596f15d96d6d8d8cdf837969960479dcb.zip
opie-82c21e9596f15d96d6d8d8cdf837969960479dcb.tar.gz
opie-82c21e9596f15d96d6d8d8cdf837969960479dcb.tar.bz2
Added translation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/screenshotapplet/screenshot.cpp2
-rw-r--r--core/applets/screenshotapplet/screenshotapplet.pro13
2 files changed, 13 insertions, 2 deletions
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp
index d95396b..8a2a956 100644
--- a/core/applets/screenshotapplet/screenshot.cpp
+++ b/core/applets/screenshotapplet/screenshot.cpp
@@ -23,129 +23,129 @@
#include <qpe/resource.h>
#include <qpe/config.h>
#include <qpe/applnk.h>
#include <qpe/config.h>
#include <qdir.h>
#include <qfileinfo.h>
#include <qpoint.h>
#include <qpushbutton.h>
#include <qpainter.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qslider.h>
#include <qlayout.h>
#include <qframe.h>
#include <qpixmap.h>
#include <qregexp.h>
#include <qstring.h>
#include <qfile.h>
#include <qtimer.h>
static char * snapshot_xpm[] = {
"16 16 10 1",
" c None",
". c #000000",
"+ c #00C000",
"@ c #585858",
"# c #808080",
"$ c #00FF00",
"% c #008000",
"& c #00FFFF",
"* c #FF0000",
"= c #FFC0C0",
" ",
" ... ",
" ..+++..@#. ",
" .$++++++.#. ",
" .%$$++++++. ",
" .&%%$$++@***. ",
" .$&$++$=**@+. ",
" .+$$+++@*$%%. ",
" .+++++%+++%%. ",
" .%%++++..+%%. ",
" ..%%+++++%%. ",
" ..%%+++%%. ",
" ..%%+%%. ",
" ..%%.. ",
" .. ",
" "};
ScreenshotControl::ScreenshotControl( QWidget *parent, const char *name )
: QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup )
{
setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
// qDebug("screenshot control");
QVBoxLayout *vbox = new QVBoxLayout( this );
// qDebug("new layout");
delaySpin = new QSpinBox( 0,60,1, this, "Spinner" );
// qDebug("new spinbox");
delaySpin->setFocusPolicy( QWidget::NoFocus );
grabItButton= new QPushButton( this, "GrabButton" );
// qDebug("new pushbutton");
grabItButton ->setFocusPolicy( QWidget::TabFocus );
- grabItButton->setText("Snapshot");
+ grabItButton->setText(tr("Snapshot"));
vbox->setMargin( 6 );
vbox->setSpacing( 3 );
vbox->addWidget( delaySpin);
vbox->setMargin( 6 );
vbox->setSpacing( 3 );
vbox->addWidget( grabItButton);
setFixedHeight( 100 );
setFixedWidth( sizeHint().width() );
setFocusPolicy(QWidget::NoFocus);
grabTimer= new QTimer(this,"grab timer");
// qDebug("newTimer");
connect( grabTimer, SIGNAL( timeout() ), this, SLOT( grabTimerDone() ) );
// Config cfg("Snapshot");
// cfg.setGroup("General");
delaySpin->setValue(1);
// delaySpin->setValue(cfg.readNumEntry("delay",0));
connect( grabItButton, SIGNAL(released()), SLOT(slotGrab()) );
}
void ScreenshotControl::slotGrab()
{
// qDebug("SlotGrab");
hide();
if ( delaySpin->value() ) {
grabTimer->start( delaySpin->value() * 1000, true );
} else {
show();
}
}
void ScreenshotControl::grabTimerDone()
{
performGrab();
}
void ScreenshotControl::savePixmap()
{
DocLnk lnk;
QString fileName = "sc_"+TimeString::dateString( QDateTime::currentDateTime(),false,true);
fileName.replace(QRegExp("'"),""); fileName.replace(QRegExp(" "),"_"); fileName.replace(QRegExp(":"),"."); fileName.replace(QRegExp(","),"");
QString dirName = QDir::homeDirPath()+"/Documents/image/png/";
if( !QDir( dirName).exists() ) {
qDebug("making dir "+dirName);
QString msg = "mkdir -p "+dirName;
system(msg.latin1());
}
fileName=dirName+fileName+".png";
lnk.setFile(fileName); //sets File property
snapshot.save( fileName,"PNG");
qDebug("saving file "+fileName);
QFileInfo fi( fileName);
lnk.setName( fi.fileName()); //sets file name
if(!lnk.writeLink())
qDebug("Writing doclink did not work");
QPEApplication::beep();
}
diff --git a/core/applets/screenshotapplet/screenshotapplet.pro b/core/applets/screenshotapplet/screenshotapplet.pro
index e38074d..e3c5440 100644
--- a/core/applets/screenshotapplet/screenshotapplet.pro
+++ b/core/applets/screenshotapplet/screenshotapplet.pro
@@ -1,16 +1,27 @@
TEMPLATE = lib
CONFIG += qt warn_on release
HEADERS = screenshot.h screenshotappletimpl.h
SOURCES = screenshot.cpp screenshotappletimpl.cpp
TARGET = screenshotapplet
DESTDIR = ../../plugins/applets
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += ../$(OPIEDIR)/include
LIBS += -lqpe
VERSION = 1.0.0
MOC_DIR=opieobj
OBJECTS_DIR=opieobj
TRANSLATIONS = ../../i18n/pt_BR/libscreenshotapplet.ts
-TRANSLATIONS += ../../i18n/es/libscreenshotapplet.ts
TRANSLATIONS += ../../i18n/pt/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/de/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/en/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/es/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/fr/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/hu/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/ja/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/ko/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/no/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/pl/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/sl/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/zh_CN/libscreenshotapplet.ts
+TRANSLATIONS += ../../i18n/zh_TW/libscreenshotapplet.ts