From ed5ecf7ea7a482b4649e66ecb35fbc60af680684 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 25 Apr 2016 13:08:12 -0400 Subject: Rearrange the Lumina source tree quite a bit: Now the utilites are arranged by category (core, core-utils, desktop-utils), so all the -utils may be excluded by a package system (or turned into separate packages) as needed. --- desktop-utilities/lumina-terminal/TermWindow.cpp | 301 ------------ desktop-utilities/lumina-terminal/TermWindow.h | 70 --- .../lumina-terminal/TerminalWidget.cpp | 504 --------------------- desktop-utilities/lumina-terminal/TerminalWidget.h | 68 --- desktop-utilities/lumina-terminal/TrayIcon.cpp | 172 ------- desktop-utilities/lumina-terminal/TrayIcon.h | 59 --- desktop-utilities/lumina-terminal/TtyProcess.cpp | 229 ---------- desktop-utilities/lumina-terminal/TtyProcess.h | 83 ---- .../lumina-terminal/lumina-terminal.pro | 96 ---- desktop-utilities/lumina-terminal/main.cpp | 47 -- desktop-utilities/lumina-textedit/ColorDialog.cpp | 59 --- desktop-utilities/lumina-textedit/ColorDialog.h | 48 -- desktop-utilities/lumina-textedit/ColorDialog.ui | 81 ---- desktop-utilities/lumina-textedit/MainUI.cpp | 333 -------------- desktop-utilities/lumina-textedit/MainUI.h | 77 ---- desktop-utilities/lumina-textedit/MainUI.ui | 377 --------------- .../lumina-textedit/PlainTextEditor.cpp | 269 ----------- .../lumina-textedit/PlainTextEditor.h | 99 ---- .../lumina-textedit/i18n/lumina-textedit_af.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ar.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_az.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_bg.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_bn.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_bs.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ca.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_cs.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_cy.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_da.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_de.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_el.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_en_GB.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_en_ZA.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_es.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_et.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_eu.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_fa.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_fi.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_fr.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_fr_CA.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_gl.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_he.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_hi.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_hr.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_hu.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_id.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_is.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_it.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ja.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ka.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ko.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_lt.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_lv.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_mk.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_mn.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ms.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_mt.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_nb.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_nl.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_pa.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_pl.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_pt.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_pt_BR.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ro.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ru.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_sk.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_sl.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_sr.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_sv.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_sw.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_ta.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_tg.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_th.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_tr.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_uk.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_uz.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_vi.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_zh_CN.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_zh_HK.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_zh_TW.ts | 253 ----------- .../lumina-textedit/i18n/lumina-textedit_zu.ts | 253 ----------- .../lumina-textedit/lumina-textedit.pro | 97 ---- desktop-utilities/lumina-textedit/main.cpp | 31 -- .../lumina-textedit/syntaxSupport.cpp | 202 --------- desktop-utilities/lumina-textedit/syntaxSupport.h | 95 ---- 84 files changed, 19083 deletions(-) delete mode 100644 desktop-utilities/lumina-terminal/TermWindow.cpp delete mode 100644 desktop-utilities/lumina-terminal/TermWindow.h delete mode 100644 desktop-utilities/lumina-terminal/TerminalWidget.cpp delete mode 100644 desktop-utilities/lumina-terminal/TerminalWidget.h delete mode 100644 desktop-utilities/lumina-terminal/TrayIcon.cpp delete mode 100644 desktop-utilities/lumina-terminal/TrayIcon.h delete mode 100644 desktop-utilities/lumina-terminal/TtyProcess.cpp delete mode 100644 desktop-utilities/lumina-terminal/TtyProcess.h delete mode 100644 desktop-utilities/lumina-terminal/lumina-terminal.pro delete mode 100644 desktop-utilities/lumina-terminal/main.cpp delete mode 100644 desktop-utilities/lumina-textedit/ColorDialog.cpp delete mode 100644 desktop-utilities/lumina-textedit/ColorDialog.h delete mode 100644 desktop-utilities/lumina-textedit/ColorDialog.ui delete mode 100644 desktop-utilities/lumina-textedit/MainUI.cpp delete mode 100644 desktop-utilities/lumina-textedit/MainUI.h delete mode 100644 desktop-utilities/lumina-textedit/MainUI.ui delete mode 100644 desktop-utilities/lumina-textedit/PlainTextEditor.cpp delete mode 100644 desktop-utilities/lumina-textedit/PlainTextEditor.h delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_af.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ar.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_az.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_bg.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_bn.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_bs.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ca.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_cs.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_cy.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_da.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_de.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_el.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_GB.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_ZA.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_es.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_et.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_eu.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_fa.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_fi.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr_CA.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_gl.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_he.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_hi.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_hr.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_hu.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_id.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_is.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_it.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ja.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ka.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ko.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_lt.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_lv.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_mk.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_mn.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ms.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_mt.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_nb.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_nl.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_pa.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_pl.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt_BR.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ro.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ru.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_sk.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_sl.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_sr.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_sv.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_sw.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_ta.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_tg.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_th.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_tr.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_uk.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_uz.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_vi.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_CN.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_HK.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_TW.ts delete mode 100644 desktop-utilities/lumina-textedit/i18n/lumina-textedit_zu.ts delete mode 100644 desktop-utilities/lumina-textedit/lumina-textedit.pro delete mode 100644 desktop-utilities/lumina-textedit/main.cpp delete mode 100644 desktop-utilities/lumina-textedit/syntaxSupport.cpp delete mode 100644 desktop-utilities/lumina-textedit/syntaxSupport.h (limited to 'desktop-utilities') diff --git a/desktop-utilities/lumina-terminal/TermWindow.cpp b/desktop-utilities/lumina-terminal/TermWindow.cpp deleted file mode 100644 index 82f71e6b..00000000 --- a/desktop-utilities/lumina-terminal/TermWindow.cpp +++ /dev/null @@ -1,301 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "TermWindow.h" -//#include "ui_TermWindow.h" - -#include -#include -#include -#include -#include -#include "TerminalWidget.h" - -// =============== -// PUBLIC -// =============== -TermWindow::TermWindow(QSettings *set) : QWidget(0, Qt::Window | Qt::BypassWindowManagerHint){//, ui(new Ui::TermWindow){ - CLOSING = false; //internal flag - settings = set; - //Create the Window - this->setLayout(new QVBoxLayout()); - this->setCursor(Qt::SplitVCursor); - tabWidget = new QTabWidget(this); - tabWidget->clear(); //just in case - tabWidget->setCursor(Qt::ArrowCursor); - tabWidget->setTabBarAutoHide(true); - tabWidget->setTabsClosable(true); - tabWidget->setMovable(true); - tabWidget->setUsesScrollButtons(true); - this->layout()->addWidget(tabWidget); - //Setup the animation - ANIM = new QPropertyAnimation(this, "geometry", this); - ANIM->setDuration(300); //1/3 second animation - connect(ANIM, SIGNAL(finished()), this, SLOT(AnimFinished()) ); - //Create the keyboard shortcuts - //hideS = new QShortcut(QKeySequence(Qt::Key_Escape),this); - closeS = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q),this); - newTabS = new QShortcut(QKeySequence::AddTab,this); - closeTabS = new QShortcut(QKeySequence::Close,this); - prevTabS = new QShortcut(QKeySequence::PreviousChild,this); - nextTabS = new QShortcut(QKeySequence::NextChild,this); - //Print out all the keyboard shortcuts onto the screen - qDebug() << "New Tab Shortcut:" << QKeySequence::keyBindings(QKeySequence::AddTab); - qDebug() << "Close Tab Shortcut:" << QKeySequence::keyBindings(QKeySequence::Close); - qDebug() << "Next Tab Shortcut:" << QKeySequence::keyBindings(QKeySequence::NextChild); - qDebug() << "Previous Tab Shortcut:" << QKeySequence::keyBindings(QKeySequence::PreviousChild); - //Connect the signals/slots - connect(tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(Close_Tab(int)) ); - connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(focusOnWidget()) ); - connect(closeTabS, SIGNAL(activated()), this, SLOT(Close_Tab()) ); - connect(newTabS, SIGNAL(activated()), this, SLOT(New_Tab()) ); - //connect(hideS, SIGNAL(activated()), this, SLOT(HideWindow()) ); - connect(closeS, SIGNAL(activated()), this, SLOT(CloseWindow()) ); - connect(prevTabS, SIGNAL(activated()), this, SLOT(Prev_Tab()) ); - connect(nextTabS, SIGNAL(activated()), this, SLOT(Next_Tab()) ); - - //Now set the defaults - screennum = 0; //default value - setTopOfScreen(true); //default value - if(settings->contains("lastSize")){ - //qDebug() << "Re-use last size:" << settings->value("lastSize").toSize(); - this->resize( settings->value("lastSize").toSize() ); - CalculateGeom(); - //qDebug() << "After size:" << this->size(); - } - - //this->resize(this->width(),300); - //this->setMinimumSize(20, 300); - -} - - -TermWindow::~TermWindow(){ - -} - -void TermWindow::cleanup(){ - //called right before the window is closed - //Make sure to close any open tabs/processes - CLOSING = true; - for(int i=0; icount(); i++){ - static_cast(tabWidget->widget(i))->aboutToClose(); - } -} - -void TermWindow::OpenDirs(QStringList dirs){ - for(int i=0; isetWhatsThis(ID); - tabWidget->addTab(page, ID); - tabWidget->setCurrentWidget(page); - page->setFocus(); - qDebug() << "New Tab:" << ID << dirs[i]; - connect(page, SIGNAL(ProcessClosed(QString)), this, SLOT(Close_Tab(QString)) ); - } -} - -void TermWindow::setCurrentScreen(int num){ - screennum = num; - QTimer::singleShot(0,this, SLOT(ReShowWindow())); -} - -void TermWindow::setTopOfScreen(bool ontop){ - onTop = ontop; - this->layout()->setContentsMargins(0, (onTop ? 0 : 3), 0, (onTop ? 3 : 0)); - tabWidget->setTabPosition(onTop ? QTabWidget::South : QTabWidget::North); - QTimer::singleShot(0,this, SLOT(ReShowWindow())); -} - -// ======================= -// PUBLIC SLOTS -// ======================= -void TermWindow::ShowWindow(){ - if(animRunning>=0){ return; } //something running - animRunning = 1; - this->hide(); - QApplication::processEvents(); - CalculateGeom(); - //Now setup the animation - ANIM->setEndValue(this->geometry()); - if(onTop){ //use top edge - ANIM->setStartValue( QRect(this->x(), this->y(), this->width(), 0) ); //same location - no height - }else{ - ANIM->setStartValue( QRect(this->x(), this->geometry().bottom(), this->width(), 0) ); //same location - no height - } - this->show(); - //qDebug() << "Start Animation" << ANIM->startValue() << ANIM->endValue(); - ANIM->start(); -} - -void TermWindow::HideWindow(){ - if(animRunning>=0){ return; } //something running - //Now setup the animation - //Note: Do *not* use the private settings/variables because it may be changing right now - use the current geometry *ONLY* - animRunning = 0; - ANIM->setStartValue(this->geometry()); - QDesktopWidget *desk = QApplication::desktop(); - int screen = desk->screenNumber(this); //which screen it is currently on - if(desk->availableGeometry(screen).top() == this->geometry().top()){ //use top edge - ANIM->setEndValue( QRect(this->x(), this->y(), this->width(), 0) ); //same location - no height - }else{ - ANIM->setEndValue( QRect(this->x(), this->y()+this->height(), this->width(), 0) ); //same location - no height - } - this->show(); - ANIM->start(); -} - -void TermWindow::CloseWindow(){ - if(animRunning>=0){ return; } //something running - //Now setup the animation - animRunning = 2; - ANIM->setStartValue(this->geometry()); - if(onTop){ //use top edge - ANIM->setEndValue( QRect(this->x(), this->y(), this->width(), 0) ); //same location - no height - }else{ - ANIM->setEndValue( QRect(this->x(), this->geometry().bottom(), this->width(), 0) ); //same location - no height - } - this->show(); - ANIM->start(); -} - -void TermWindow::ReShowWindow(){ - if(this->isVisible()){ - HideWindow(); //start with same animation as hide - animRunning = 3; //flag as a re-show (hide, then show); - }else{ - //Already hidden, just show it - ShowWindow(); - } -} -// ======================= -// PRIVATE -// ======================= -void TermWindow::CalculateGeom(){ - //qDebug() << "Calculating Geom:" << this->size(); - QDesktopWidget *desk = QApplication::desktop(); - if(desk->screenCount() <= screennum){ screennum = desk->primaryScreen(); } //invalid screen detected - //Now align the window with the proper screen edge - QRect workarea = desk->availableGeometry(screennum); //this respects the WORKAREA property - if(onTop){ - this->setGeometry( workarea.x(), workarea.y(), workarea.width(), this->height()); //maintain current hight of window - - }else{ - this->setGeometry( workarea.x(), workarea.y() + workarea.height() - this->height(), workarea.width(), this->height()); //maintain current hight of window - } - this->setFixedWidth(this->width()); //Make sure the window is not re-sizeable in the width dimension - this->setMinimumHeight(0); -} - -QString TermWindow::GenerateTabID(){ - //generate a unique ID for this new tab - int num = 1; - for(int i=0; icount(); i++){ - if(tabWidget->widget(i)->whatsThis().toInt() >= num){ num = tabWidget->widget(i)->whatsThis().toInt()+1; } - } - return QString::number(num); -} - -// ======================= -// PRIVATE SLOTS -// ======================= - -//Tab Interactions -void TermWindow::New_Tab(){ - OpenDirs(QStringList() << QDir::homePath()); -} - -void TermWindow::Close_Tab(int tab){ - //qDebug() << "Close Tab:" << tab; - if(tab<0){ tab = tabWidget->currentIndex(); } - static_cast(tabWidget->widget(tab))->aboutToClose(); - tabWidget->widget(tab)->deleteLater(); //delete the page within the tag - tabWidget->removeTab(tab); // remove the tab itself - //Let the tray know when the last terminal is closed - if(tabWidget->count() < 1){ - emit TerminalFinished(); - } -} - -void TermWindow::Close_Tab(QString ID){ - //Close a tab based on it's ID instead of it's tab number - for(int i=0; icount(); i++){ - if(tabWidget->widget(i)->whatsThis()==ID){ - Close_Tab(i); - return; //all done - } - } -} - -void TermWindow::Next_Tab(){ - qDebug() << "Next Tab"; - int next = tabWidget->currentIndex()+1; - if(next>=tabWidget->count()){ next = 0; } - tabWidget->setCurrentIndex(next); -} - -void TermWindow::Prev_Tab(){ - qDebug() << "Previous Tab"; - int next = tabWidget->currentIndex()-1; - if(next<0){ next = tabWidget->count()-1; } - tabWidget->setCurrentIndex(next); -} - -void TermWindow::focusOnWidget(){ - if(tabWidget->currentWidget()!=0){ - tabWidget->currentWidget()->setFocus(); - } -} - -//Animation finishing -void TermWindow::AnimFinished(){ - if(animRunning <0){ return; } //nothing running - if(animRunning==0){ - //Hide Event - this->hide(); //need to hide the whole thing now - this->setGeometry( ANIM->startValue().toRect() ); //reset back to initial size after hidden - emit TerminalHidden(); - }else if(animRunning==1){ - //Show Event - this->activateWindow(); - tabWidget->currentWidget()->setFocus(); - emit TerminalVisible(); - }else if(animRunning==2){ - //Close Event - this->hide(); //need to hide the whole thing now - emit TerminalClosed(); - }else if(animRunning>2){ - //Re-Show event - this->hide(); - this->setGeometry( ANIM->startValue().toRect() ); //reset back to initial size after hidden - //Now re-show it - QTimer::singleShot(0,this, SLOT(ShowWindow())); - } - animRunning = -1; //done -} - -// =================== -// PROTECTED -// =================== -void TermWindow::mouseMoveEvent(QMouseEvent *ev){ - //Note: With mouse tracking turned off, this event only happens when the user is holding down the mouse button - if(onTop){ - //Move the bottom edge to the current point - if( (ev->globalPos().y() - this->y()) < 50){ return; } //quick check that the window is not smaller than 20 pixels - QRect geom = this->geometry(); - geom.setBottom(ev->globalPos().y()); - this->setGeometry(geom); - }else{ - //Move the top edge to the current point - if( (this->y() + this->height() -ev->globalPos().y()) < 50){ return; } //quick check that the window is not smaller than 20 pixels - QRect geom = this->geometry(); - geom.setTop(ev->globalPos().y()); - this->setGeometry(geom); - } - settings->setValue("lastSize",this->geometry().size()); -} \ No newline at end of file diff --git a/desktop-utilities/lumina-terminal/TermWindow.h b/desktop-utilities/lumina-terminal/TermWindow.h deleted file mode 100644 index d68c5457..00000000 --- a/desktop-utilities/lumina-terminal/TermWindow.h +++ /dev/null @@ -1,70 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#ifndef _LUMINA_DESKTOP_UTILITIES_TERMINAL_MAIN_WINDOW_H -#define _LUMINA_DESKTOP_UTILITIES_TERMINAL_MAIN_WINDOW_H - -#include -#include -#include -#include -#include -#include -#include - -class TermWindow : public QWidget{ - Q_OBJECT -public: - TermWindow(QSettings *set); - ~TermWindow(); - - void cleanup(); //called right before the window is closed - void OpenDirs(QStringList); - - void setCurrentScreen(int num = 0); - void setTopOfScreen(bool ontop); - -public slots: - void ShowWindow(); - void HideWindow(); - void CloseWindow(); - void ReShowWindow(); - -private: - QTabWidget *tabWidget; - QSettings *settings; - QShortcut *hideS, *closeS, *newTabS, *closeTabS, *prevTabS, *nextTabS; - int screennum; - bool onTop, CLOSING; - QPropertyAnimation *ANIM; - int animRunning; //internal flag for what animation is currently running - - //Calculate the window geometry necessary based on screen/location - void CalculateGeom(); - QString GenerateTabID(); - -private slots: - //Tab Interactions - void New_Tab(); - void Close_Tab(int tab = -1); - void Close_Tab(QString ID); //alternate form of the close routine - based on tab ID - void Next_Tab(); - void Prev_Tab(); - void focusOnWidget(); - //Animation finishing - void AnimFinished(); - -protected: - void mouseMoveEvent(QMouseEvent*); - -signals: - void TerminalHidden(); - void TerminalVisible(); - void TerminalClosed(); - void TerminalFinished(); -}; - -#endif diff --git a/desktop-utilities/lumina-terminal/TerminalWidget.cpp b/desktop-utilities/lumina-terminal/TerminalWidget.cpp deleted file mode 100644 index a90d9846..00000000 --- a/desktop-utilities/lumina-terminal/TerminalWidget.cpp +++ /dev/null @@ -1,504 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "TerminalWidget.h" - -#include -#include -#include -#include -#include - -#include - -//Special control code ending symbols (aside from letters) - -TerminalWidget::TerminalWidget(QWidget *parent, QString dir) : QTextEdit(parent){ - //Setup the text widget - this->setLineWrapMode(QTextEdit::WidgetWidth); - this->setAcceptRichText(false); - this->setOverwriteMode(true); - this->setFocusPolicy(Qt::StrongFocus); - this->setWordWrapMode(QTextOption::NoWrap); - this->setContextMenuPolicy(Qt::CustomContextMenu); - DEFFMT = this->textCursor().charFormat(); //save the default structure for later - CFMT = this->textCursor().charFormat(); //current format - selCursor = this->textCursor(); //used for keeping track of selections - lastCursor = this->textCursor(); - startrow = endrow = -1; - altkeypad = false; - QFontDatabase FDB; - QStringList fonts = FDB.families(QFontDatabase::Latin); - for(int i=0; isetFont(QFont(fonts[i])); qDebug() << "Using Font:" << fonts[i]; break; } - } - //Create/open the TTY port - PROC = new TTYProcess(this); - qDebug() << "Open new TTY"; - //int fd; - bool ok = PROC->startTTY( QProcessEnvironment::systemEnvironment().value("SHELL","/bin/sh"), QStringList(), dir); - qDebug() << " - opened:" << ok; - this->setEnabled(PROC->isOpen()); - contextMenu = new QMenu(this); - copyA = contextMenu->addAction(LXDG::findIcon("edit-copy"), tr("Copy Selection"), this, SLOT(copySelection()) ); - pasteA = contextMenu->addAction(LXDG::findIcon("edit-paste"), tr("Paste"), this, SLOT(pasteSelection()) ); - //Connect the signals/slots - connect(PROC, SIGNAL(readyRead()), this, SLOT(UpdateText()) ); - connect(PROC, SIGNAL(processClosed()), this, SLOT(ShellClosed()) ); - -} - -TerminalWidget::~TerminalWidget(){ - aboutToClose(); -} - -void TerminalWidget::aboutToClose(){ - if(PROC->isOpen()){ PROC->closeTTY(); } //TTY PORT -} - -// ================== -// PRIVATE -// ================== -void TerminalWidget::InsertText(QString txt){ - if(txt.isEmpty()){ return; } - //qDebug() << "Insert Text:" << txt << "Cursor Pos:" << this->textCursor().position() << "Column:" << this->textCursor().columnNumber(); - QTextCursor cur = this->textCursor(); - cur.setCharFormat(CFMT); - cur.insertText( txt, CFMT); - this->setTextCursor(cur); -} - -void TerminalWidget::applyData(QByteArray data){ - //Make sure the current cursor is the right cursor - if(this->textCursor()==selCursor){ this->setTextCursor(lastCursor); } - //Iterate through the data and apply it when possible - QByteArray chars; - //qDebug() << "Data:" << data; - for(int i=0; imoveCursor(QTextCursor::Left, QTextCursor::MoveAnchor); - //}else if( data.at(i)=='\t' ){ - //chars.append(" "); - }else if( data.at(i)=='\x1B' ){ - //Flush current text buffer to widget - if(!chars.isEmpty()){ InsertText(chars); chars.clear(); } - //ANSI Control Code start - //Look for the end of the code - int end = -1; - for(int j=1; j<(data.size()-i) && end<0; j++){ - if(QChar(data.at(i+j)).isLetter() || (QChar(data.at(i+j)).isSymbol() && data.at(i+j)!=';') ){ end = j; } - else if(data.at(i+j)=='\x1B'){ end = j-1; } //start of the next control code - } - if(end<0){ return; } //skip everything else - no end to code found - applyANSI(data.mid(i+1, end)); - //qDebug() << "Code:" << data.mid(i+1, end) << "Next Char:" << data[i+end+2]; - i+=end; //move the final loop along - already handled these bytes - - }else if( data.at(i) != '\r' ){ - //Special Check: if inserting text within a line, clear the rest of this line first - if(i==0 && this->textCursor().position() < this->document()->characterCount()-1){ - applyANSI("[K"); - } - chars.append(data.at(i)); - //Plaintext character - just add it here - //qDebug() << "Insert Text:" << data.at(i) << CFMT.foreground().color() << CFMT.background().color(); - //qDebug() << " " << this->currentCharFormat().foreground().color() << this->currentCharFormat().background().color(); - //this->textCursor().insertText( QChar(data.at(i)), CFMT ); - } - } //end loop over data - if(!chars.isEmpty()){ InsertText(chars); } -} - -void TerminalWidget::applyANSI(QByteArray code){ - //Note: the first byte is often the "[" character - qDebug() << "Handle ANSI:" << code; - if(code.length()==1){ - //KEYPAD MODES - if(code.at(0)=='='){ altkeypad = true; } - else if(code.at(0)=='>'){ altkeypad = false; } - else{ - qDebug() << "Unhandled ANSI Code:" << code; - } - }else if(code.startsWith("[")){ - // VT100 ESCAPE CODES - //CURSOR MOVEMENT - if( code.endsWith("A") ){ //Move Up - int num = 1; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::Up, QTextCursor::MoveAnchor, num); - this->setTextCursor(cur); - }else if(code.endsWith("B")){ //Move Down - int num = 1; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::Down, QTextCursor::MoveAnchor, num); - this->setTextCursor(cur); - }else if(code.endsWith("C")){ //Move Forward - int num = 1; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::Right, QTextCursor::MoveAnchor, num); - this->setTextCursor(cur); - }else if(code.endsWith("D")){ //Move Back - int num = 1; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::Left, QTextCursor::MoveAnchor, num); - this->setTextCursor(cur); - }else if(code.endsWith("E")){ //Move Next/down Lines (go toward end) - int num = 1; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::NextRow, QTextCursor::MoveAnchor, num); - this->setTextCursor(cur); - }else if(code.endsWith("F")){ //Move Previous/up Lines (go to beginning) - int num = 1; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::PreviousRow, QTextCursor::MoveAnchor, num); - this->setTextCursor(cur); - }else if(code.endsWith("G")){ //Move to specific column - int num = 1; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - QTextCursor cur = this->textCursor(); - cur.setPosition(num); - this->setTextCursor(cur); - }else if(code.endsWith("H") || code.endsWith("f") ){ //Move to specific position (row/column) - int mid = code.indexOf(";"); - if(mid>1){ - int numR, numC; numR = numC = 1; - if(mid >=2){ numR = code.mid(1,mid-1).toInt(); } - if(mid < code.size()-1){ numC = code.mid(mid+1,code.size()-mid-2).toInt(); } - - if(startrow>=0 && endrow>=0){ - if(numR == startrow){ numR = 0;} - else if(numR==endrow){ numR = this->document()->lineCount()-1; } - } - qDebug() << "Set Text Position (absolute):" << "Code:" << code << "Row:" << numR << "Col:" << numC; - //qDebug() << " - Current Pos:" << this->textCursor().position() << "Line Count:" << this->document()->lineCount(); - //if(!this->textCursor().movePosition(QTextCursor::Start, QTextCursor::MoveAnchor,1) ){ qDebug() << "Could not go to start"; } - QTextCursor cur(this->textCursor()); - cur.setPosition(QTextCursor::Start, QTextCursor::MoveAnchor); //go to start of document - //qDebug() << " - Pos After Start Move:" << cur.position(); - if( !cur.movePosition(QTextCursor::Down, QTextCursor::MoveAnchor, numR) ){ qDebug() << "Could not go to row:" << numR; } - //qDebug() << " - Pos After Down Move:" << cur.position(); - if( !cur.movePosition(QTextCursor::Right, QTextCursor::MoveAnchor, numC) ){ qDebug() << "Could not go to col:" << numC; } - /*this->textCursor().setPosition( this->document()->findBlockByLineNumber(numR).position() ); - qDebug() << " - Pos After Row Move:" << this->textCursor().position(); - if( !this->textCursor().movePosition(QTextCursor::Right, QTextCursor::MoveAnchor, numC) ){ qDebug() << "Could not go to col:" << numC; }*/ - //qDebug() << " - Ending Pos:" << cur.position(); - this->setTextCursor(cur); - }else{ - //Go to home position - this->moveCursor(QTextCursor::Start); - } - - // CURSOR MANAGEMENT - }else if(code.endsWith("r")){ //Tag top/bottom lines as perticular numbers - int mid = code.indexOf(";"); - qDebug() << "New Row Codes:" << code << "midpoint:" << mid; - if(mid>1){ - if(mid >=2){ startrow = code.mid(1,mid-1).toInt(); } - if(mid < code.size()-1){ endrow = code.mid(mid+1,code.size()-mid-2).toInt(); } - } - qDebug() << "New Row Codes:" << startrow << endrow; - // DISPLAY CLEAR CODES - }else if(code.endsWith("J")){ //ED - Erase Display - int num = 0; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - //qDebug() << "Erase Display:" << num; - if(num==1){ - //Clear from cursor to beginning of screen - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::Start, QTextCursor::KeepAnchor, 1); - cur.removeSelectedText(); - this->setTextCursor(cur); - }else if(num==2){ - //Clear the whole screen - qDebug() << "Clear Screen:" << this->document()->lineCount(); - this->clear(); - }else{ - //Clear from cursor to end of screen - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::End, QTextCursor::KeepAnchor, 1); - cur.removeSelectedText(); - this->setTextCursor(cur); - } - }else if(code.endsWith("K")){ //EL - Erase in Line - int num = 0; - if(code.size()>2){ num = code.mid(1, code.size()-2).toInt(); } //everything in the middle - //qDebug() << "Erase Number" << num; - //Now determine what should be cleared based on code - if(num==1){ - //Clear from current cursor to beginning of line - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::StartOfLine, QTextCursor::KeepAnchor, 1); - cur.removeSelectedText(); - this->setTextCursor(cur); - }else if(num==2){ - //Clear the entire line - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::StartOfLine, QTextCursor::MoveAnchor, 1); - cur.movePosition(QTextCursor::EndOfLine, QTextCursor::KeepAnchor, 1); - cur.removeSelectedText(); - this->setTextCursor(cur); - }else{ - //Clear from current cursor to end of line - QTextCursor cur = this->textCursor(); - cur.movePosition(QTextCursor::EndOfLine, QTextCursor::KeepAnchor, 1); - cur.removeSelectedText(); - this->setTextCursor(cur); - } - - //SCROLL MOVEMENT CODES - //}else if(code.endsWith("S")){ // SU - Scroll Up - //qDebug() << "Scroll Up:" << code; - //}else if(code.endsWith("T")){ // SD - Scroll Down - //qDebug() << "Scroll Down:" << code; - - // GRAPHICS RENDERING - }else if(code.endsWith("m")){ - //Format: "[;m" (no limit to sections separated by ";") - int start = 1; - int end = code.indexOf(";"); - while(end>start){ - applyANSIColor(code.mid(start, end-start).toInt()); - //Now update the iterators and try again - start = end; - end = code.indexOf(";",start+1); //go to the next one - } - //Need the last section as well - end = code.size()-1; - if(end>start){ applyANSIColor(code.mid(start, end-start).toInt());} - else{ applyANSIColor(0); } - - - // GRAPHICS MODES - //}else if(code.endsWith("h")){ - - //}else if(code.endsWith("l")){ - - }else{ - qDebug() << "Unhandled Control Code:" << code; - } - - } //End VT100 control codes - else{ - qDebug() << "Unhandled Control Code:" << code; - } -} - -void TerminalWidget::applyANSIColor(int code){ - //qDebug() << "Apply Color code:" << code; - if(code <=0){ CFMT = DEFFMT; } //Reset back to default - else if(code==1){ CFMT.setFontWeight(75); } //BOLD font - else if(code==2){ CFMT.setFontWeight(25); } //Faint font (smaller than normal by a bit) - else if(code==3){ CFMT.setFontWeight(75); } //Italic font - else if(code==4){ CFMT.setFontUnderline(true); } //Underline - //5-6: Blink text (unsupported) - //7: Reverse foreground/background (unsupported) - //8: Conceal (unsupported) - else if(code==9){ CFMT.setFontStrikeOut(true); } //Crossed out - //10-19: Change font family (unsupported) - //20: Fraktur Font (unsupported) - //21: Bold:off or Underline:Double (unsupported) - else if(code==22){ CFMT.setFontWeight(50); } //Normal weight - //23: Reset font (unsupported) - else if(code==24){ CFMT.setFontUnderline(false); } //disable underline - //25: Disable blinking (unsupported) - //26: Reserved - //27: Reset reversal (7) (unsupported) - //28: Reveal (cancel 8) (unsupported) - else if(code==29){ CFMT.setFontStrikeOut(false); } //Not Crossed out - else if(code>=30 && code<=39){ - //Set the font color - QColor color; - if(code==30){color=QColor(Qt::black); } - else if(code==31){ color=QColor(Qt::red); } - else if(code==32){ color=QColor(Qt::green); } - else if(code==33){ color=QColor(Qt::yellow); } - else if(code==34){ color=QColor(Qt::blue); } - else if(code==35){ color=QColor(Qt::magenta); } - else if(code==36){ color=QColor(Qt::cyan); } - else if(code==37){ color=QColor(Qt::white); } - //48: Special extended color setting (unsupported) - else if(code==39){ color= DEFFMT.foreground().color(); } //reset to default color -QBrush brush = CFMT.background(); - color.setAlpha(255); //fully opaque - brush.setColor(color); - CFMT.setForeground( brush ); - this->setTextColor(color); //just in case the format is not used - } - else if(code>=40 && code<=49){ - //Set the font color - QColor color; - if(code==40){color=QColor(Qt::black); } - else if(code==41){ color=QColor(Qt::red); } - else if(code==42){ color=QColor(Qt::green); } - else if(code==43){ color=QColor(Qt::yellow); } - else if(code==44){ color=QColor(Qt::blue); } - else if(code==45){ color=QColor(Qt::magenta); } - else if(code==46){ color=QColor(Qt::cyan); } - else if(code==47){ color=QColor(Qt::white); } - //48: Special extended color setting (unsupported) - else if(code==49){ color= DEFFMT.background().color(); } //reset to default color - QBrush brush = CFMT.background(); - color.setAlpha(255); //fully opaque - brush.setColor(color); - CFMT.setBackground( brush ); - } - //50: Reserved - //51: Framed - //52: Encircled - else if(code==53){ CFMT.setFontOverline(true); } //enable overline - //54: Not framed/circled (51/52) - else if(code==55){ CFMT.setFontOverline(false); } //disable overline - //56-59: Reserved - //60+: Not generally supported (special code for particular terminals such as aixterm) -} - -//Outgoing Data parsing -void TerminalWidget::sendKeyPress(int key){ - QByteArray ba; - //if(this->textCursor()==selCursor){ this->setTextCursor(lastCursor); } - //int fromEnd = this->document()->characterCount() - this->textCursor().position(); - //Check for special keys - switch(key){ - case Qt::Key_Delete: - ba.append("\x7F"); - break; - case Qt::Key_Backspace: - ba.append("\x08"); - break; - case Qt::Key_Left: - if(altkeypad){ ba.append("^[D"); } - else{ ba.append("\x1b[D"); } - break; - case Qt::Key_Right: - if(altkeypad){ ba.append("^[C"); } - else{ ba.append("\x1b[C"); } - break; - case Qt::Key_Up: - if(altkeypad){ ba.append("^[A"); } - else{ ba.append("\x1b[A"); } - break; - case Qt::Key_Down: - if(altkeypad){ ba.append("^[B"); } - else{ ba.append("\x1b[B"); } - break; - case Qt::Key_Home: - ba.append("\x1b[H"); - break; - case Qt::Key_End: - ba.append("\x1b[F"); - break; - } - qDebug() << "Forward Input:" << ba; - if(!ba.isEmpty()){ PROC->writeTTY(ba); } -} - -// ================== -// PRIVATE SLOTS -// ================== -void TerminalWidget::UpdateText(){ - //read the data from the process - //qDebug() << "UpdateText"; - if(!PROC->isOpen()){ return; } - applyData(PROC->readTTY()); - //adjust the scrollbar as needed - this->ensureCursorVisible(); - //this->verticalScrollBar()->setValue(this->verticalScrollBar()->maximum()); -} - -void TerminalWidget::ShellClosed(){ - emit ProcessClosed(this->whatsThis()); -} - -void TerminalWidget::copySelection(){ - QApplication::clipboard()->setText( selCursor.selectedText() ); -} - -void TerminalWidget::pasteSelection(){ - QString text = QApplication::clipboard()->text(); - if(!text.isEmpty()){ - QByteArray ba; ba.append(text); //avoid any byte conversions - PROC->writeTTY(ba); - } -} - -// ================== -// PROTECTED -// ================== -void TerminalWidget::keyPressEvent(QKeyEvent *ev){ - - if(ev->text().isEmpty() || ev->text()=="\b" ){ - sendKeyPress(ev->key()); - //PROC->writeTTY( QByteArray::fromHex(ev->nativeVirtualKey()) ); - }else{ - if( (ev->key()==Qt::Key_Enter || ev->key()==Qt::Key_Return) && !this->textCursor().atEnd() ){ - sendKeyPress(Qt::Key_End); //just in case the cursor is not at the end (TTY will split lines and such - ugly) - } - QByteArray ba; ba.append(ev->text()); //avoid any byte conversions - //qDebug() << "Forward Input:" << ba; - PROC->writeTTY(ba); - } - - ev->ignore(); -} - -void TerminalWidget::mousePressEvent(QMouseEvent *ev){ - this->setFocus(); - if(ev->button()==Qt::RightButton){ - QTextEdit::mousePressEvent(ev); - }else if(ev->button()==Qt::MiddleButton){ - pasteSelection(); - }else if(ev->button()==Qt::LeftButton){ - if(this->textCursor()!=selCursor){ lastCursor = this->textCursor(); } - selCursor = this->cursorForPosition(ev->pos()); - } - Q_UNUSED(ev); -} - -void TerminalWidget::mouseMoveEvent(QMouseEvent *ev){ - if(ev->button()==Qt::LeftButton){ - selCursor.setPosition(this->cursorForPosition(ev->pos()).position(), QTextCursor::KeepAnchor); - if(selCursor.hasSelection()){ this->setTextCursor(selCursor); } - }else{ - QTextEdit::mouseMoveEvent(ev); - } -} - -void TerminalWidget::mouseReleaseEvent(QMouseEvent *ev){ - if(ev->button()==Qt::LeftButton){ - selCursor.setPosition(this->cursorForPosition(ev->pos()).position(), QTextCursor::KeepAnchor); - if(selCursor.hasSelection()){ this->setTextCursor(selCursor); } - else{ this->setTextCursor(lastCursor); } - }else if(ev->button()==Qt::RightButton){ - copyA->setEnabled( selCursor.hasSelection() ); - pasteA->setEnabled( !QApplication::clipboard()->text().isEmpty() ); - contextMenu->popup( this->mapToGlobal(ev->pos()) ); - } - Q_UNUSED(ev); -} - -void TerminalWidget::mouseDoubleClickEvent(QMouseEvent *ev){ - Q_UNUSED(ev); -} - -void TerminalWidget::resizeEvent(QResizeEvent *ev){ - if(!PROC->isOpen()){ return; } - QSize pix = ev->size(); //pixels - QSize chars; - chars.setWidth( pix.width()/this->fontMetrics().width("W") ); - chars.setHeight( pix.height()/this->fontMetrics().lineSpacing() ); - - PROC->setTerminalSize(chars,pix); - QTextEdit::resizeEvent(ev); -} diff --git a/desktop-utilities/lumina-terminal/TerminalWidget.h b/desktop-utilities/lumina-terminal/TerminalWidget.h deleted file mode 100644 index 32fd55ad..00000000 --- a/desktop-utilities/lumina-terminal/TerminalWidget.h +++ /dev/null @@ -1,68 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#ifndef _LUMINA_DESKTOP_UTILITIES_TERMINAL_PROCESS_WIDGET_H -#define _LUMINA_DESKTOP_UTILITIES_TERMINAL_PROCESS_WIDGET_H - -#include -#include -#include -#include -#include -#include -#include - -#include "TtyProcess.h" - -class TerminalWidget : public QTextEdit{ - Q_OBJECT -public: - TerminalWidget(QWidget *parent =0, QString dir=""); - ~TerminalWidget(); - - void aboutToClose(); - -private: - TTYProcess *PROC; - QTextCharFormat DEFFMT, CFMT; //default/current text format - QTextCursor selCursor, lastCursor; - QMenu *contextMenu; - QAction *copyA, *pasteA; - int selectionStart; - - //Incoming Data parsing - void InsertText(QString); - void applyData(QByteArray data); //overall data parsing - void applyANSI(QByteArray code); //individual code application - void applyANSIColor(int code); //Add the designated color code to the CFMT structure - - //Outgoing Data parsing - void sendKeyPress(int key); - - //Special incoming data flags - int startrow, endrow; //indexes for the first/last row ("\x1b[A;Br" CC) - bool altkeypad; -private slots: - void UpdateText(); - void ShellClosed(); - - void copySelection(); - void pasteSelection(); - -signals: - void ProcessClosed(QString); - -protected: - void keyPressEvent(QKeyEvent *ev); - void mousePressEvent(QMouseEvent *ev); - void mouseMoveEvent(QMouseEvent *ev); - void mouseReleaseEvent(QMouseEvent *ev); - void mouseDoubleClickEvent(QMouseEvent *ev); - //void contextMenuEvent(QContextMenuEvent *ev); - void resizeEvent(QResizeEvent *ev); -}; - -#endif diff --git a/desktop-utilities/lumina-terminal/TrayIcon.cpp b/desktop-utilities/lumina-terminal/TrayIcon.cpp deleted file mode 100644 index ea970df9..00000000 --- a/desktop-utilities/lumina-terminal/TrayIcon.cpp +++ /dev/null @@ -1,172 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "TrayIcon.h" - -#include -#include - -#include - -TrayIcon::TrayIcon() : QSystemTrayIcon(){ - //Create the child widgets here - settings = new QSettings("lumina-desktop","lumina-terminal"); - this->setContextMenu(new QMenu()); - ScreenMenu = new QMenu(); - connect(ScreenMenu, SIGNAL(triggered(QAction*)), this, SLOT(ChangeScreen(QAction*)) ); - TERM = new TermWindow(settings); - //Load the current settings - TERM->setTopOfScreen(settings->value("TopOfScreen",true).toBool()); - TERM->setCurrentScreen(settings->value("OnScreen",0).toInt()); - connect(TERM, SIGNAL(TerminalHidden()), this, SLOT(TermHidden())); - connect(TERM, SIGNAL(TerminalVisible()), this, SLOT(TermVisible())); - connect(TERM, SIGNAL(TerminalClosed()), this, SLOT(startCleanup())); - connect(TERM, SIGNAL(TerminalFinished()), this, SLOT(stopApplication())); - connect(this, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(TrayActivated(QSystemTrayIcon::ActivationReason)) ); -} - -TrayIcon::~TrayIcon(){ - delete TERM; - delete ScreenMenu; -} - -// ============= -// PUBLIC -// ============= -void TrayIcon::parseInputs(QStringList inputs){ - //Note that this is only run on the primary process - otherwise inputs are sent to the slotSingleInstance() below - termVisible = !inputs.contains("-toggle"); //will automatically show the terminal on first run, even if "-toggle" is set - - setupContextMenu(); - updateIcons(); - inputs = adjustInputs(inputs); //will adjust termVisible as necessary - if(inputs.isEmpty()){ inputs << QDir::homePath(); } //always start up with one terminal minimum - TERM->OpenDirs(inputs); - if(termVisible){ QTimer::singleShot(0, TERM, SLOT(ShowWindow())); } -} - -// ================= -// PUBLIC SLOTS -// ================= -void TrayIcon::slotSingleInstance(QStringList inputs){ - //Note that this is only run for a secondary process forwarding its inputs - //qDebug() << "Single Instance Event:" << inputs << termVisible; - bool visible = termVisible; - inputs = adjustInputs(inputs); //will adjust termVisible as necessary - if(!inputs.isEmpty()){ TERM->OpenDirs(inputs); } - //Only adjust the window if there was a change in the visibility status - //qDebug() << "Set Visible:" << termVisible; - if(!visible && termVisible){ QTimer::singleShot(0, TERM, SLOT(ShowWindow())); } - else if(visible && !termVisible){ QTimer::singleShot(0, TERM, SLOT(HideWindow())); } -} - -void TrayIcon::updateIcons(){ - this->setIcon(LXDG::findIcon("utilities-terminal","")); -} - -// ================ -// PRIVATE -// ================ -QStringList TrayIcon::adjustInputs(QStringList inputs){ - bool hasHide = false; - //Look for the special CLI flags just for the tray icon and trim them out - for(int i=0; icleanup(); -} - -void TrayIcon::stopApplication(){ - QApplication::exit(0); -} - -void TrayIcon::ChangeTopBottom(bool ontop){ - TERM->setTopOfScreen(ontop); - settings->setValue("TopOfScreen",ontop); //save for later -} - -void TrayIcon::ChangeScreen(QAction *act){ - int screen = act->whatsThis().toInt(); - TERM->setCurrentScreen(screen); - settings->setValue("OnScreen",screen); - updateScreenMenu(); -} - -void TrayIcon::setupContextMenu(){ - this->contextMenu()->clear(); - this->contextMenu()->addAction(LXDG::findIcon("edit-select",""), tr("Trigger Terminal"), this, SLOT(ToggleVisibility()) ); - this->contextMenu()->addSeparator(); - QAction * act = this->contextMenu()->addAction(tr("Top of Screen"), this, SLOT(ChangeTopBottom(bool)) ); - act->setCheckable(true); - act->setChecked(settings->value("TopOfScreen",true).toBool() ); - this->contextMenu()->addMenu(ScreenMenu); - this->contextMenu()->addSeparator(); - this->contextMenu()->addAction(LXDG::findIcon("application-exit",""), tr("Close Terminal"), this, SLOT(stopApplication()) ); - updateScreenMenu(); -} - -void TrayIcon::updateScreenMenu(){ - ScreenMenu->clear(); - QDesktopWidget *desk = QApplication::desktop(); - int cscreen = settings->value("OnScreen",0).toInt(); - if(cscreen>=desk->screenCount()){ cscreen = desk->primaryScreen(); } - ScreenMenu->setTitle(tr("Move To Monitor")); - for(int i=0; iscreenCount(); i++){ - if(i!=cscreen){ - QAction *act = new QAction( QString(tr("Monitor %1")).arg(QString::number(i+1)),ScreenMenu); - act->setWhatsThis(QString::number(i)); - ScreenMenu->addAction(act); - } - } - ScreenMenu->setVisible(!ScreenMenu->isEmpty()); -} - -void TrayIcon::TrayActivated(QSystemTrayIcon::ActivationReason reason){ - switch(reason){ - case QSystemTrayIcon::Context: - this->contextMenu()->popup(this->geometry().center()); - break; - default: - ToggleVisibility(); - } -} - -//Slots for the window visibility -void TrayIcon::ToggleVisibility(){ - if(termVisible){ QTimer::singleShot(0, TERM, SLOT(HideWindow())); } - else{ QTimer::singleShot(0, TERM, SLOT(ShowWindow())); } -} - -void TrayIcon::TermHidden(){ - termVisible = false; -} - -void TrayIcon::TermVisible(){ - termVisible = true; -} \ No newline at end of file diff --git a/desktop-utilities/lumina-terminal/TrayIcon.h b/desktop-utilities/lumina-terminal/TrayIcon.h deleted file mode 100644 index 961aaa90..00000000 --- a/desktop-utilities/lumina-terminal/TrayIcon.h +++ /dev/null @@ -1,59 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#ifndef _LUMINA_DESKTOP_UTILITIES_TERMINAL_TRAY_ICON_H -#define _LUMINA_DESKTOP_UTILITIES_TERMINAL_TRAY_ICON_H -// QT Includes -#include -#include -#include -#include -#include - -#include - -#include "TermWindow.h" - -class TrayIcon : public QSystemTrayIcon { - Q_OBJECT - -public: - TrayIcon(); - ~TrayIcon(); - - //First run - void parseInputs(QStringList); //Note that this is only run on the primary process - otherwise it gets sent to the singleInstance slot below - -public slots: - void slotSingleInstance(QStringList inputs = QStringList()); - void updateIcons(); - -private: - bool termVisible; - TermWindow *TERM; - QMenu *ScreenMenu; - QStringList adjustInputs(QStringList); - QSettings *settings; -private slots: - //Action Buttons - void startCleanup(); - void stopApplication(); - void ChangeTopBottom(bool ontop); - void ChangeScreen(QAction*); - - //Tray Updates - void setupContextMenu(); - void updateScreenMenu(); - void TrayActivated(QSystemTrayIcon::ActivationReason); - - //Slots for the window visibility - void ToggleVisibility(); - void TermHidden(); - void TermVisible(); - -}; - -#endif diff --git a/desktop-utilities/lumina-terminal/TtyProcess.cpp b/desktop-utilities/lumina-terminal/TtyProcess.cpp deleted file mode 100644 index c5844255..00000000 --- a/desktop-utilities/lumina-terminal/TtyProcess.cpp +++ /dev/null @@ -1,229 +0,0 @@ -#include "TtyProcess.h" - -#include -#include - -TTYProcess::TTYProcess(QObject *parent) : QObject(parent){ - childProc = 0; - sn = 0; - ttyfd = 0; -} - -TTYProcess::~TTYProcess(){ - closeTTY(); //make sure everything is closed properly -} - -// === PUBLIC === -bool TTYProcess::startTTY(QString prog, QStringList args, QString workdir){ - if(workdir=="~"){ workdir = QDir::homePath(); } - QDir::setCurrent(workdir); - QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); - setenv("TERM","vt100",1); //VT100 emulation support - unsetenv("TERMCAP"); - /*setenv("TERMCAP","mvterm|vv100|mvterm emulator with ANSI colors:\ - :pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[100m:tc=vt102:",1); //see /etc/termcap as well*/ - QStringList filter = env.keys().filter("XTERM"); - for(int i=0; isetEnabled(true); - connect(sn, SIGNAL(activated(int)), this, SLOT(checkStatus(int)) ); - ttyfd = FD; - qDebug() << " - PTY:" << ptsname(FD); - return true; - } -} - -void TTYProcess::closeTTY(){ - int junk; - if(0==waitpid(childProc, &junk, WNOHANG)){ - kill(childProc, SIGKILL); - } - if(ttyfd!=0 && sn!=0){ - sn->setEnabled(false); - ::close(ttyfd); - ttyfd = 0; - emit processClosed(); - } -} - -void TTYProcess::writeTTY(QByteArray output){ - //qDebug() << "Write:" << output; - ::write(ttyfd, output.data(), output.size()); -} - -QByteArray TTYProcess::readTTY(){ - QByteArray BA; - //qDebug() << "Read TTY"; - if(sn==0){ return BA; } //not setup yet - char buffer[64]; - ssize_t rtot = read(sn->socket(),&buffer,64); - //buffer[rtot]='\0'; - BA = QByteArray(buffer, rtot); - //qDebug() << " - Got Data:" << BA; - if(!fragBA.isEmpty()){ - //Have a leftover fragment, include this too - BA = BA.prepend(fragBA); - fragBA.clear(); - } - bool bad = true; - BA = CleanANSI(BA, bad); - if(bad){ - //incomplete fragent - read some more first - fragBA = BA; - return readTTY(); - }else{ - //qDebug() << "Read Data:" << BA; - return BA; - } -} - -void TTYProcess::setTerminalSize(QSize chars, QSize pixels){ - if(ttyfd==0){ return; } - - struct winsize c_sz; - c_sz.ws_row = chars.height(); - c_sz.ws_col = chars.width(); - c_sz.ws_xpixel = pixels.width(); - c_sz.ws_ypixel = pixels.height(); - if( ioctl(ttyfd, TIOCSWINSZ, &ws) ){ - qDebug() << "Error settings terminal size"; - }else{ - //qDebug() <<"Set Terminal Size:" << pixels << chars; - } -} - -bool TTYProcess::isOpen(){ - return (ttyfd!=0); -} - -QByteArray TTYProcess::CleanANSI(QByteArray raw, bool &incomplete){ - incomplete = true; - //qDebug() << "Clean ANSI Data:" << raw; - //IN_LINE TERMINAL COLOR CODES (ANSI Escape Codes) "\x1B[m" - // - Just remove them for now - - //Special XTERM encoding (legacy support) - int index = raw.indexOf("\x1B]"); - while(index>=0){ - //The end character of this sequence is the Bell command ("\x07") - int end = raw.indexOf("\x07"); - if(end<0){ return raw; } //incomplete raw array - raw = raw.remove(index, end-index+1); - index = raw.indexOf("\x1B]"); - } - - // GENERIC ANSI CODES ((Make sure the output is not cut off in the middle of a code) - index = raw.indexOf("\x1B"); - while(index>=0){ - //CURSOR MOVEMENT - int end = 0; - for(int i=1; i=0){ - //qDebug() << "Remove Bell:" << index; - raw = raw.remove(index,1); - index = raw.indexOf("\x07"); - } - - incomplete = false; - return raw; -} - -// === PRIVATE === -pid_t TTYProcess::LaunchProcess(int& fd, char *prog, char **child_args){ - //Returns: -1 for errors, positive value (file descriptor) for the master side of the TTY to watch - - //First open/setup a new pseudo-terminal file/device on the system (master side) - fd = posix_openpt(O_RDWR | O_NOCTTY); //open read/write - if(fd<0){ return -1; } //could not create pseudo-terminal - int rc = grantpt(fd); //set permissions - if(rc!=0){ return -1; } - rc = unlockpt(fd); //unlock file (ready for use) - if(rc!=0){ return -1; } - //Now fork, return the Master device and setup the child - pid_t PID = fork(); - if(PID==0){ - //SLAVE/child - int fds = ::open(ptsname(fd), O_RDWR | O_NOCTTY); //open slave side read/write - ::close(fd); //close the master side from the slave thread - - //Adjust the slave side mode to RAW - struct termios TSET; - rc = tcgetattr(fds, &TSET); //read the current settings - cfmakesane(&TSET); //set the RAW mode on the settings ( cfmakeraw(&TSET); ) - tcsetattr(fds, TCSANOW, &TSET); //apply the changed settings - - //Change the controlling terminal in child thread to the slave PTY - ::close(0); //close current terminal standard input - ::close(1); //close current terminal standard output - ::close(2); //close current terminal standard error - dup(fds); // Set slave PTY as standard input (0); - dup(fds); // Set slave PTY as standard output (1); - dup(fds); // Set slave PTY as standard error (2); - - setsid(); //Make current process new session leader (so we can set controlling terminal) - ioctl(0,TIOCSCTTY, 1); //Set the controlling terminal to the slave PTY - - //Execute the designated program - rc = execvp(prog, child_args); - ::close(fds); //no need to keep original file descriptor open any more - exit(rc); - } - //MASTER thread (or error) - return PID; -} - -// === PRIVATE SLOTS === -void TTYProcess::checkStatus(int sock){ - //This is run when the socket gets activated - if(sock!=ttyfd){ - - } - //Make sure the child PID is still active - int junk; - if(0!=waitpid(childProc, &junk, WNOHANG)){ - this->closeTTY(); //clean up everything else - }else{ - emit readyRead(); - } -} diff --git a/desktop-utilities/lumina-terminal/TtyProcess.h b/desktop-utilities/lumina-terminal/TtyProcess.h deleted file mode 100644 index 9b3873b0..00000000 --- a/desktop-utilities/lumina-terminal/TtyProcess.h +++ /dev/null @@ -1,83 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -// This is basically a replacement for QProcess, where all process/terminal outputs -// are redirected and not just the standard input/output channels. This allows it -// to be used for terminal-like apps (shells) which directly modify the terminal output -// rather than stick to input/output channels for communication. -//=========================================== -// IMPLEMENTATION NOTE -//====================== -// The process requires/uses ANSI control codes (\x1B[) for special operations -// such as moving the cursor, erasing characters, etc.. -// It is recommended that you pair this class with the graphical "TerminalWidget.h" class -// or some other ANSI-compatible display widget. -//=========================================== -#ifndef _LUMINA_DESKTOP_UTILITIES_TERMINAL_TTY_PROCESS_WIDGET_H -#define _LUMINA_DESKTOP_UTILITIES_TERMINAL_TTY_PROCESS_WIDGET_H - -#include -#include -#include - -//Standard C library functions for PTY access/setup -#include -#include -#include -#include -#include -#include -#include -#include - -class TTYProcess : public QObject{ - Q_OBJECT -public: - TTYProcess(QObject *parent = 0); - ~TTYProcess(); - - bool startTTY(QString prog, QStringList args = QStringList(), QString workdir = "~"); - void closeTTY(); - - //Primary read/write functions - void writeTTY(QByteArray output); - QByteArray readTTY(); - - //Setup the terminal size (characters and pixels) - void setTerminalSize(QSize chars, QSize pixels); - - //Status update checks - bool isOpen(); - - //Functions for handling ANSI escape codes (typically not used by hand) - QByteArray CleanANSI(QByteArray, bool &incomplete); - -private: - pid_t childProc; - int ttyfd; - QSocketNotifier *sn; - QByteArray fragBA; //fragment ByteArray - - //==================================== - // C Library function for setting up the PTY - // Inputs: - // int &fd: (output) file descriptor for the master PTY (positive integer if valid) - // char *prog: program to run - // char **args: program arguments - // Returns: - // -1 for errors, child process PID (positive integer) if successful - //==================================== - static pid_t LaunchProcess(int& fd, char *prog, char **child_args); - -private slots: - void checkStatus(int); - -signals: - void readyRead(); - void processClosed(); -}; - -#endif diff --git a/desktop-utilities/lumina-terminal/lumina-terminal.pro b/desktop-utilities/lumina-terminal/lumina-terminal.pro deleted file mode 100644 index 104ff33f..00000000 --- a/desktop-utilities/lumina-terminal/lumina-terminal.pro +++ /dev/null @@ -1,96 +0,0 @@ -include("$${PWD}/../../OS-detect.pri") - -QT += core gui widgets network - -TARGET = lumina-terminal -target.path = $${L_BINDIR} - -HEADERS += TrayIcon.h \ - TermWindow.h \ - TerminalWidget.h \ - TtyProcess.h - -SOURCES += main.cpp \ - TrayIcon.cpp \ - TermWindow.cpp \ - TerminalWidget.cpp \ - TtyProcess.cpp - - -LIBS += -lLuminaUtils - - -DEPENDPATH += ../../libLumina - -TRANSLATIONS = i18n/lumina-terminal_af.ts \ - i18n/lumina-terminal_ar.ts \ - i18n/lumina-terminal_az.ts \ - i18n/lumina-terminal_bg.ts \ - i18n/lumina-terminal_bn.ts \ - i18n/lumina-terminal_bs.ts \ - i18n/lumina-terminal_ca.ts \ - i18n/lumina-terminal_cs.ts \ - i18n/lumina-terminal_cy.ts \ - i18n/lumina-terminal_da.ts \ - i18n/lumina-terminal_de.ts \ - i18n/lumina-terminal_el.ts \ - i18n/lumina-terminal_en_GB.ts \ - i18n/lumina-terminal_en_ZA.ts \ - i18n/lumina-terminal_es.ts \ - i18n/lumina-terminal_et.ts \ - i18n/lumina-terminal_eu.ts \ - i18n/lumina-terminal_fa.ts \ - i18n/lumina-terminal_fi.ts \ - i18n/lumina-terminal_fr.ts \ - i18n/lumina-terminal_fr_CA.ts \ - i18n/lumina-terminal_gl.ts \ - i18n/lumina-terminal_he.ts \ - i18n/lumina-terminal_hi.ts \ - i18n/lumina-terminal_hr.ts \ - i18n/lumina-terminal_hu.ts \ - i18n/lumina-terminal_id.ts \ - i18n/lumina-terminal_is.ts \ - i18n/lumina-terminal_it.ts \ - i18n/lumina-terminal_ja.ts \ - i18n/lumina-terminal_ka.ts \ - i18n/lumina-terminal_ko.ts \ - i18n/lumina-terminal_lt.ts \ - i18n/lumina-terminal_lv.ts \ - i18n/lumina-terminal_mk.ts \ - i18n/lumina-terminal_mn.ts \ - i18n/lumina-terminal_ms.ts \ - i18n/lumina-terminal_mt.ts \ - i18n/lumina-terminal_nb.ts \ - i18n/lumina-terminal_nl.ts \ - i18n/lumina-terminal_pa.ts \ - i18n/lumina-terminal_pl.ts \ - i18n/lumina-terminal_pt.ts \ - i18n/lumina-terminal_pt_BR.ts \ - i18n/lumina-terminal_ro.ts \ - i18n/lumina-terminal_ru.ts \ - i18n/lumina-terminal_sk.ts \ - i18n/lumina-terminal_sl.ts \ - i18n/lumina-terminal_sr.ts \ - i18n/lumina-terminal_sv.ts \ - i18n/lumina-terminal_sw.ts \ - i18n/lumina-terminal_ta.ts \ - i18n/lumina-terminal_tg.ts \ - i18n/lumina-terminal_th.ts \ - i18n/lumina-terminal_tr.ts \ - i18n/lumina-terminal_uk.ts \ - i18n/lumina-terminal_uz.ts \ - i18n/lumina-terminal_vi.ts \ - i18n/lumina-terminal_zh_CN.ts \ - i18n/lumina-terminal_zh_HK.ts \ - i18n/lumina-terminal_zh_TW.ts \ - i18n/lumina-terminal_zu.ts - -dotrans.path=$${L_SHAREDIR}/Lumina-DE/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/Lumina-DE/i18n/ - -INSTALLS += target dotrans - -NO_I18N{ - INSTALLS -= dotrans -} - diff --git a/desktop-utilities/lumina-terminal/main.cpp b/desktop-utilities/lumina-terminal/main.cpp deleted file mode 100644 index 896f7765..00000000 --- a/desktop-utilities/lumina-terminal/main.cpp +++ /dev/null @@ -1,47 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include -#include - -#include -#include - -#include - -#include "TrayIcon.h" -int main(int argc, char *argv[]) { - LTHEME::LoadCustomEnvSettings(); - LSingleApplication a(argc, argv, "lumina-terminal"); - if( !a.isPrimaryProcess() ){ return 0; } //poked the current process instead - - //First make sure a system tray is available - /*qDebug() << "Checking for system tray"; - bool ready = false; - for(int i=0; i<60 && !ready; i++){ - ready = QSystemTrayIcon::isSystemTrayAvailable(); - if(!ready){ - //Pause for 5 seconds - sleep(5); //don't worry about stopping event handling - nothing running yet - } - } - if(!ready){ - qDebug() << "Could not find any available system tray after 5 minutes: exiting...."; - return 1; - }*/ - - //Now go ahead and setup the app - LuminaThemeEngine theme(&a); - QApplication::setQuitOnLastWindowClosed(false); - - //Now start the tray icon - TrayIcon tray; - QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &tray, SLOT(slotSingleInstance(QStringList)) ); - QObject::connect(&theme, SIGNAL(updateIcons()), &tray, SLOT(updateIcons()) ); - tray.parseInputs(a.inputlist); - tray.show(); - return a.exec(); -} diff --git a/desktop-utilities/lumina-textedit/ColorDialog.cpp b/desktop-utilities/lumina-textedit/ColorDialog.cpp deleted file mode 100644 index d89bdad0..00000000 --- a/desktop-utilities/lumina-textedit/ColorDialog.cpp +++ /dev/null @@ -1,59 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "ColorDialog.h" -#include "ui_ColorDialog.h" - -#include -#include - -#include - -ColorDialog::ColorDialog(QSettings *set, QWidget *parent) : QDialog(parent), ui(new Ui::ColorDialog()){ - ui->setupUi(this); - settings = set; - connect(ui->push_cancel, SIGNAL(clicked()), this, SLOT(close()) ); - connect(ui->push_apply, SIGNAL(clicked()), this, SLOT(saveColors()) ); - connect(ui->push_getcolor, SIGNAL(clicked()), this, SLOT(changeColor()) ); -} - -void ColorDialog::LoadColors(){ - ui->treeWidget->clear(); - QStringList colors = settings->allKeys().filter("colors/"); - - for(int i=0; isetText(0, colors[i].section("/",-1)); - it->setText(1, settings->value(colors[i]).toString() ); - it->setBackground(2, QBrush(QColor( it->text(1) ) ) ); - ui->treeWidget->addTopLevelItem(it); - } -} - -void ColorDialog::updateIcons(){ - this->setWindowIcon( LXDG::findIcon("format-fill-color") ); - ui->push_cancel->setIcon( LXDG::findIcon("dialog-cancel") ); - ui->push_apply->setIcon( LXDG::findIcon("dialog-ok") ); - ui->push_getcolor->setIcon( LXDG::findIcon("format-fill-color") ); -} - -void ColorDialog::saveColors(){ - for(int i=0; itreeWidget->topLevelItemCount(); i++){ - QTreeWidgetItem *it = ui->treeWidget->topLevelItem(i); - settings->setValue("colors/"+it->text(0), it->text(1)); - } - emit colorsChanged(); - this->close(); -} - -void ColorDialog::changeColor(){ - QTreeWidgetItem *it = ui->treeWidget->currentItem(); - if(it==0){ return; } - QColor color = QColorDialog::getColor(QColor( it->text(1)), this, tr("Select Color")); - if(!color.isValid()){ return; } - it->setText(1, color.name()); - it->setBackground(2, QBrush(color)); -} \ No newline at end of file diff --git a/desktop-utilities/lumina-textedit/ColorDialog.h b/desktop-utilities/lumina-textedit/ColorDialog.h deleted file mode 100644 index 2cddd7cf..00000000 --- a/desktop-utilities/lumina-textedit/ColorDialog.h +++ /dev/null @@ -1,48 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#ifndef _LUMINA_PLAIN_TEXT_EDITOR_COLOR_DIALOG_H -#define _LUMINA_PLAIN_TEXT_EDITOR_COLOR_DIALOG_H - -#include -#include -#include -#include - -namespace Ui{ - class ColorDialog; -}; - -class ColorDialog : public QDialog{ - Q_OBJECT -private: - Ui::ColorDialog *ui; - QSettings *settings; - -public: - ColorDialog(QSettings *set, QWidget *parent); - ~ColorDialog(){} - - void LoadColors(); - -public slots: - void updateIcons(); - -private slots: - void saveColors(); - void changeColor(); - -signals: - void colorsChanged(); - -protected: - void closeEvent(QCloseEvent*){ - //Make sure this window never actually closes until the app is finished - this->hide(); - } -}; - -#endif \ No newline at end of file diff --git a/desktop-utilities/lumina-textedit/ColorDialog.ui b/desktop-utilities/lumina-textedit/ColorDialog.ui deleted file mode 100644 index de78deee..00000000 --- a/desktop-utilities/lumina-textedit/ColorDialog.ui +++ /dev/null @@ -1,81 +0,0 @@ - - - ColorDialog - - - - 0 - 0 - 400 - 300 - - - - Customize Colors - - - - - - 100 - - - - Item Type - - - - - Color - - - - - Sample - - - - - - - - - - Select Color - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Cancel - - - - - - - Apply - - - - - - - - - - diff --git a/desktop-utilities/lumina-textedit/MainUI.cpp b/desktop-utilities/lumina-textedit/MainUI.cpp deleted file mode 100644 index 7425b399..00000000 --- a/desktop-utilities/lumina-textedit/MainUI.cpp +++ /dev/null @@ -1,333 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "MainUI.h" -#include "ui_MainUI.h" - -#include "syntaxSupport.h" - -#include -#include - -#include -#include -#include -#include - -MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ - ui->setupUi(this); - settings = new QSettings("lumina-desktop","lumina-textedit"); - Custom_Syntax::SetupDefaultColors(settings); //pre-load any color settings as needed - colorDLG = new ColorDialog(settings, this); - this->setWindowTitle(tr("Text Editor")); - ui->tabWidget->clear(); - closeFindS = new QShortcut(QKeySequence(Qt::Key_Escape), this); - connect(closeFindS, SIGNAL(activated()), this, SLOT(closeFindReplace()) ); - ui->groupReplace->setVisible(false); - //Update the menu of available syntax highlighting modes - QStringList smodes = Custom_Syntax::availableRules(); - for(int i=0; imenuSyntax_Highlighting->addAction(smodes[i]); - } - ui->actionLine_Numbers->setChecked( settings->value("showLineNumbers",true).toBool() ); - ui->actionWrap_Lines->setChecked( settings->value("wrapLines",true).toBool() ); - //Setup any connections - connect(ui->actionClose, SIGNAL(triggered()), this, SLOT(close()) ); - connect(ui->actionNew_File, SIGNAL(triggered()), this, SLOT(NewFile()) ); - connect(ui->actionOpen_File, SIGNAL(triggered()), this, SLOT(OpenFile()) ); - connect(ui->actionClose_File, SIGNAL(triggered()), this, SLOT(CloseFile()) ); - connect(ui->actionSave_File, SIGNAL(triggered()), this, SLOT(SaveFile()) ); - connect(ui->actionSave_File_As, SIGNAL(triggered()), this, SLOT(SaveFileAs()) ); - connect(ui->menuSyntax_Highlighting, SIGNAL(triggered(QAction*)), this, SLOT(UpdateHighlighting(QAction*)) ); - connect(ui->tabWidget, SIGNAL(currentChanged(int)), this, SLOT(tabChanged()) ); - connect(ui->tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(tabClosed(int)) ); - connect(ui->actionLine_Numbers, SIGNAL(toggled(bool)), this, SLOT(showLineNumbers(bool)) ); - connect(ui->actionWrap_Lines, SIGNAL(toggled(bool)), this, SLOT(wrapLines(bool)) ); - connect(ui->actionCustomize_Colors, SIGNAL(triggered()), this, SLOT(ModifyColors()) ); - connect(ui->actionFind, SIGNAL(triggered()), this, SLOT(openFind()) ); - connect(ui->actionReplace, SIGNAL(triggered()), this, SLOT(openReplace()) ); - connect(ui->tool_find_next, SIGNAL(clicked()), this, SLOT(findNext()) ); - connect(ui->tool_find_prev, SIGNAL(clicked()), this, SLOT(findPrev()) ); - connect(ui->tool_replace, SIGNAL(clicked()), this, SLOT(replaceOne()) ); - connect(ui->tool_replace_all, SIGNAL(clicked()), this, SLOT(replaceAll()) ); - connect(ui->line_find, SIGNAL(returnPressed()), this, SLOT(findNext()) ); - connect(ui->line_replace, SIGNAL(returnPressed()), this, SLOT(replaceOne()) ); - connect(colorDLG, SIGNAL(colorsChanged()), this, SLOT(UpdateHighlighting()) ); - updateIcons(); - //Now load the initial size of the window - QSize lastSize = settings->value("lastSize",QSize()).toSize(); - if(lastSize.width() > this->sizeHint().width() && lastSize.height() > this->sizeHint().height() ){ - this->resize(lastSize); - } -} - -MainUI::~MainUI(){ - -} - -void MainUI::LoadArguments(QStringList args){ //CLI arguments - for(int i=0; iline_find->setFocus(); - } -} - -// ================= -// PUBLIC SLOTS -//================= -void MainUI::updateIcons(){ - this->setWindowIcon( LXDG::findIcon("document-edit") ); - ui->actionClose->setIcon(LXDG::findIcon("application-exit") ); - ui->actionNew_File->setIcon(LXDG::findIcon("document-new") ); - ui->actionOpen_File->setIcon(LXDG::findIcon("document-open") ); - ui->actionClose_File->setIcon(LXDG::findIcon("document-close") ); - ui->actionSave_File->setIcon(LXDG::findIcon("document-save") ); - ui->actionSave_File_As->setIcon(LXDG::findIcon("document-save-as") ); - ui->actionFind->setIcon(LXDG::findIcon("edit-find") ); - ui->actionReplace->setIcon(LXDG::findIcon("edit-find-replace") ); - ui->menuSyntax_Highlighting->setIcon( LXDG::findIcon("format-text-color") ); - ui->actionCustomize_Colors->setIcon( LXDG::findIcon("format-fill-color") ); - //icons for the special find/replace groupbox - ui->tool_find_next->setIcon(LXDG::findIcon("go-down-search")); - ui->tool_find_prev->setIcon(LXDG::findIcon("go-up-search")); - ui->tool_find_casesensitive->setIcon(LXDG::findIcon("format-text-italic")); - ui->tool_replace->setIcon(LXDG::findIcon("arrow-down")); - ui->tool_replace_all->setIcon(LXDG::findIcon("arrow-down-double")); - //ui->tool_find_next->setIcon(LXDG::findIcon("")); - - QTimer::singleShot(0,colorDLG, SLOT(updateIcons()) ); -} - -// ================= -// PRIVATE -//================= -PlainTextEditor* MainUI::currentEditor(){ - if(ui->tabWidget->count()<1){ return 0; } - return static_cast( ui->tabWidget->currentWidget() ); -} - -QString MainUI::currentFileDir(){ - PlainTextEditor* cur = currentEditor(); - QString dir; - if(cur!=0){ - if(cur->currentFile().startsWith("/")){ - dir = cur->currentFile().section("/",0,-2); - } - } - return dir; -} - -// ================= -// PRIVATE SLOTS -//================= -//Main Actions -void MainUI::NewFile(){ - OpenFile(QString::number(ui->tabWidget->count()+1)+"/"+tr("New File")); -} - -void MainUI::OpenFile(QString file){ - QStringList files; - if(file.isEmpty()){ - //Prompt for a file to open - files = QFileDialog::getOpenFileNames(this, tr("Open File(s)"), currentFileDir(), tr("Text Files (*)") ); - if(files.isEmpty()){ return; } //cancelled - }else{ - files << file; - } - for(int i=0; itabWidget->addTab(edit, files[i].section("/",-1)); - edit->showLineNumbers(ui->actionLine_Numbers->isChecked()); - edit->setLineWrapMode( ui->actionWrap_Lines->isChecked() ? QPlainTextEdit::WidgetWidth : QPlainTextEdit::NoWrap); - edit->setFocusPolicy(Qt::ClickFocus); //no "tabbing" into this widget - ui->tabWidget->setCurrentWidget(edit); - edit->LoadFile(files[i]); - edit->setFocus(); - QApplication::processEvents(); //to catch the fileLoaded() signal - } -} - -void MainUI::CloseFile(){ - int index = ui->tabWidget->currentIndex(); - if(index>=0){ tabClosed(index); } -} - -void MainUI::SaveFile(){ - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - cur->SaveFile(); -} - -void MainUI::SaveFileAs(){ - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - cur->SaveFile(true); -} - -void MainUI::UpdateHighlighting(QAction *act){ - if(act!=0){ - //Single-editor change - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - cur->LoadSyntaxRule(act->text()); - }else{ - //Have every editor reload the syntax rules (color changes) - for(int i=0; itabWidget->count(); i++){ - static_cast(ui->tabWidget->widget(i))->updateSyntaxColors(); - } - } -} - -void MainUI::showLineNumbers(bool show){ - settings->setValue("showLineNumbers",show); - for(int i=0; itabWidget->count(); i++){ - PlainTextEditor *edit = static_cast(ui->tabWidget->widget(i)); - edit->showLineNumbers(show); - } -} - -void MainUI::wrapLines(bool wrap){ - settings->setValue("wrapLines",wrap); - for(int i=0; itabWidget->count(); i++){ - PlainTextEditor *edit = static_cast(ui->tabWidget->widget(i)); - edit->setLineWrapMode( wrap ? QPlainTextEdit::WidgetWidth : QPlainTextEdit::NoWrap); - } -} - -void MainUI::ModifyColors(){ - colorDLG->LoadColors(); - colorDLG->showNormal(); -} - -void MainUI::updateTab(QString file){ - PlainTextEditor *cur = 0; - int index = -1; - for(int i=0; itabWidget->count(); i++){ - PlainTextEditor *tmp = static_cast(ui->tabWidget->widget(i)); - if(tmp->currentFile()==file){ - cur = tmp; - index = i; - break; - } - } - if(cur==0){ return; } //should never happen - bool changes = cur->hasChange(); - //qDebug() << "Update Tab:" << file << cur << changes; - ui->tabWidget->setTabText(index,(changes ? "*" : "") + file.section("/",-1)); - ui->actionSave_File->setEnabled(changes); - ui->actionSave_File_As->setEnabled(changes); - this->setWindowTitle( ui->tabWidget->tabText( ui->tabWidget->currentIndex() ) ); -} - -void MainUI::tabChanged(){ - //update the buttons/menus based on the current widget - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } //should never happen though - bool changes = cur->hasChange(); - ui->actionSave_File->setEnabled(changes); - ui->actionSave_File_As->setEnabled(changes); - this->setWindowTitle( ui->tabWidget->tabText( ui->tabWidget->currentIndex() ) ); - if(!ui->line_find->hasFocus() && !ui->line_replace->hasFocus()){ ui->tabWidget->currentWidget()->setFocus(); } -} - -void MainUI::tabClosed(int tab){ - PlainTextEditor *edit = static_cast(ui->tabWidget->widget(tab)); - if(edit==0){ return; } //should never happen - if(edit->hasChange()){ - //Verify if the user wants to lose any unsaved changes - - } - ui->tabWidget->removeTab(tab); - edit->deleteLater(); -} - -//Find/Replace functions -void MainUI::closeFindReplace(){ - ui->groupReplace->setVisible(false); - PlainTextEditor *cur = currentEditor(); - if(cur!=0){ cur->setFocus(); } -} - -void MainUI::openFind(){ - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - ui->groupReplace->setVisible(true); - ui->line_find->setText( cur->textCursor().selectedText() ); - ui->line_replace->setText(""); - ui->line_find->setFocus(); -} - -void MainUI::openReplace(){ - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - ui->groupReplace->setVisible(true); - ui->line_find->setText( cur->textCursor().selectedText() ); - ui->line_replace->setText(""); - ui->line_replace->setFocus(); -} - -void MainUI::findNext(){ - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - bool found = cur->find( ui->line_find->text(), ui->tool_find_casesensitive->isChecked() ? QTextDocument::FindCaseSensitively : QTextDocument::FindFlags() ); - if(!found){ - //Try starting back at the top of the file - cur->moveCursor(QTextCursor::Start); - cur->find( ui->line_find->text(), ui->tool_find_casesensitive->isChecked() ? QTextDocument::FindCaseSensitively : QTextDocument::FindFlags() ); - } -} - -void MainUI::findPrev(){ - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - bool found = cur->find( ui->line_find->text(), ui->tool_find_casesensitive->isChecked() ? QTextDocument::FindCaseSensitively | QTextDocument::FindBackward : QTextDocument::FindBackward ); - if(!found){ - //Try starting back at the bottom of the file - cur->moveCursor(QTextCursor::End); - cur->find( ui->line_find->text(), ui->tool_find_casesensitive->isChecked() ? QTextDocument::FindCaseSensitively | QTextDocument::FindBackward : QTextDocument::FindBackward ); - } -} - -void MainUI::replaceOne(){ - PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - //See if the current selection matches the find field first - bool done = false; - if(cur->textCursor().selectedText()==ui->line_find->text()){ - cur->insertPlainText(ui->line_replace->text()); - done = true; - }else{ - //Find/replace the next occurance of the string - bool found = cur->find( ui->line_find->text(), ui->tool_find_casesensitive->isChecked() ? QTextDocument::FindCaseSensitively : QTextDocument::FindFlags() ); - if(found){ cur->insertPlainText(ui->line_replace->text()); done = true;} - } - if(done){ - //Re-highlight the newly-inserted text - cur->find( ui->line_replace->text(), QTextDocument::FindCaseSensitively | QTextDocument::FindBackward); - } -} - -void MainUI::replaceAll(){ -PlainTextEditor *cur = currentEditor(); - if(cur==0){ return; } - //See if the current selection matches the find field first - bool done = false; - if(cur->textCursor().selectedText()==ui->line_find->text()){ - cur->insertPlainText(ui->line_replace->text()); - done = true; - } - while( cur->find( ui->line_find->text(), ui->tool_find_casesensitive->isChecked() ? QTextDocument::FindCaseSensitively : QTextDocument::FindFlags() ) ){ - //Find/replace every occurance of the string - cur->insertPlainText(ui->line_replace->text()); - done = true; - } - if(done){ - //Re-highlight the newly-inserted text - cur->find( ui->line_replace->text(), QTextDocument::FindCaseSensitively | QTextDocument::FindBackward); - } -} diff --git a/desktop-utilities/lumina-textedit/MainUI.h b/desktop-utilities/lumina-textedit/MainUI.h deleted file mode 100644 index a090cde5..00000000 --- a/desktop-utilities/lumina-textedit/MainUI.h +++ /dev/null @@ -1,77 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#ifndef _LUMINA_PLAIN_TEXT_EDITOR_MAIN_UI_H -#define _LUMINA_PLAIN_TEXT_EDITOR_MAIN_UI_H - -#include -#include -#include -#include - -#include "PlainTextEditor.h" -#include "ColorDialog.h" - -namespace Ui{ - class MainUI; -}; - -class MainUI : public QMainWindow{ - Q_OBJECT -public: - MainUI(); - ~MainUI(); - - void LoadArguments(QStringList args); //CLI arguments - -public slots: - void updateIcons(); - -private: - Ui::MainUI *ui; - ColorDialog *colorDLG; - QSettings *settings; - QShortcut *closeFindS; - - //Simplification functions - PlainTextEditor* currentEditor(); - QString currentFileDir(); - -private slots: - //Main Actions - void NewFile(); - void OpenFile(QString file = ""); - void CloseFile(); //current file only - void SaveFile(); - void SaveFileAs(); - - //Other Menu Actions - void UpdateHighlighting(QAction *act = 0); - void showLineNumbers(bool); - void wrapLines(bool); - void ModifyColors(); - - //Tab Interactions - void updateTab(QString); - void tabChanged(); - void tabClosed(int); - - //Find/Replace functions - void closeFindReplace(); - void openFind(); - void openReplace(); - - void findNext(); - void findPrev(); - void replaceOne(); - void replaceAll(); - -protected: - void resizeEvent(QResizeEvent *ev){ - settings->setValue("lastSize", ev->size()); - } -}; -#endif \ No newline at end of file diff --git a/desktop-utilities/lumina-textedit/MainUI.ui b/desktop-utilities/lumina-textedit/MainUI.ui deleted file mode 100644 index 26fceac4..00000000 --- a/desktop-utilities/lumina-textedit/MainUI.ui +++ /dev/null @@ -1,377 +0,0 @@ - - - MainUI - - - - 0 - 0 - 505 - 505 - - - - MainWindow - - - - - 2 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - Qt::NoFocus - - - true - - - true - - - false - - - - Tab 1 - - - - - - - - Find/Replace - - - false - - - - 1 - - - 3 - - - 1 - - - 1 - - - 2 - - - - - - - - Qt::NoFocus - - - Find the previous match - - - ... - - - - - - - Find: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Qt::NoFocus - - - Find the next match - - - ... - - - - - - - Replace: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - Qt::NoFocus - - - - - - Match case - - - - - - true - - - false - - - true - - - - - - - Qt::NoFocus - - - Replace next match - - - ... - - - - - - - Qt::NoFocus - - - Replace all matches (to end of document) - - - ... - - - - - - - - - - - - 0 - 0 - 505 - 23 - - - - - File - - - - - - - - - - - - - View - - - - Syntax Highlighting - - - - - - - - - - - - - Edit - - - - - - - - - - - - Qt::CustomContextMenu - - - toolBar - - - false - - - false - - - TopToolBarArea - - - false - - - - - - - - true - - - true - - - Show Line Numbers - - - - - None - - - - - New File - - - Ctrl+N - - - Qt::ApplicationShortcut - - - - - Open File - - - Ctrl+O - - - Qt::ApplicationShortcut - - - - - Save File - - - Ctrl+S - - - Qt::ApplicationShortcut - - - - - Save File As - - - - - Close - - - Ctrl+Q - - - Qt::ApplicationShortcut - - - - - Close File - - - Ctrl+W - - - Qt::ApplicationShortcut - - - - - Customize Colors - - - - - true - - - true - - - Wrap Lines - - - - - Find - - - Ctrl+F - - - Qt::ApplicationShortcut - - - - - Replace - - - Ctrl+R - - - Qt::ApplicationShortcut - - - - - - diff --git a/desktop-utilities/lumina-textedit/PlainTextEditor.cpp b/desktop-utilities/lumina-textedit/PlainTextEditor.cpp deleted file mode 100644 index 281c4bec..00000000 --- a/desktop-utilities/lumina-textedit/PlainTextEditor.cpp +++ /dev/null @@ -1,269 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include "PlainTextEditor.h" - -#include -#include -#include -#include -#include - -#include - -//============== -// PUBLIC -//============== -PlainTextEditor::PlainTextEditor(QSettings *set, QWidget *parent) : QPlainTextEdit(parent){ - settings = set; - LNW = new LNWidget(this); - showLNW = true; - hasChanges = false; - lastSaveContents.clear(); - matchleft = matchright = -1; - this->setTabStopWidth( 8 * this->fontMetrics().width(" ") ); //8 character spaces per tab (UNIX standard) - //this->setObjectName("PlainTextEditor"); - //this->setStyleSheet("QPlainTextEdit#PlainTextEditor{ }"); - SYNTAX = new Custom_Syntax(settings, this->document()); - connect(this, SIGNAL(blockCountChanged(int)), this, SLOT(LNW_updateWidth()) ); - connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(LNW_highlightLine()) ); - connect(this, SIGNAL(updateRequest(const QRect&, int)), this, SLOT(LNW_update(const QRect&, int)) ); - connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(checkMatchChar()) ); - connect(this, SIGNAL(textChanged()), this, SLOT(textChanged()) ); - LNW_updateWidth(); - LNW_highlightLine(); -} - -PlainTextEditor::~PlainTextEditor(){ - -} - -void PlainTextEditor::showLineNumbers(bool show){ - showLNW = show; - LNW->setVisible(show); - LNW_updateWidth(); -} - -void PlainTextEditor::LoadSyntaxRule(QString type){ - SYNTAX->loadRules(type); - SYNTAX->rehighlight(); -} - -void PlainTextEditor::updateSyntaxColors(){ - SYNTAX->reloadRules(); - SYNTAX->rehighlight(); -} - -//File loading/setting options -void PlainTextEditor::LoadFile(QString filepath){ - this->setWhatsThis(filepath); - this->clear(); - SYNTAX->loadRules( Custom_Syntax::ruleForFile(filepath.section("/",-1)) ); - lastSaveContents = LUtils::readFile(filepath).join("\n"); - this->setPlainText( lastSaveContents ); - hasChanges = false; - emit FileLoaded(this->whatsThis()); -} - -void PlainTextEditor::SaveFile(bool newname){ - //qDebug() << "Save File:" << this->whatsThis(); - if( !this->whatsThis().startsWith("/") || newname ){ - //prompt for a filename/path - QString file = QFileDialog::getSaveFileName(this, tr("Save File"), this->whatsThis(), tr("Text File (*)")); - if(file.isEmpty()){ return; } - this->setWhatsThis(file); - SYNTAX->loadRules( Custom_Syntax::ruleForFile(this->whatsThis().section("/",-1)) ); - SYNTAX->rehighlight(); - } - bool ok = LUtils::writeFile(this->whatsThis(), this->toPlainText().split("\n"), true); - hasChanges = !ok; - if(ok){ lastSaveContents = this->toPlainText(); emit FileLoaded(this->whatsThis()); } - //qDebug() << " - Success:" << ok << hasChanges; -} - -QString PlainTextEditor::currentFile(){ - return this->whatsThis(); -} - -bool PlainTextEditor::hasChange(){ - return hasChanges; -} - -//Functions for managing the line number widget -int PlainTextEditor::LNWWidth(){ - //Get the number of chars we need for line numbers - int lines = this->blockCount(); - if(lines<1){ lines = 1; } - int chars = 1; - while(lines>=10){ chars++; lines/=10; } - return (this->fontMetrics().width("9")*chars); //make sure to add a tiny bit of padding -} - -void PlainTextEditor::paintLNW(QPaintEvent *ev){ - QPainter P(LNW); - //First set the background color - P.fillRect(ev->rect(), QColor("lightgrey")); - //Now determine which line numbers to show (based on the current viewport) - QTextBlock block = this->firstVisibleBlock(); - int bTop = blockBoundingGeometry(block).translated(contentOffset()).top(); - int bBottom; - //Now loop over the blocks (lines) and write in the numbers - P.setPen(Qt::black); //setup the font color - while(block.isValid() && bTop<=ev->rect().bottom()){ //ensure block below top of viewport - bBottom = bTop+blockBoundingRect(block).height(); - if(block.isVisible() && bBottom >= ev->rect().top()){ //ensure block above bottom of viewport - P.drawText(0,bTop, LNW->width(), this->fontMetrics().height(), Qt::AlignRight, QString::number(block.blockNumber()+1) ); - } - //Go to the next block - block = block.next(); - bTop = bBottom; - } -} - -//============== -// PRIVATE -//============== -void PlainTextEditor::clearMatchData(){ - if(matchleft>=0 || matchright>=0){ - QList sel = this->extraSelections(); - for(int i=0; isetExtraSelections(sel); - matchleft = -1; - matchright = -1; - } -} - -void PlainTextEditor::highlightMatch(QChar ch, bool forward, int fromPos, QChar startch){ - if(forward){ matchleft = fromPos; } - else{ matchright = fromPos; } - - int nested = 1; //always start within the first nest (the primary nest) - int tmpFromPos = fromPos; - QString doc = this->toPlainText(); - while( nested>0 && tmpFromPos=fromPos && forward) || ( tmpFromPos<=fromPos && !forward ) ) ){ - if(forward){ - QTextCursor cur = this->document()->find(ch, tmpFromPos); - if(!cur.isNull()){ - nested += doc.mid(tmpFromPos+1, cur.position()-tmpFromPos).count(startch) -1; - if(nested==0){ matchright = cur.position(); } - else{ tmpFromPos = cur.position(); } - }else{ break; } - }else{ - QTextCursor cur = this->document()->find(ch, tmpFromPos, QTextDocument::FindBackward); - if(!cur.isNull()){ - nested += doc.mid(cur.position(), tmpFromPos-cur.position()).count(startch) -1; - if(nested==0){ matchleft = cur.position(); } - else{ tmpFromPos = cur.position()-1; } - }else{ break; } - } - } - - //Now highlight the two characters - QList sels = this->extraSelections(); - if(matchleft>=0){ - QTextEdit::ExtraSelection sel; - if(matchright>=0){ sel.format.setBackground( QColor(settings->value("colors/bracket-found").toString()) ); } - else{ sel.format.setBackground( QColor(settings->value("colors/bracket-missing").toString()) ); } - QTextCursor cur = this->textCursor(); - cur.setPosition(matchleft); - if(forward){ cur.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor); } - else{ cur.movePosition(QTextCursor::PreviousCharacter, QTextCursor::KeepAnchor); } - sel.cursor = cur; - sels << sel; - } - if(matchright>=0){ - QTextEdit::ExtraSelection sel; - if(matchleft>=0){ sel.format.setBackground( QColor(settings->value("colors/bracket-found").toString()) ); } - else{ sel.format.setBackground( QColor(settings->value("colors/bracket-missing").toString()) ); } - QTextCursor cur = this->textCursor(); - cur.setPosition(matchright); - if(!forward){ cur.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor); } - else{ cur.movePosition(QTextCursor::PreviousCharacter, QTextCursor::KeepAnchor); } - sel.cursor = cur; - sels << sel; - } - this->setExtraSelections(sels); -} - -//=================== -// PRIVATE SLOTS -//=================== -//Functions for managing the line number widget -void PlainTextEditor::LNW_updateWidth(){ - if(showLNW){ - this->setViewportMargins( LNWWidth(), 0, 0, 0); //the LNW is contained within the left margin - }else{ - this->setViewportMargins( 0, 0, 0, 0); //the LNW is contained within the left margin - } -} - -void PlainTextEditor::LNW_highlightLine(){ - if(this->isReadOnly()){ return; } - QColor highC = QColor(0,0,0,50); //just darken the line a bit - QTextEdit::ExtraSelection sel; - sel.format.setBackground(highC); - sel.format.setProperty(QTextFormat::FullWidthSelection, true); - sel.cursor = this->textCursor(); - sel.cursor.clearSelection(); //just in case it already has one - setExtraSelections( QList() << sel ); -} - -void PlainTextEditor::LNW_update(const QRect &rect, int dy){ - if(dy!=0){ LNW->scroll(0,dy); } //make sure to scroll the line widget the same amount as the editor - else{ - //Some other reason we need to repaint the widget - LNW->update(0,rect.y(), LNW->width(), rect.height()); //also repaint the LNW in the same area - } - if(rect.contains(this->viewport()->rect())){ - //Something in the currently-viewed area needs updating - make sure the LNW width is still correct - LNW_updateWidth(); - } -} - -//Function for running the matching routine -void PlainTextEditor::checkMatchChar(){ - clearMatchData(); - int pos = this->textCursor().position(); - QChar ch = this->document()->characterAt(pos); - bool tryback = true; - while(tryback){ - tryback = false; - if(ch==QChar('(')){ highlightMatch(QChar(')'),true, pos, QChar('(') ); } - else if(ch==QChar(')')){ highlightMatch(QChar('('),false, pos, QChar(')') ); } - else if(ch==QChar('{')){ highlightMatch(QChar('}'),true, pos, QChar('{') ); } - else if(ch==QChar('}')){ highlightMatch(QChar('{'),false, pos, QChar('}') ); } - else if(ch==QChar('[')){ highlightMatch(QChar(']'),true, pos, QChar('[') ); } - else if(ch==QChar(']')){ highlightMatch(QChar('['),false, pos, QChar(']') ); } - else if(pos==this->textCursor().position()){ - //Try this one more time - using the previous character instead of the current character - tryback = true; - pos--; - ch = this->document()->characterAt(pos); - } - } //end check for next/previous char -} - -//Functions for notifying the parent widget of changes -void PlainTextEditor::textChanged(){ - //qDebug() << " - Got Text Changed signal"; - bool changed = (lastSaveContents != this->toPlainText()); - if(changed == hasChanges){ return; } //no change - hasChanges = changed; //save for reading later - if(hasChanges){ emit UnsavedChanges( this->whatsThis() ); } - else{ emit FileLoaded(this->whatsThis()); } -} - -//================== -// PROTECTED -//================== -void PlainTextEditor::resizeEvent(QResizeEvent *ev){ - QPlainTextEdit::resizeEvent(ev); //do the normal resize processing - //Now re-adjust the placement of the LNW (within the left margin area) - QRect cGeom = this->contentsRect(); - LNW->setGeometry( QRect(cGeom.left(), cGeom.top(), LNWWidth(), cGeom.height()) ); -} diff --git a/desktop-utilities/lumina-textedit/PlainTextEditor.h b/desktop-utilities/lumina-textedit/PlainTextEditor.h deleted file mode 100644 index 8ba1e4bc..00000000 --- a/desktop-utilities/lumina-textedit/PlainTextEditor.h +++ /dev/null @@ -1,99 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#ifndef _LUMINA_PLAIN_TEXT_EDITOR_WIDGET_H -#define _LUMINA_PLAIN_TEXT_EDITOR_WIDGET_H - -#include -#include -#include -#include - -#include "syntaxSupport.h" - -//QPlainTextEdit subclass for providing the actual text editor functionality -class PlainTextEditor : public QPlainTextEdit{ - Q_OBJECT -public: - PlainTextEditor(QSettings *set, QWidget *parent = 0); - ~PlainTextEditor(); - - //Functions for setting up the editor - void showLineNumbers(bool show = true); - void LoadSyntaxRule(QString type); - void updateSyntaxColors(); - - //File loading/setting options - void LoadFile(QString filepath); - void SaveFile(bool newname = false); - QString currentFile(); - - bool hasChange(); - - //Functions for managing the line number widget (internal - do not need to run directly) - int LNWWidth(); //replacing the LNW size hint detection - void paintLNW(QPaintEvent *ev); //forwarded from the LNW paint event - -private: - QWidget *LNW; //Line Number Widget - bool showLNW; - QSettings *settings; - QString lastSaveContents; - //Syntax Highlighting class - Custom_Syntax *SYNTAX; - - //Bracket/Perentheses matching functions - int matchleft, matchright; //positions within the document - void clearMatchData(); - void highlightMatch(QChar ch, bool forward, int fromPos, QChar startch); - - //Flags to keep track of changes - bool hasChanges; -private slots: - //Functions for managing the line number widget - void LNW_updateWidth(); // Tied to the QPlainTextEdit::blockCountChanged() signal - void LNW_highlightLine(); // Tied to the QPlainTextEdit::cursorPositionChanged() signal - void LNW_update(const QRect&, int); // Tied to the QPlainTextEdit::updateRequest() signal - //Function for running the matching routine - void checkMatchChar(); - //Functions for notifying the parent widget of changes - void textChanged(); - -protected: - void resizeEvent(QResizeEvent *ev); - -signals: - void UnsavedChanges(QString); //filename - void FileLoaded(QString); - -}; - -//=========================================================== -// Small Widget for painting the line numbers in the PlainTextEditor -//=========================================================== -class LNWidget : public QWidget{ - Q_OBJECT -private: - PlainTextEditor *TE; -public: - LNWidget( PlainTextEditor *edit) : QWidget(edit){ - TE = edit; - } - ~LNWidget(){} - //Replace the virtual QWidget size hint function - // since the main text editor controls the size/location of this widget - QSize sizeHint() const{ - return QSize(TE->LNWWidth(),0); - } -protected: - //Replace the virtual QWidget paint event function - // since the main text editor control the size/location of this widget - void paintEvent(QPaintEvent *ev){ - TE->paintLNW(ev); - } -}; -#endif - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_af.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_af.ts deleted file mode 100644 index 129f78b7..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_af.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ar.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ar.ts deleted file mode 100644 index 47b115e6..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ar.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_az.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_az.ts deleted file mode 100644 index 5b4f54da..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_az.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bg.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bg.ts deleted file mode 100644 index 7d7e02be..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bg.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bn.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bn.ts deleted file mode 100644 index 75d80ea7..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bn.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bs.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bs.ts deleted file mode 100644 index c0a4af95..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_bs.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ca.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ca.ts deleted file mode 100644 index 207e156f..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ca.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_cs.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_cs.ts deleted file mode 100644 index 65bb3327..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_cs.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_cy.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_cy.ts deleted file mode 100644 index 4e6f3d43..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_cy.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_da.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_da.ts deleted file mode 100644 index e7a5efe3..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_da.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_de.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_de.ts deleted file mode 100644 index d699f264..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_de.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_el.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_el.ts deleted file mode 100644 index de48de7d..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_el.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_GB.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_GB.ts deleted file mode 100644 index 214e79b7..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_GB.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_ZA.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_ZA.ts deleted file mode 100644 index 2cda194f..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_en_ZA.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_es.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_es.ts deleted file mode 100644 index 6f81ae79..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_es.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_et.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_et.ts deleted file mode 100644 index 0b0d4757..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_et.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_eu.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_eu.ts deleted file mode 100644 index e1119f98..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_eu.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fa.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fa.ts deleted file mode 100644 index a601ea5b..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fa.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fi.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fi.ts deleted file mode 100644 index 203e4990..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fi.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr.ts deleted file mode 100644 index a8cb5c60..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr_CA.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr_CA.ts deleted file mode 100644 index fed583af..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_fr_CA.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_gl.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_gl.ts deleted file mode 100644 index 7d0a4562..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_gl.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_he.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_he.ts deleted file mode 100644 index 5d934a0e..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_he.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hi.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hi.ts deleted file mode 100644 index 5c9d10d4..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hi.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hr.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hr.ts deleted file mode 100644 index e19addec..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hr.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hu.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hu.ts deleted file mode 100644 index 206c09ff..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_hu.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_id.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_id.ts deleted file mode 100644 index 657795f2..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_id.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_is.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_is.ts deleted file mode 100644 index 5c58cdc5..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_is.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_it.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_it.ts deleted file mode 100644 index 3c3718cb..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_it.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ja.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ja.ts deleted file mode 100644 index e33ca2c8..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ja.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ka.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ka.ts deleted file mode 100644 index e6c15895..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ka.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ko.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ko.ts deleted file mode 100644 index e7c7c36a..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ko.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_lt.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_lt.ts deleted file mode 100644 index a46ef0b6..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_lt.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_lv.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_lv.ts deleted file mode 100644 index 5470297c..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_lv.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mk.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mk.ts deleted file mode 100644 index d276174e..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mk.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mn.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mn.ts deleted file mode 100644 index 5838d7a7..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mn.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ms.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ms.ts deleted file mode 100644 index 673224cd..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ms.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mt.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mt.ts deleted file mode 100644 index 7673c584..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_mt.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_nb.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_nb.ts deleted file mode 100644 index 8c5df14b..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_nb.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_nl.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_nl.ts deleted file mode 100644 index bb08eb57..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_nl.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pa.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pa.ts deleted file mode 100644 index c8d6ebe1..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pa.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pl.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pl.ts deleted file mode 100644 index e966bb1b..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pl.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt.ts deleted file mode 100644 index 9054a484..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt_BR.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt_BR.ts deleted file mode 100644 index 9054a484..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_pt_BR.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ro.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ro.ts deleted file mode 100644 index 100ac113..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ro.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ru.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ru.ts deleted file mode 100644 index 8de16687..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ru.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sk.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sk.ts deleted file mode 100644 index 6432281d..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sk.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sl.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sl.ts deleted file mode 100644 index a79c287f..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sl.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sr.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sr.ts deleted file mode 100644 index 550e7a88..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sr.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sv.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sv.ts deleted file mode 100644 index 6ec72aef..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sv.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sw.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sw.ts deleted file mode 100644 index 4a03e1ec..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_sw.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ta.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ta.ts deleted file mode 100644 index 42813fd4..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_ta.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_tg.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_tg.ts deleted file mode 100644 index abad829f..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_tg.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_th.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_th.ts deleted file mode 100644 index ad738b1e..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_th.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_tr.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_tr.ts deleted file mode 100644 index 932bc495..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_tr.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_uk.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_uk.ts deleted file mode 100644 index bdc27199..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_uk.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_uz.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_uz.ts deleted file mode 100644 index 9d402846..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_uz.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_vi.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_vi.ts deleted file mode 100644 index f5117066..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_vi.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_CN.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_CN.ts deleted file mode 100644 index 010663c0..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_CN.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_HK.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_HK.ts deleted file mode 100644 index 222eb051..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_HK.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_TW.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_TW.ts deleted file mode 100644 index ff8648de..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zh_TW.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zu.ts b/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zu.ts deleted file mode 100644 index 98392b5b..00000000 --- a/desktop-utilities/lumina-textedit/i18n/lumina-textedit_zu.ts +++ /dev/null @@ -1,253 +0,0 @@ - - - - - ColorDialog - - - Customize Colors - - - - - Item Type - - - - - Color - - - - - Sample - - - - - - Select Color - - - - - Cancel - - - - - Apply - - - - - MainUI - - - MainWindow - - - - - Tab 1 - - - - - Find/Replace - - - - - Find the previous match - - - - - - - - ... - - - - - Find: - - - - - Find the next match - - - - - Replace: - - - - - Match case - - - - - Replace next match - - - - - Replace all matches (to end of document) - - - - - File - - - - - View - - - - - Syntax Highlighting - - - - - Edit - - - - - toolBar - - - - - Show Line Numbers - - - - - None - - - - - - New File - - - - - Ctrl+N - - - - - Open File - - - - - Ctrl+O - - - - - Save File - - - - - Ctrl+S - - - - - Save File As - - - - - Close - - - - - Ctrl+Q - - - - - Close File - - - - - Ctrl+W - - - - - Customize Colors - - - - - Wrap Lines - - - - - Find - - - - - Ctrl+F - - - - - Replace - - - - - Ctrl+R - - - - - Text Editor - - - - - Open File(s) - - - - - Text Files (*) - - - - - PlainTextEditor - - - Save File - - - - - Text File (*) - - - - diff --git a/desktop-utilities/lumina-textedit/lumina-textedit.pro b/desktop-utilities/lumina-textedit/lumina-textedit.pro deleted file mode 100644 index 6794af8e..00000000 --- a/desktop-utilities/lumina-textedit/lumina-textedit.pro +++ /dev/null @@ -1,97 +0,0 @@ -include("$${PWD}/../../OS-detect.pri") - -QT += core gui widgets - -TARGET = lumina-textedit -target.path = $${L_BINDIR} - -HEADERS += MainUI.h \ - PlainTextEditor.h \ - syntaxSupport.h \ - ColorDialog.h - -SOURCES += main.cpp \ - MainUI.cpp \ - PlainTextEditor.cpp \ - syntaxSupport.cpp \ - ColorDialog.cpp - -FORMS += MainUI.ui \ - ColorDialog.ui -LIBS += -lLuminaUtils - - -DEPENDPATH += ../../libLumina - -TRANSLATIONS = i18n/lumina-textedit_af.ts \ - i18n/lumina-textedit_ar.ts \ - i18n/lumina-textedit_az.ts \ - i18n/lumina-textedit_bg.ts \ - i18n/lumina-textedit_bn.ts \ - i18n/lumina-textedit_bs.ts \ - i18n/lumina-textedit_ca.ts \ - i18n/lumina-textedit_cs.ts \ - i18n/lumina-textedit_cy.ts \ - i18n/lumina-textedit_da.ts \ - i18n/lumina-textedit_de.ts \ - i18n/lumina-textedit_el.ts \ - i18n/lumina-textedit_en_GB.ts \ - i18n/lumina-textedit_en_ZA.ts \ - i18n/lumina-textedit_es.ts \ - i18n/lumina-textedit_et.ts \ - i18n/lumina-textedit_eu.ts \ - i18n/lumina-textedit_fa.ts \ - i18n/lumina-textedit_fi.ts \ - i18n/lumina-textedit_fr.ts \ - i18n/lumina-textedit_fr_CA.ts \ - i18n/lumina-textedit_gl.ts \ - i18n/lumina-textedit_he.ts \ - i18n/lumina-textedit_hi.ts \ - i18n/lumina-textedit_hr.ts \ - i18n/lumina-textedit_hu.ts \ - i18n/lumina-textedit_id.ts \ - i18n/lumina-textedit_is.ts \ - i18n/lumina-textedit_it.ts \ - i18n/lumina-textedit_ja.ts \ - i18n/lumina-textedit_ka.ts \ - i18n/lumina-textedit_ko.ts \ - i18n/lumina-textedit_lt.ts \ - i18n/lumina-textedit_lv.ts \ - i18n/lumina-textedit_mk.ts \ - i18n/lumina-textedit_mn.ts \ - i18n/lumina-textedit_ms.ts \ - i18n/lumina-textedit_mt.ts \ - i18n/lumina-textedit_nb.ts \ - i18n/lumina-textedit_nl.ts \ - i18n/lumina-textedit_pa.ts \ - i18n/lumina-textedit_pl.ts \ - i18n/lumina-textedit_pt.ts \ - i18n/lumina-textedit_pt_BR.ts \ - i18n/lumina-textedit_ro.ts \ - i18n/lumina-textedit_ru.ts \ - i18n/lumina-textedit_sk.ts \ - i18n/lumina-textedit_sl.ts \ - i18n/lumina-textedit_sr.ts \ - i18n/lumina-textedit_sv.ts \ - i18n/lumina-textedit_sw.ts \ - i18n/lumina-textedit_ta.ts \ - i18n/lumina-textedit_tg.ts \ - i18n/lumina-textedit_th.ts \ - i18n/lumina-textedit_tr.ts \ - i18n/lumina-textedit_uk.ts \ - i18n/lumina-textedit_uz.ts \ - i18n/lumina-textedit_vi.ts \ - i18n/lumina-textedit_zh_CN.ts \ - i18n/lumina-textedit_zh_HK.ts \ - i18n/lumina-textedit_zh_TW.ts \ - i18n/lumina-textedit_zu.ts - -dotrans.path=$${L_SHAREDIR}/Lumina-DE/i18n/ -dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/Lumina-DE/i18n/ - -INSTALLS += target dotrans - -NO_I18N{ - INSTALLS -= dotrans -} - diff --git a/desktop-utilities/lumina-textedit/main.cpp b/desktop-utilities/lumina-textedit/main.cpp deleted file mode 100644 index 17fbc6e1..00000000 --- a/desktop-utilities/lumina-textedit/main.cpp +++ /dev/null @@ -1,31 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#include -#include - -#include -#include - -#include "MainUI.h" - -int main(int argc, char *argv[]) { - LTHEME::LoadCustomEnvSettings(); - QApplication a(argc, argv); - LUtils::LoadTranslation(&a, "lumina-textedit"); - //Now go ahead and setup the app - LuminaThemeEngine theme(&a); - QStringList args; - for(int i=1; icontains("colors/keyword")){settings->setValue("colors/keyword", QColor(Qt::blue).name() ); } - if(!settings->contains("colors/altkeyword")){settings->setValue("colors/altkeyword", QColor(Qt::darkBlue).name() ); } - if(!settings->contains("colors/class")){settings->setValue("colors/class", QColor(Qt::darkRed).name() ); } - if(!settings->contains("colors/text")){settings->setValue("colors/text", QColor(Qt::darkMagenta).name() ); } - if(!settings->contains("colors/function")){settings->setValue("colors/function", QColor(Qt::darkCyan).name() ); } - if(!settings->contains("colors/comment")){settings->setValue("colors/comment", QColor(Qt::darkGreen).name() ); } - if(!settings->contains("colors/bracket-found")){settings->setValue("colors/bracket-found", QColor(Qt::green).name() ); } - if(!settings->contains("colors/bracket-missing")){settings->setValue("colors/bracket-missing", QColor(Qt::red).name() ); } - if(!settings->contains("colors/preprocessor")){settings->setValue("colors/preprocessor", QColor(Qt::darkYellow).name() ); } -} - -QString Custom_Syntax::ruleForFile(QString filename){ - QString suffix = filename.section(".",-1); - if(suffix=="cpp" || suffix=="hpp" || suffix=="c" || suffix=="h"){ return "C++"; } - else if(suffix=="py" || suffix=="pyc"){ return "Python"; } - else if(suffix=="rst"){ return "reST"; } - return ""; -} - -void Custom_Syntax::loadRules(QString type){ - //NOTE: the "multiLineComment - lasttype = type; - rules.clear(); - splitrules.clear(); - if(type=="C++"){ - //Keywords (standard C/C++/Qt definitions) - QStringList keywords; - keywords << "char" << "class" << "const" << "double" << "enum" << "explicit" << "friend" << "inline" \ - << "int" << "long" << "namespace" << "operator" << "private" << "protected" << "public" \ - << "short" << "signals" << "signed" << "slots" << "static" << "struct" << "template" \ - << "typedef" << "typename" << "union" << "unsigned" << "virtual" << "void" << "volatile" \ - << "true" << "false"; - - SyntaxRule rule; - rule.format.setForeground( QColor(settings->value("colors/keyword").toString()) ); - rule.format.setFontWeight(QFont::Bold); - for(int i=0; ivalue("colors/altkeyword").toString()) ); - for(int i=0; ivalue("colors/class").toString()) ); - rule.pattern = QRegExp("\\bQ[A-Za-z]+\\b"); - rules << rule; - //Quotes - rule.format.setForeground( QColor(settings->value("colors/text").toString()) ); - rule.format.setFontWeight(QFont::Normal); - rule.pattern = QRegExp( "\"[^\"\\\\]*(\\\\(.|\\n)[^\"\\\\]*)*\"|'[^'\\\\]*(\\\\(.|\\n)[^'\\\\]*)*'"); - rules << rule; - //Functions - rule.format.setForeground( QColor(settings->value("colors/function").toString()) ); - rule.pattern = QRegExp("\\b[A-Za-z0-9_]+(?=\\()"); - rules << rule; - //Proprocessor commands - rule.format.setForeground( QColor(settings->value("colors/preprocessor").toString()) ); - rule.pattern = QRegExp("^#[^\n]*"); - rules << rule; - //Comment (single line) - rule.format.setForeground( QColor(settings->value("colors/comment").toString()) ); - rule.pattern = QRegExp("//[^\n]*"); - rules << rule; - //Comment (multi-line) - SyntaxRuleSplit srule; - srule.format = rule.format; //re-use the single-line comment format - srule.startPattern = QRegExp("/\\*"); - srule.endPattern = QRegExp("\\*/"); - splitrules << srule; - - }else if(type=="Python"){ - //Keywords - QStringList keywords; - keywords << "and" << "as" << "assert" << "break" << "class" << "continue" << "def" << "del" \ - << "elif" << "else" << "except" << "exec" << "finally" << "for" << "from" \ - << "global" << "if" << "import" << "in" << "is" << "lambda" << "not" \ - << "or" << "pass" << "print" << "raise" << "return" << "try" << "while" << "with" << "yield"; - - SyntaxRule rule; - rule.format.setForeground( QColor(settings->value("colors/keyword").toString()) ); - rule.format.setFontWeight(QFont::Bold); - for(int i=0; ivalue("colors/text").toString()) ); - rule.format.setFontWeight(QFont::Normal); - rule.pattern = QRegExp( "\"[^\"\\\\]*(\\\\(.|\\n)[^\"\\\\]*)*\"|'[^'\\\\]*(\\\\(.|\\n)[^'\\\\]*)*'"); - rules << rule; - //Functions - rule.format.setForeground( QColor(settings->value("colors/function").toString()) ); - rule.pattern = QRegExp("\\b[A-Za-z0-9_]+(?=\\()"); - rules << rule; - //Comment (single line) - rule.format.setForeground( QColor(settings->value("colors/comment").toString()) ); - rule.pattern = QRegExp("#[^\n]*"); - rules << rule; - //Comment (multi-line) - //SyntaxRuleSplit srule; - //srule.format = rule.format; //re-use the single-line comment format - //srule.startPattern = QRegExp("/\\*"); - //srule.endPattern = QRegExp("\\*/"); - //splitrules << srule; - - }else if(type=="reST"){ - //Keywords - QStringList keywords; - keywords << "emphasis" << "strong" << "literal" << "subscript" << "superscript" << "title-reference"; - SyntaxRule rule; - rule.format.setForeground( QColor(settings->value("colors/keyword").toString()) ); - rule.format.setFontWeight(QFont::Bold); - for(int i=0; ivalue("colors/altkeyword").toString()) ); - for(int i=0; ivalue("colors/text").toString()) ); - rule.format.setFontWeight(QFont::Normal); - rule.pattern = QRegExp( "\"[^\"\\\\]*(\\\\(.|\\n)[^\"\\\\]*)*\"|'[^'\\\\]*(\\\\(.|\\n)[^'\\\\]*)*'"); - rules << rule; - //Functions - rule.format.setForeground( QColor(settings->value("colors/function").toString()) ); - rule.pattern = QRegExp("\\b[A-Za-z0-9_]+(?=\\()"); - rules << rule; - //Comment (single line) - rule.format.setForeground( QColor(settings->value("colors/comment").toString()) ); - rule.pattern = QRegExp("\\b[.]{2}[^\n]*"); - rules << rule; - //Comment (multi-line) - //SyntaxRuleSplit srule; - //srule.format = rule.format; //re-use the single-line comment format - //srule.startPattern = QRegExp("/\\*"); - //srule.endPattern = QRegExp("\\*/"); - //splitrules << srule; - } -} diff --git a/desktop-utilities/lumina-textedit/syntaxSupport.h b/desktop-utilities/lumina-textedit/syntaxSupport.h deleted file mode 100644 index c96c404d..00000000 --- a/desktop-utilities/lumina-textedit/syntaxSupport.h +++ /dev/null @@ -1,95 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2015, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -#ifndef _LUMINA_SYNTAX_HIGHLIGHER_CPP_H -#define _LUMINA_SYNTAX_HIGHLIGHER_CPP_H - -#include -#include -#include -#include -#include - -//Simple syntax rules -struct SyntaxRule{ - QRegExp pattern; - QTextCharFormat format; -}; -//Complicated/multi-line rules -struct SyntaxRuleSplit{ - QRegExp startPattern, endPattern; - QTextCharFormat format; -}; - -class Custom_Syntax : public QSyntaxHighlighter{ - Q_OBJECT -private: - QSettings *settings; - QString lasttype; - QVector rules; - QVector splitrules; - -public: - Custom_Syntax(QSettings *set, QTextDocument *parent = 0) : QSyntaxHighlighter(parent){ - settings = set; - } - ~Custom_Syntax(){} - - static QStringList availableRules(); - static QStringList knownColors(); - static void SetupDefaultColors(QSettings *settings); - static QString ruleForFile(QString filename); - void loadRules(QString type); - - void reloadRules(){ - loadRules(lasttype); - } -protected: - void highlightBlock(const QString &text){ - for(int i=0; i=0){ - int len = patt.matchedLength(); - setFormat(index, len, rules[i].format); - index = patt.indexIn(text, index+len); //go to the next match - } - }//end loop over normal (single-line) patterns - //Now look for any multi-line patterns (starting/continuing/ending) - int start = 0; - int splitactive = previousBlockState(); - if(splitactive>splitrules.length()-1){ splitactive = -1; } //just in case - while(start>=0 && start=0){ - //Find the end of the current rule - int end = splitrules[splitactive].endPattern.indexIn(text, start); - if(end==-1){ - //rule did not finish - apply to all - setFormat(start, text.length()-start, splitrules[splitactive].format); - break; //stop looking for more multi-line patterns - }else{ - //Found end point - int len = end-start+splitrules[splitactive].endPattern.matchedLength(); - setFormat(start, len , splitrules[splitactive].format); - start+=len; //move pointer to the end of handled range - splitactive = -1; //done with this rule - } - } //end check for end match - //Look for the start of any new split rule - for(int i=0; i=start){ - splitactive = i; - start = newstart; - } - } - if(splitactive<0){ break; } //no other rules found - go ahead and exit the loop - } - setCurrentBlockState(splitactive); - } -}; -#endif \ No newline at end of file -- cgit