//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// copyright            : (C) 2008 by Eran Ifrah
// file name            : tags_options_dlg.h
//
// -------------------------------------------------------------------------
// A
//              _____           _      _     _ _
//             /  __ \         | |    | |   (_) |
//             | /  \/ ___   __| | ___| |    _| |_ ___
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/
//              \____/\___/ \__,_|\___\_____/_|\__\___|
//
//                                                  F i l e
//
//    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.
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

#ifndef __tags_options_dlg__
#define __tags_options_dlg__

#include "tags_options_base_dlg.h"
#include "serialized_object.h"
#include "wx/filename.h"
#include "tags_options_data.h"

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
/// Class TagsOptionsDlg
///////////////////////////////////////////////////////////////////////////////
class TagsOptionsDlg : public TagsOptionsBaseDlg
{
	TagsOptionsData m_data;
	size_t m_colour_flags;

protected:
	void SetFlag(CodeCompletionOpts flag, bool set);
	void SetColouringFlag(CodeCompletionColourOpts flag, bool set);

	void InitValues              ();
	void CopyData                ();
	void OnButtonOK              (wxCommandEvent &event);
	void OnButtonAdd             (wxCommandEvent &event);
	void OnColourWorkspaceUI     (wxUpdateUIEvent &e);
	void OnClearAll              (wxCommandEvent &e);
	void OnClearAllUI            (wxUpdateUIEvent &e);
	void OnAddSearchPath         (wxCommandEvent &e);
	void OnAddSearchPathUI       (wxUpdateUIEvent &e);
	void OnRemoveSearchPath      (wxCommandEvent &e);
	void OnRemoveSearchPathUI    (wxUpdateUIEvent &e);
	void OnClearAllExcludePaths  (wxCommandEvent &e);
	void OnClearAllExcludePathsUI(wxUpdateUIEvent &e);
	void OnAddExcludePath        (wxCommandEvent &e);
	void OnAddExcludePathUI      (wxUpdateUIEvent &e);
	void OnRemoveExcludePath     (wxCommandEvent &e);
	void OnRemoveExcludePathUI   (wxUpdateUIEvent &e);
	void OnFileSelectedUI        (wxUpdateUIEvent& event);
	void OnParse                 (wxCommandEvent& event);

public:
	TagsOptionsDlg( wxWindow* parent, const TagsOptionsData& data);
	virtual ~TagsOptionsDlg();
	TagsOptionsData &GetData() {
		return m_data;
	}
};

#endif //__tags_options_dlg__
