KDE 플랫폼 4

위키백과, 우리 모두의 백과사전.
(KDE 플랫폼에서 넘어옴)

KDE 플랫폼 4
원저자KDE
개발자KDE
발표일2008년 1월 11일
(16년 전)
(2008-01-11)[1]
저장소
프로그래밍 언어C++[2][3]
종류
라이선스GNU LGPL (LGPL)
상태유지 보수
KDE 소프트웨어 컴필레이션 구조.

KDE 플랫폼 4(KDE Platform 4)는 KDE의 라이브러리와 소프트웨어 프레임워크의 모음으로, GNU LGPL 라이선스로 배포되는 KDE 소프트웨어 컴필레이션 4의 기술 토대를 제공한다.

기술[편집]

KDE 플랫폼 4로 대체된 기술[편집]

KParts[편집]

KPartsKDE 플라스마 데스크톱 환경을 위한 컴포넌트 프레임워크이다. 개개의 컴포넌트는 KPart라고 한다.

스레드위버[편집]

Hello World 예제[편집]

#include <KApplication>
#include <KAboutData>
#include <KCmdLineArgs>
#include <KMessageBox>
#include <KLocale>

int main (int argc, char *argv[])
{
    KAboutData aboutData(
                         // The program name used internally.
                         "tutorial1",
                         // The message catalog name
                         // If null, program name is used instead.
                         0,
                         // A displayable program name string.
                         ki18n("Tutorial 1"),
                         // The program version string.
                         "1.0",
                         // Short description of what the app does.
                         ki18n("Displays a KMessageBox popup"),
                         // The license this code is released under
                         KAboutData::License_GPL,
                         // Copyright Statement
                         ki18n("Copyright (c) 2007"),
                         // Optional text shown in the About box.
                         // Can contain any information desired.
                         ki18n("Some text..."),
                         // The program homepage string.
                         "http://example.com/",
                         // The bug report email address
                         "submit@bugs.kde.org");

    KCmdLineArgs::init( argc, argv, &aboutData );
    KApplication app;
    KGuiItem yesButton( i18n( "Hello" ), QString(),
                        i18n( "This is a tooltip" ),
                        i18n( "This is a WhatsThis help text." ) );
    KMessageBox::questionYesNo( 0, i18n( "Hello World" ),
                                i18n( "Hello" ), yesButton );
    return 0;
}

각주[편집]

  1. “KDE 4.0 Release Announcement”. 
  2. “The KDE development platform”. 2010년 11월 27일에 원본 문서에서 보존된 문서. 2010년 11월 26일에 확인함. 
  3. “Development/Languages”. 2010년 12월 4일에 확인함. 
  4. http://owncloud.org/

외부 링크[편집]