mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kcolorchooser: drop it
there is plasma applet for it and `kdialog --getcolor` does the same (and looks _exactly_ the same) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
949b3ad583
commit
fcf7c498bd
8 changed files with 0 additions and 304 deletions
|
@ -19,7 +19,6 @@ kde4_optional_add_subdirectory(ark)
|
|||
kde4_optional_add_subdirectory(filelight)
|
||||
kde4_optional_add_subdirectory(gwenview)
|
||||
kde4_optional_add_subdirectory(kcalc)
|
||||
kde4_optional_add_subdirectory(kcolorchooser)
|
||||
kde4_optional_add_subdirectory(kdeplasma-addons)
|
||||
kde4_optional_add_subdirectory(kemu)
|
||||
kde4_optional_add_subdirectory(kget)
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
project(kcolorchooser)
|
||||
|
||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
include(FeatureSummary)
|
||||
|
||||
find_package(KDELibs4 4.23.0 REQUIRED)
|
||||
|
||||
include_directories(${KDE4_INCLUDES})
|
||||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
|
||||
set(kcolorchooser_SRCS kcolorchooser.cpp)
|
||||
|
||||
add_executable(kcolorchooser ${kcolorchooser_SRCS})
|
||||
|
||||
target_link_libraries(kcolorchooser KDE4::kdeui)
|
||||
|
||||
install(
|
||||
TARGETS kcolorchooser
|
||||
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
||||
)
|
||||
install(
|
||||
PROGRAMS kcolorchooser.desktop
|
||||
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
||||
)
|
||||
|
||||
kde4_install_icons(${KDE4_ICON_INSTALL_DIR})
|
||||
|
||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
endif()
|
|
@ -1,17 +0,0 @@
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -1,2 +0,0 @@
|
|||
#! /bin/sh
|
||||
$XGETTEXT *.cpp -o $podir/kcolorchooser.pot
|
Binary file not shown.
Before Width: | Height: | Size: 296 B |
Binary file not shown.
Before Width: | Height: | Size: 188 B |
|
@ -1,86 +0,0 @@
|
|||
/*
|
||||
This file is part of KDE
|
||||
|
||||
Copyright (C) 1998-2000 Waldo Bastian (bastian@kde.org)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <kapplication.h>
|
||||
#include <kcmdlineargs.h>
|
||||
#include <kaboutdata.h>
|
||||
#include <klocale.h>
|
||||
|
||||
#include <kcolordialog.h>
|
||||
#include <kcolormimedata.h>
|
||||
#include <khelpmenu.h>
|
||||
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
static const char description[] =
|
||||
I18N_NOOP("KDE Color Chooser");
|
||||
|
||||
static const char version[] = "v1.0.1";
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
KAboutData aboutData("kcolorchooser", 0, ki18n("KColorChooser"),
|
||||
version, ki18n(description), KAboutData::License_BSD,
|
||||
ki18n("(c) 2000, Waldo Bastian"));
|
||||
aboutData.addAuthor(ki18n("Waldo Bastian"),KLocalizedString(), "bastian@kde.org");
|
||||
KCmdLineArgs::init( argc, argv, &aboutData );
|
||||
|
||||
KCmdLineOptions options;
|
||||
options.add("print", ki18n("Print the selected color to stdout"));
|
||||
options.add("color <color>", ki18n("Set initially selected color"));
|
||||
KCmdLineArgs::addCmdLineOptions( options );
|
||||
|
||||
KApplication app;
|
||||
|
||||
KColorDialog dlg;
|
||||
|
||||
KHelpMenu *help = new KHelpMenu(&dlg, &aboutData);
|
||||
|
||||
QColor color = KColorMimeData::fromMimeData( QApplication::clipboard()->mimeData( QClipboard::Clipboard ));
|
||||
if (!color.isValid()) {
|
||||
color = Qt::blue; // Just a color
|
||||
}
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||
if (args->isSet("color")) {
|
||||
QColor c = QColor(args->getOption("color"));
|
||||
if (c.isValid())
|
||||
color = c;
|
||||
}
|
||||
dlg.setButtons(KDialog::Help | KDialog::Close);
|
||||
dlg.setButtonMenu(KDialog::Help, (QMenu *)(help->menu()));
|
||||
dlg.setColor(color);
|
||||
|
||||
app.connect(&dlg, SIGNAL(finished()), SLOT(quit()));
|
||||
|
||||
dlg.show();
|
||||
app.exec();
|
||||
|
||||
const QColor c = dlg.color();
|
||||
if ( args->isSet("print") && c.isValid() ) {
|
||||
std::cout << c.name().toUtf8().constData() << std::endl;
|
||||
}
|
||||
args->clear();
|
||||
}
|
|
@ -1,161 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Exec=kcolorchooser --icon '%i' --caption '%c'
|
||||
Icon=kcolorchooser
|
||||
Terminal=false
|
||||
X-DocPath=fundamentals/index.html#colors
|
||||
GenericName=Color Chooser
|
||||
GenericName[af]=Kleur Kieser
|
||||
GenericName[ar]=مختار اللون
|
||||
GenericName[ast]=Seleutor de colores
|
||||
GenericName[bg]=Избор на цвят
|
||||
GenericName[br]=Dibaber livioù
|
||||
GenericName[bs]=Birač boja
|
||||
GenericName[ca]=Selector de colors
|
||||
GenericName[ca@valencia]=Selector de colors
|
||||
GenericName[cs]=Výběr barev
|
||||
GenericName[cy]=Dewis Lliwiau
|
||||
GenericName[da]=Farvevælger
|
||||
GenericName[de]=Farbauswahl
|
||||
GenericName[el]=Επιλογέας χρωμάτων
|
||||
GenericName[en_GB]=Colour Chooser
|
||||
GenericName[eo]=Kolora elektilo
|
||||
GenericName[es]=Selector de colores
|
||||
GenericName[et]=Värvivalija
|
||||
GenericName[eu]=Kolore hautatzailea
|
||||
GenericName[fa]=انتخابکننده رنگ
|
||||
GenericName[fi]=Värivalitsin
|
||||
GenericName[fr]=Sélecteur de couleurs
|
||||
GenericName[ga]=Roghnóir Dathanna
|
||||
GenericName[gl]=Selector de cores
|
||||
GenericName[he]=בוחר צבעים
|
||||
GenericName[hi]=रंग चयनक
|
||||
GenericName[hne]=रंग चुनइया
|
||||
GenericName[hr]=Izbornik boja
|
||||
GenericName[hu]=Színválasztó
|
||||
GenericName[ia]=Selector de color
|
||||
GenericName[is]=Litavalstól
|
||||
GenericName[it]=Selettore di colori
|
||||
GenericName[ja]=色の選択
|
||||
GenericName[kk]=Түсті таңдау
|
||||
GenericName[km]=កម្មវិធីជ្រើសពណ៌
|
||||
GenericName[ko]=색상 선택기
|
||||
GenericName[ku]=Bijarkerê Rengan
|
||||
GenericName[lt]=Spalvų parinkiklis
|
||||
GenericName[lv]=Krāsu izvēlētājs
|
||||
GenericName[mk]=Избирач на бои
|
||||
GenericName[mr]=रंग निवडकर्ता
|
||||
GenericName[ms]=Pemilih Warna
|
||||
GenericName[nb]=Fargevelger
|
||||
GenericName[nds]=Klöörköör
|
||||
GenericName[ne]=रङ चयनकर्ता
|
||||
GenericName[nl]=Kleurenkiezer
|
||||
GenericName[nn]=Fargeveljar
|
||||
GenericName[pa]=ਰੰਗ ਸੰਰਚਨਾ
|
||||
GenericName[pl]=Wybór koloru
|
||||
GenericName[pt]=Selector de Cores
|
||||
GenericName[pt_BR]=Seletor de cores
|
||||
GenericName[ro]=Selector de culori
|
||||
GenericName[ru]=Выбор цвета
|
||||
GenericName[se]=Ivdneválljejeaddji
|
||||
GenericName[si]=වර්ණ තෝරණය
|
||||
GenericName[sk]=Výber farieb
|
||||
GenericName[sl]=Izbirnik barv
|
||||
GenericName[sr]=Бирач боја
|
||||
GenericName[sr@ijekavian]=Бирач боја
|
||||
GenericName[sr@ijekavianlatin]=Birač boja
|
||||
GenericName[sr@latin]=Birač boja
|
||||
GenericName[sv]=Färgväljare
|
||||
GenericName[ta]=வண்ணத் தேர்வு
|
||||
GenericName[tg]=Интихоби ранг
|
||||
GenericName[th]=เครื่องมือเลือกสี
|
||||
GenericName[tr]=Renk Seçici
|
||||
GenericName[ug]=رەڭ تاللىغۇچ
|
||||
GenericName[uk]=Вибір кольорів
|
||||
GenericName[uz]=Rang tanlovchi
|
||||
GenericName[uz@cyrillic]=Ранг танловчи
|
||||
GenericName[vi]=Trình chọn màu
|
||||
GenericName[wa]=Tchoezixheu di coleurs
|
||||
GenericName[xh]=Mkhethi Wombala
|
||||
GenericName[x-test]=xxColor Chooserxx
|
||||
GenericName[zh_CN]=颜色选择器
|
||||
GenericName[zh_HK]=顏色選擇器
|
||||
GenericName[zh_TW]=顏色選擇程式
|
||||
Name=KColorChooser
|
||||
Name[af]=K-kleur-kieser
|
||||
Name[ar]=كُولُرْتْشوزِر
|
||||
Name[ast]=KColorChooser
|
||||
Name[bg]=KColorChooser
|
||||
Name[br]=KColorChooser
|
||||
Name[bs]=KColorChooser
|
||||
Name[ca]=KColorChooser
|
||||
Name[ca@valencia]=KColorChooser
|
||||
Name[cs]=Výběr barev
|
||||
Name[cy]=KDewisLliw
|
||||
Name[da]=KColorChooser
|
||||
Name[de]=KColorChooser
|
||||
Name[el]=KColorChooser
|
||||
Name[en_GB]=KColorChooser
|
||||
Name[eo]=KColorChooser
|
||||
Name[es]=KColorChooser
|
||||
Name[et]=KColorChooser
|
||||
Name[eu]=KColorChooser
|
||||
Name[fi]=Värivalitsin
|
||||
Name[fr]=KColorChooser
|
||||
Name[ga]=KColorChooser
|
||||
Name[gl]=KColorChooser
|
||||
Name[he]=KColorChooser
|
||||
Name[hi]=केकलरचूज़र
|
||||
Name[hne]=केकलरचूजर
|
||||
Name[hr]=Izbornik boja
|
||||
Name[hu]=KColorChooser
|
||||
Name[ia]=KColorChooser
|
||||
Name[is]=KLitaval
|
||||
Name[it]=KColorChooser
|
||||
Name[ja]=KColorChooser
|
||||
Name[kk]=KColorChooser
|
||||
Name[km]=KColorChooser
|
||||
Name[ko]=KColorChooser
|
||||
Name[ku]=KColorChooser
|
||||
Name[lt]=KColorChooser
|
||||
Name[lv]=KColorChooser
|
||||
Name[mk]=KColorChooser
|
||||
Name[mr]=के-कलर-चूझर
|
||||
Name[ms]=KColorChooser
|
||||
Name[nb]=KColorChooser
|
||||
Name[nds]=KColorChooser
|
||||
Name[ne]=केडीई रङ चयनकर्ता
|
||||
Name[nl]=KColorChooser
|
||||
Name[nn]=KDE-fargeveljar
|
||||
Name[pa]=ਕੇ-ਰੰਗ-ਚੋਣਕਾਰ
|
||||
Name[pl]=Wybór koloru
|
||||
Name[pt]=KColorChooser
|
||||
Name[pt_BR]=KColorChooser
|
||||
Name[ro]=Selector culori
|
||||
Name[ru]=KColorChooser
|
||||
Name[se]=KDE-ivdneválljejeaddji
|
||||
Name[si]=KColorChooser
|
||||
Name[sk]=KColorChooser
|
||||
Name[sl]=KColorChooser
|
||||
Name[sr]=К‑бирач‑боја
|
||||
Name[sr@ijekavian]=К‑бирач‑боја
|
||||
Name[sr@ijekavianlatin]=K‑birač‑boja
|
||||
Name[sr@latin]=K‑birač‑boja
|
||||
Name[sv]=Kcolorchooser
|
||||
Name[ta]=கேவண்ணத் தேர்வு
|
||||
Name[tg]=KColorChooser
|
||||
Name[th]=เครื่องมือเลือกสี-K
|
||||
Name[tr]=KColorChooser
|
||||
Name[ug]=KColorChooser
|
||||
Name[uk]=KColorChooser
|
||||
Name[uz]=Rang tanlovchi
|
||||
Name[uz@cyrillic]=Ранг танловчи
|
||||
Name[vi]=KColorChooser
|
||||
Name[xh]=Umkhethi Wombala i K
|
||||
Name[x-test]=xxKColorChooserxx
|
||||
Name[zh_CN]=KColorChooser
|
||||
Name[zh_HK]=KColorChooser
|
||||
Name[zh_TW]=KColorChooser 顏色選擇器
|
||||
|
||||
StartupNotify=true
|
||||
Categories=Qt;KDE;Graphics;X-KDE-More;
|
Loading…
Add table
Reference in a new issue