• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

util

environmentselectionwidget.cpp

00001 /* This file is part of KDevelop
00002 Copyright 2007 Dukju Ahn <dukjuahn@gmail.com>
00003 
00004 This library is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU Library General Public
00006 License as published by the Free Software Foundation; either
00007 version 2 of the License, or (at your option) any later version.
00008 
00009 This library is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 Library General Public License for more details.
00013 
00014 You should have received a copy of the GNU Library General Public License
00015 along with this library; see the file COPYING.LIB.  If not, write to
00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017 Boston, MA 02110-1301, USA.
00018 */
00019 #include "environmentselectionwidget.h"
00020 #include "environmentgrouplist.h"
00021 #include <ksettings/dispatcher.h>
00022 #include <kglobal.h>
00023 #include <kcomponentdata.h>
00024 
00025 namespace KDevelop
00026 {
00027 
00028 class EnvironmentSelectionWidgetPrivate
00029 {
00030 };
00031 
00032 EnvironmentSelectionWidget::EnvironmentSelectionWidget( QWidget *parent )
00033     : KComboBox( parent ), d( new EnvironmentSelectionWidgetPrivate )
00034 {
00035     KComponentData data( "kdevplatform", "kdevplatform",
00036                          KComponentData::SkipMainComponentRegistration );
00037     KSettings::Dispatcher::registerComponent( data, this, "updateEnvGroup" );
00038     KSettings::Dispatcher::registerComponent( KGlobal::mainComponent(), this, "updateEnvGroup" );
00039 
00040 }
00041 
00042 EnvironmentSelectionWidget::~EnvironmentSelectionWidget()
00043 {
00044     delete d;
00045 }
00046 
00047 QString EnvironmentSelectionWidget::currentProfile() const
00048 {
00049     return currentText();
00050 }
00051 
00052 void EnvironmentSelectionWidget::setCurrentProfile( const QString& profile )
00053 {
00054     setCurrentItem( profile );
00055 }
00056 
00057 
00058 }
00059 
00060 #include "environmentselectionwidget.moc"

util

Skip menu "util"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal