languages/cpp/ccconfigwidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2001 by Daniel Engelschalt * 00003 * daniel.engelschalt@gmx.net * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _CCCONFIGWIDGET_H_ 00013 #define _CCCONFIGWIDGET_H_ 00014 00015 #include "ccconfigwidgetbase.h" 00016 #include <qmap.h> 00017 00018 class CppSupportPart; 00019 class Catalog; 00020 class QCheckListItem; 00021 00022 class CCConfigWidget : public CCConfigWidgetBase 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 CCConfigWidget( CppSupportPart* part, QWidget* parent = 0, const char* name = 0 ); 00028 virtual ~CCConfigWidget( ); 00029 00030 public slots: 00031 void accept( ); 00032 void slotNewPCS(); 00033 00034 private slots: 00035 void catalogRegistered( Catalog* c ); 00036 void catalogUnregistered( Catalog* c ); 00037 00038 private: 00039 void initFileTemplatesTab(); 00040 void saveFileTemplatesTab(); 00041 00042 void initCodeCompletionTab(); 00043 void saveCodeCompletionTab(); 00044 00045 private: 00046 CppSupportPart* m_pPart; 00047 QCheckListItem* m_includeGlobalFunctions; 00048 QCheckListItem* m_includeTypes; 00049 QCheckListItem* m_includeEnums; 00050 QCheckListItem* m_includeTypedefs; 00051 QListViewItem* m_pcsOptions; 00052 QMap<QCheckListItem*, Catalog*> m_catalogs; 00053 }; 00054 00055 #endif