Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

codestatconfig.h

/***************************************************************
 * Name:      codestatconfig.h
 * Purpose:   Code::Blocks CodeStat plugin: configuration window
 * Author:    Zlika
 * Created:   11/09/2005
 * Copyright: (c) Zlika
 * License:   GPL
 **************************************************************/

#ifndef CODESTATCONFIG_H
#define CODESTATCONFIG_H

#include <wx/intl.h>
#include <wx/string.h>
#include "configurationpanel.h"
#include "language_def.h"

int LoadSettings(LanguageDef languages[NB_FILETYPES_MAX]);

class wxWindow;
class wxCommandEvent;

/** This class manages the plugin's settings and display them.
 *  @see CodeStat, CodeStatExecDlg, LanguageDef
 */
00026 class CodeStatConfigDlg : public cbConfigurationPanel
{
      public:
            CodeStatConfigDlg(wxWindow* parent);
            virtual ~CodeStatConfigDlg();

      protected:
      void ComboBoxEvent(wxCommandEvent & event);
      void PrintLanguageInfo(int id);
      void SaveSettings();
      void Add(wxCommandEvent& event);
      void Remove(wxCommandEvent& event);
      void RestoreDefault(wxCommandEvent& event);
      void SaveCurrentLanguage();
      void ReInitDialog();

00042       virtual wxString GetTitle() const { return _("Code statistics settings"); }
00043       virtual wxString GetBitmapBaseName() const { return _T("codestats"); }
00044       virtual void OnApply(){SaveSettings();};
00045       virtual void OnCancel(){}

      private:
00048          LanguageDef languages[NB_FILETYPES_MAX]; /**< Languages settings. */
00049          int nb_languages;                        /**< Number of languages defined in 'languages'. */
00050          int selected_language;                   /**< Language currently selected in the combo-box. */
      DECLARE_EVENT_TABLE()
};

#endif // CODESTATCONFIG_H

Generated by  Doxygen 1.6.0   Back to index