Browse Source

Consistently use #pragma once as the include guard.

git-svn-id: file:///var/svn/tigccpp/trunk@948 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
f035f96bcb

+ 3 - 1
ktigcc/assistant.h

@@ -1,7 +1,7 @@
 /*
    ktigcc - TIGCC IDE for KDE
 
-   Copyright (C) 2006 Kevin Kofler
+   Copyright (C) 2006-2007 Kevin Kofler
 
    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
@@ -18,6 +18,8 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 */
 
+#pragma once
+
 #include <qobject.h>
 #include <qstring.h>
 

+ 3 - 1
ktigcc/colorlistitem.h

@@ -1,7 +1,7 @@
 /*
    ktigcc - TIGCC IDE for KDE
 
-   Copyright (C) 2006 Kevin Kofler
+   Copyright (C) 2006-2007 Kevin Kofler
 
    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
@@ -18,6 +18,8 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 */
 
+#pragma once
+
 #include <q3listbox.h>
 #include <qpainter.h>
 #include <qstyle.h>

+ 21 - 4
ktigcc/customstyle.h

@@ -1,5 +1,24 @@
-#ifndef CUSTOMSTYLE_H
-#define CUSTOMSTYLE_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_customstyle.h"
 
@@ -15,5 +34,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // CUSTOMSTYLE_H

+ 21 - 4
ktigcc/errorlist.h

@@ -1,5 +1,24 @@
-#ifndef ERRORLIST_H
-#define ERRORLIST_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_errorlist.h"
 
@@ -20,5 +39,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // ERRORLIST_H

+ 21 - 4
ktigcc/functions.h

@@ -1,5 +1,24 @@
-#ifndef FUNCTIONDIALOG_H
-#define FUNCTIONDIALOG_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_functions.h"
 
@@ -18,5 +37,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // FUNCTIONDIALOG_H

+ 3 - 1
ktigcc/ktigcc.h

@@ -1,7 +1,7 @@
 /*
    ktigcc - TIGCC IDE for KDE
 
-   Copyright (C) 2004-2006 Kevin Kofler
+   Copyright (C) 2004-2007 Kevin Kofler
    Copyright (C) 2006 Joey Adams
 
    This program is free software; you can redistribute it and/or modify
@@ -19,6 +19,8 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 */
 
+#pragma once
+
 #include <cstddef>
 #include <q3ptrlist.h>
 #include <kconfig.h>

+ 21 - 4
ktigcc/mainform.h

@@ -1,5 +1,24 @@
-#ifndef MAINFORM_H
-#define MAINFORM_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_mainform.h"
 
@@ -169,5 +188,3 @@ private:
     QString pathInProject( Q3ListViewItem * item );
 
 };
-
-#endif // MAINFORM_H

+ 21 - 4
ktigcc/newsdlg.h

@@ -1,5 +1,24 @@
-#ifndef NEWSDIALOG_H
-#define NEWSDIALOG_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_newsdlg.h"
 
@@ -22,5 +41,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // NEWSDIALOG_H

+ 3 - 1
ktigcc/preferences.h

@@ -1,7 +1,7 @@
 /*
    ktigcc - TIGCC IDE for KDE
 
-   Copyright (C) 2004-2006 Kevin Kofler
+   Copyright (C) 2004-2007 Kevin Kofler
    Copyright (C) 2006 Joey Adams
 
    This program is free software; you can redistribute it and/or modify
@@ -19,6 +19,8 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 */
 
+#pragma once
+
 #include <qstring.h>
 #include <qstringlist.h>
 #include <q3valuelist.h>

+ 21 - 4
ktigcc/preferencesdlg.h

@@ -1,5 +1,24 @@
-#ifndef PREFERENCES_H
-#define PREFERENCES_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_preferencesdlg.h"
 
@@ -45,5 +64,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // PREFERENCES_H

+ 21 - 4
ktigcc/programoptions.h

@@ -1,5 +1,24 @@
-#ifndef PROGRAMOPTIONS_H
-#define PROGRAMOPTIONS_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_programoptions.h"
 
@@ -27,5 +46,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // PROGRAMOPTIONS_H

+ 21 - 4
ktigcc/programoutput.h

@@ -1,5 +1,24 @@
-#ifndef PROGRAMOUTPUT_H
-#define PROGRAMOUTPUT_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_programoutput.h"
 
@@ -15,5 +34,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // PROGRAMOUTPUT_H

+ 21 - 4
ktigcc/projectoptions.h

@@ -1,5 +1,24 @@
-#ifndef PROJECTOPTIONS_H
-#define PROJECTOPTIONS_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_projectoptions.h"
 
@@ -30,5 +49,3 @@ private:
     void ExportSettings( void );
 
 };
-
-#endif // PROJECTOPTIONS_H

+ 21 - 4
ktigcc/selectcolors.h

@@ -1,5 +1,24 @@
-#ifndef SELECTCOLORS_H
-#define SELECTCOLORS_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_selectcolors.h"
 
@@ -21,5 +40,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // SELECTCOLORS_H

+ 21 - 4
ktigcc/selectstyle.h

@@ -1,5 +1,24 @@
-#ifndef SELECTSTYLE_H
-#define SELECTSTYLE_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_selectstyle.h"
 
@@ -18,5 +37,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // SELECTSTYLE_H

+ 21 - 4
ktigcc/srcfilewin.h

@@ -1,5 +1,24 @@
-#ifndef SOURCEFILEWINDOW_H
-#define SOURCEFILEWINDOW_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_srcfilewin.h"
 
@@ -81,5 +100,3 @@ private:
     void current_view_newLineHook();
 
 };
-
-#endif // SOURCEFILEWINDOW_H

+ 21 - 4
ktigcc/toolprops.h

@@ -1,5 +1,24 @@
-#ifndef TOOLPROPERTIES_H
-#define TOOLPROPERTIES_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_toolprops.h"
 
@@ -21,5 +40,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // TOOLPROPERTIES_H

+ 21 - 4
ktigcc/toolsdlg.h

@@ -1,5 +1,24 @@
-#ifndef TOOLSDIALOG_H
-#define TOOLSDIALOG_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_toolsdlg.h"
 
@@ -23,5 +42,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // TOOLSDIALOG_H

+ 21 - 4
ktigcc/wordlist.h

@@ -1,5 +1,24 @@
-#ifndef WORDLIST_H
-#define WORDLIST_H
+/*
+   ktigcc - TIGCC IDE for KDE
+
+   Copyright (C) 2007 Kevin Kofler
+
+   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, 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 Street, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+#pragma once
 
 #include "ui_wordlist.h"
 
@@ -15,5 +34,3 @@ protected slots:
     virtual void languageChange();
 
 };
-
-#endif // WORDLIST_H