~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to buildtools/autotools/misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
*   Copyright (C) 2001-2002 by Bernd Gehrmann                             *
 
3
*   bernd@kdevelop.org                                                    *
 
4
*                                                                         *
 
5
*   This program is free software; you can redistribute it and/or modify  *
 
6
*   it under the terms of the GNU General Public License as published by  *
 
7
*   the Free Software Foundation; either version 2 of the License, or     *
 
8
*   (at your option) any later version.                                   *
 
9
*                                                                         *
 
10
***************************************************************************/
 
11
 
 
12
#ifndef _MISC_H_
 
13
#define _MISC_H_
 
14
 
 
15
#include <qcstring.h>
 
16
#include <qmap.h>
 
17
#include <qwidget.h>
 
18
 
 
19
/**
 
20
 * Very small helper class. It has just static methods.
 
21
 */
 
22
class AutoProjectTool
 
23
{
 
24
public:
 
25
        
 
26
        /**
 
27
         * Loads the compiler options plugin for the given compiler, executes the dialog
 
28
         * with some initial flags, and returns the new flags.
 
29
         */
 
30
        static QString execFlagsDialog( const QString &compiler, const QString &flags, QWidget *parent );
 
31
        
 
32
        /**
 
33
         * Returns the canonicalized version of a file name, i.e.
 
34
         * the file name with special characters replaced by underscores
 
35
         */
 
36
        static QString canonicalize( const QString &str );
 
37
        
 
38
        /**
 
39
         * Parses a Makefile.am and stores its variable assignments
 
40
         * in a map.
 
41
         */
 
42
        static void parseMakefileam( const QString &filename, QMap<QString, QString> *variables );
 
43
        static void modifyMakefileam( const QString &filename, QMap<QString, QString> variables );
 
44
        static void removeFromMakefileam( const QString &filename, QMap<QString, QString> variables );
 
45
 
 
46
        /**
 
47
         * Parses configure.in and splits AC_OUTPUT into a QStringList
 
48
         */
 
49
        static QStringList configureinLoadMakefiles( QString configureinpath );
 
50
 
 
51
        /**
 
52
         * Receives a QStringList and puts it into
 
53
         * configure.in as arguments to AC_OUTPUT
 
54
         */
 
55
        static void configureinSaveMakefiles( QString configureinpath, QStringList makefiles );
 
56
 
 
57
};
 
58
 
 
59
#endif 
 
60
// kate: indent-mode csands; tab-width 4;
 
61