• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Buildtool Widgets Library
 

KDevelop Buildtool Widgets Library

  • buildtools
  • lib
  • widgets
environmentdisplaydialog.cpp
1 /* This file is part of the KDE project
2  Copyright (C) 2007 Jens Dagerbo <jens.dagerbo@swipnet.se>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #include <unistd.h>
21 #include <tdelistview.h>
22 #include <tqstringlist.h>
23 
24 #include "environmentdisplaydialog.h"
25 
26 #if !defined(__OpenBSD__) && !defined(__FreeBSD__)
27 extern char **environ;
28 #endif
29 
30 EnvironmentDisplayDialog::EnvironmentDisplayDialog(TQWidget* parent, const char* name, bool modal, WFlags fl)
31 : EnvironmentDisplayDialogBase(parent,name, modal,fl)
32 {
33  TQStringList environment;
34 #if !defined(__OpenBSD__) && !defined(__FreeBSD__)
35  char ** e = ::environ;
36 
37  while ( *e )
38  {
39  environment << *e;
40  e++;
41  }
42 #endif
43 
44  TQStringList::ConstIterator it = environment.begin();
45  while( it !=environment.end() )
46  {
47  TQStringList pair = TQStringList::split( TQChar('='), *it );
48  if ( pair.count() == 2 )
49  {
50  new TQListViewItem( environmentListView, pair.first(), pair.last() );
51  }
52  ++it;
53  }
54 }
55 
56 
57 #include "environmentdisplaydialog.moc"
58 

KDevelop Buildtool Widgets Library

Skip menu "KDevelop Buildtool Widgets Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Buildtool Widgets Library

Skip menu "KDevelop Buildtool Widgets Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Buildtool Widgets Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.