Logo Search packages:      
Sourcecode: kcm-gtk version File versions  Download package

searchpaths.h

/***************************************************************************
 *   Copyright (C) 2008 by David Sansome                                   *
 *   me@davidsansome.com                                                   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.              *
 ***************************************************************************/

#ifndef SEARCHPATHS_H
#define SEARCHPATHS_H

#include <KDialog>
#include <QStringListModel>

#include "ui_searchpaths.h"

class QSettings;

00031 class SearchPaths : public KDialog
{
      Q_OBJECT
public:
      SearchPaths(QWidget* parent);

      QStringList paths() const { return m_paths->stringList(); }

public Q_SLOTS:
      int exec();

private Q_SLOTS:
      void textChanged(const QString& text);
      void add();
      void remove();
      void itemClicked(const QModelIndex&);

private:
      Ui_SearchPaths m_ui;

      QStringListModel* m_paths;
      QSettings* m_settings;
};

#endif


Generated by  Doxygen 1.6.0   Back to index