+++ /dev/null
-/***************************************************************************
- * Copyright 2008 by Laurent Montel <montel@kde.org> *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
- ***************************************************************************/
-
-#include "charselect.h"
-
-#include <QClipboard>
-#include <QApplication>
-#include <KCharSelect>
-#include <KLineEdit>
-#include <KPushButton>
-#include <QGridLayout>
-#include <plasma/widgets/iconwidget.h>
-
-CharSelectApplet::CharSelectApplet(QObject *parent, const QVariantList &args)
- : Plasma::PopupApplet(parent, args),
- m_mainWidget(0)
-{
- setPopupIcon(QLatin1String("accessories-character-map"));
-}
-
-
-CharSelectApplet::~CharSelectApplet()
-{
- delete m_mainWidget;
-}
-
-void CharSelectApplet::constraintsEvent(Plasma::Constraints constraints)
-{
- if (constraints & Plasma::StartupCompletedConstraint) {
- if (size().width() < widget()->size().width() ||
- size().height() < widget()->size().height()) {
- resize(widget()->size());
- emit appletTransformedItself();
- }
- }
-}
-
-QWidget *CharSelectApplet::widget()
-{
- if (!m_mainWidget) {
- m_mainWidget = new QWidget;
- m_mainWidget->setAttribute(Qt::WA_NoSystemBackground);
- QGridLayout *layout = new QGridLayout(m_mainWidget);
-
- m_charselect = new KCharSelect(m_mainWidget, 0, KCharSelect::BlockCombos|KCharSelect::CharacterTable|KCharSelect::FontCombo);
- m_charselect->setMinimumSize(300, 250);
- connect( m_charselect, SIGNAL(charSelected(QChar)), this, SLOT(slotCharSelect(QChar)) );
- layout->addWidget( m_charselect, 0, 0, 1, 2);
-
- m_lineEdit = new KLineEdit(m_mainWidget);
- m_lineEdit->setReadOnly( true );
- layout->addWidget( m_lineEdit, 1, 0 );
-
- m_addToClipboard = new KPushButton(m_mainWidget);
- m_addToClipboard->setText( i18n( "&Add to Clipboard" ) );
- connect( m_addToClipboard, SIGNAL(clicked()), this, SLOT(slotAddToClipboard()) );
- layout->addWidget( m_addToClipboard, 1, 1 );
- }
-
- return m_mainWidget;
-}
-
-void CharSelectApplet::slotAddToClipboard()
-{
- const QString textLine = m_lineEdit->text();
- QClipboard *cb = QApplication::clipboard();
- cb->setText( textLine,QClipboard::Clipboard );
- cb->setText( textLine,QClipboard::Selection );
-}
-
-void CharSelectApplet::slotCharSelect( const QChar &c )
-{
- m_lineEdit->setText( c );
-}
-
-#include "moc_charselect.cpp"
+++ /dev/null
-/***************************************************************************
- * Copyright 2008 by Laurent Montel <montel@kde.org> *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
- ***************************************************************************/
-
-#ifndef CHARSELECT_H
-#define CHARSELECT_H
-
-#include <Plasma/PopupApplet>
-
-class KCharSelect;
-#include <QGraphicsGridLayout>
-class KLineEdit;
-class KPushButton;
-
-class CharSelectApplet : public Plasma::PopupApplet
-{
- Q_OBJECT
-public:
- CharSelectApplet(QObject *parent, const QVariantList &args);
- virtual ~CharSelectApplet();
-
- virtual QWidget *widget();
-
-protected:
- void constraintsEvent(Plasma::Constraints);
-
-public slots:
- void slotAddToClipboard();
- void slotCharSelect( const QChar &c );
-
-private:
- QWidget *m_mainWidget;
- KCharSelect *m_charselect;
- QGraphicsGridLayout *m_layout;
- KLineEdit *m_lineEdit;
- KPushButton *m_addToClipboard;
-};
-
-K_EXPORT_PLASMA_APPLET(CharSelectApplet, CharSelectApplet)
-
-#endif
+++ /dev/null
-[Desktop Entry]
-Encoding=UTF-8
-Name=Character Selector
-Name[ar]=مختار الأحرف
-Name[ast]=Seleutor de caráuter
-Name[bs]=birač znakova
-Name[ca]=Selector de caràcters
-Name[ca@valencia]=Selector de caràcters
-Name[cs]=Výběr znaků
-Name[da]=Tegnvælger
-Name[de]=Tabelle zur Zeichenauswahl
-Name[el]=Επιλογέας χαρακτήρων
-Name[en_GB]=Character Selector
-Name[eo]=Elektilo por signoj
-Name[es]=Selector de caracteres
-Name[et]=Sümbolivalija
-Name[eu]=Karaktere hautatzailea
-Name[fi]=Merkkivalitsin
-Name[fr]=Sélecteur de caractères
-Name[ga]=Roghnóir Carachtar
-Name[gl]=Selector de caracteres
-Name[he]=בוחר התווים
-Name[hr]=Birač znakova
-Name[hu]=Karakterválasztó
-Name[is]=Stafaval
-Name[it]=Selettore dei caratteri
-Name[ja]=文字選択アプレット
-Name[kk]=Таңба таңдағышы
-Name[km]=កម្មវិធីជ្រើសតួអក្សរ
-Name[ko]=문자 선택기
-Name[ku]=Bijarkerê Tîpan
-Name[lt]=Simbolių parinkiklis
-Name[lv]=Rakstzīmju atlasītājs
-Name[mr]=अक्षर निवड
-Name[nb]=Tegnvelger
-Name[nds]=Tekenköör
-Name[nl]=Speciale tekens
-Name[nn]=Teiknveljar
-Name[pa]=ਅੱਖਰ ਚੋਣਕਾਰ
-Name[pl]=Wybór znaków
-Name[pt]=Selector de Caracteres
-Name[pt_BR]=Seletor de caracteres
-Name[ro]=Selector caractere
-Name[ru]=Выбор символа
-Name[sk]=Výber znakov
-Name[sl]=Izbirnik znakov
-Name[sq]=Zgjedhës i Gërmave
-Name[sr]=бирач знакова
-Name[sr@ijekavian]=бирач знакова
-Name[sr@ijekavianlatin]=birač znakova
-Name[sr@latin]=birač znakova
-Name[sv]=Teckenväljare
-Name[th]=เครื่องมือเลือกอักขระ
-Name[tr]=Karakter Seçici
-Name[ug]=ھەرپ تاللىغۇچ
-Name[uk]=Таблиця символів
-Name[wa]=Tchoezixheu di caracteres
-Name[x-test]=xxCharacter Selectorxx
-Name[zh_CN]=字符选择器
-Name[zh_TW]=字元選擇器
-Comment=View, select, and copy characters from a font collection
-Comment[ar]=أظهر، واختر، و انسخ محارف من مجموعة الخط
-Comment[ast]=Ver, esbillar y copiar carauteres d'una colección de fontes de lletra
-Comment[bs]=Gledajte, birajte i kopirajte znakove iz zbirke fontova
-Comment[ca]=Mostra, selecciona i copia caràcters d'una col·lecció de tipus de lletra
-Comment[ca@valencia]=Mostra, selecciona i copia caràcters d'una col·lecció de tipus de lletra
-Comment[cs]=Zobrazení, výběr a kopírování znaků ze sbírky písem
-Comment[da]=Se, udvælg og kopiér tegn fra en skrifttypesamling.
-Comment[de]=Zeichen aus einer Sammlung ansehen, auswählen oder kopieren
-Comment[el]=Προβολή, επιλογή και αντιγραφή χαρακτήρων από μια συλλογή γραμματοσειρών
-Comment[en_GB]=View, select, and copy characters from a font collection
-Comment[es]=Ver, seleccionar y copiar caracteres de una colección de tipos de letra
-Comment[et]=Fondikogude märkide näitamine, valimine ja kopeerimine
-Comment[eu]=Letra-tipo bilduma batetik karaktereak ikusi, hautatu, eta kopiatu
-Comment[fi]=Katso, valitse ja kopioi merkkejä fonttivalikoimasta
-Comment[fr]=Permet d'afficher, de sélectionner et de copier des caractères
-Comment[ga]=Féach ar, roghnaigh, agus cóipeáil carachtair ó bhailiúchán clónna
-Comment[gl]=Ver, escoller e copiar caracteres dunha colección de tipografías
-Comment[he]=הצג, בחר והעתק תווים מתוך אוסף גופנים
-Comment[hr]=Prikaži, odaberi i kopiraj znakove iz kolekcije pisama
-Comment[hu]=Karakterek megjelenítése, kiválasztása és másolása a betűkészlet-gyűjteményből
-Comment[is]=Skoða, velja og afrita stafi úr letursafni
-Comment[it]=Vedi, seleziona e copia caratteri da una collezione di caratteri
-Comment[ja]=フォントのコレクションから文字を選択してコピーします
-Comment[kk]=Қаріп жинағынан таңбаларды қарау, таңдау және көшіріп алу
-Comment[km]=មើល ជ្រើស និងចម្លងតួអក្សរពីការជ្រើសពុម្ពអក្សរ
-Comment[ko]=글꼴의 문자를 보고, 선택하고, 복사하기
-Comment[ku]=Jê berhevoka cure-nivîsê tîpan bibîne, hilbijêre û ji ber bigire
-Comment[lt]=Žiūrėti, pasirinkti ir kopijuoti simbolius iš šriftų kolekcijos
-Comment[lv]=Apskatiet, izvēlieties un kopējiet rakstzīmes no fontu kolekcijas
-Comment[mr]=फॉन्ट संग्रहातून अक्षरे बघा, निवडा व प्रत करा
-Comment[nb]=Vis, velg og kopier tegn fra en samling skrifter
-Comment[nds]=Tekens ut en Schriftoordensammlen ankieken, utsöken un koperen
-Comment[nl]=Toon, selecteer en kopieer tekens van een lettertypecollectie
-Comment[nn]=Vis, merk og kopier teikn frå skrifter
-Comment[pa]=ਫੋਂਟ ਭੰਡਾਰ ਵਿਚੋਂ ਅੱਖਰ ਵੇਖੋ, ਚੁਣੋ ਤੇ ਕਾਪੀ ਕਰੋ
-Comment[pl]=Przeglądanie, wybieranie i kopiowanie znaków ze zbioru czcionek
-Comment[pt]=Ver, seleccionar e copiar caracteres de uma colecção de tipos de letra
-Comment[pt_BR]=Exibe, seleciona e copia caracteres de uma coleção de fontes
-Comment[ro]=Vizualizează, alege și copiază caractere dintr-o colecție de fonturi
-Comment[ru]=Просмотр, выбор и копирование символов из коллекции шрифтов
-Comment[sk]=Zobrazenie, výber a kopírovanie znakov z kolekcie písiem
-Comment[sl]=Oglejte si, izberite in kopirajte znake iz zbirke pisav
-Comment[sr]=Гледајте, бирајте и копирајте знакове из збирке фонтова
-Comment[sr@ijekavian]=Гледајте, бирајте и копирајте знакове из збирке фонтова
-Comment[sr@ijekavianlatin]=Gledajte, birajte i kopirajte znakove iz zbirke fontova
-Comment[sr@latin]=Gledajte, birajte i kopirajte znakove iz zbirke fontova
-Comment[sv]=Visa, markera och kopiera tecken från en samling teckensnitt
-Comment[th]=แสดง, เลือก และคัดลอกอักขระต่าง ๆ จากคลังแบบอักษร
-Comment[tr]=Bir yazı tipi koleksiyonundan karakterleri seçin, kopyalayın ve görüntüleyin
-Comment[uk]=Перегляньте, оберіть і скопіюйте символи зі збірки шрифтів
-Comment[wa]=Vey, tchoezi eyet copyî des caracteres a pårti d' ene ramexhnêye di fontes
-Comment[x-test]=xxView, select, and copy characters from a font collectionxx
-Comment[zh_CN]=从字体集中查看、选择和复制字符
-Comment[zh_TW]=從字型中檢視、選擇與複製字元
-Type=Service
-Icon=accessories-character-map
-ServiceTypes=Plasma/Applet
-X-KDE-Library=plasma_applet_charselect
-X-KDE-PluginInfo-Author=Laurent Montel
-X-KDE-PluginInfo-Email=montel@kde.org
-X-KDE-PluginInfo-Name=charselect
-X-KDE-PluginInfo-Version=1.0
-X-KDE-PluginInfo-Website=http://plasma.kde.org/
-X-KDE-PluginInfo-Category=Utilities
-X-KDE-PluginInfo-Depends=
-X-KDE-PluginInfo-License=GPL
-X-KDE-PluginInfo-EnabledByDefault=true
-
-X-Plasma-Requires-FileDialog=Unused
-X-Plasma-Requires-LaunchApp=Unused