2011-07-20 10:33:24 +02:00
|
|
|
/**
|
|
|
|
*******************************************************************************
|
2012-02-18 00:35:15 +01:00
|
|
|
* @file MainWindows.h
|
|
|
|
* @brief Editeur De N'ours : main Windows diplayer (header)
|
2011-07-20 10:33:24 +02:00
|
|
|
* @author Edouard DUPIN
|
2012-02-18 00:35:15 +01:00
|
|
|
* @date 04/01/2011
|
2011-07-20 10:33:24 +02:00
|
|
|
* @par Project
|
|
|
|
* Edn
|
|
|
|
*
|
|
|
|
* @par Copyright
|
|
|
|
* Copyright 2010 Edouard DUPIN, all right reserved
|
|
|
|
*
|
|
|
|
* This software is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY.
|
|
|
|
*
|
|
|
|
* Licence summary :
|
|
|
|
* You can modify and redistribute the sources code and binaries.
|
|
|
|
* You can send me the bug-fix
|
|
|
|
* You can not earn money with this Software (if the source extract from Edn
|
|
|
|
* represent less than 50% of original Sources)
|
|
|
|
* Term of the licence in in the file licence.txt.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
2012-03-14 09:26:14 +01:00
|
|
|
#ifndef __MAIN_WINDOWS_H__
|
|
|
|
#define __MAIN_WINDOWS_H__
|
2012-02-18 00:35:15 +01:00
|
|
|
|
2012-04-23 10:15:43 +02:00
|
|
|
#include <appl/Debug.h>
|
2012-04-24 09:42:14 +02:00
|
|
|
#include <appl/globalMsg.h>
|
2011-07-20 10:33:24 +02:00
|
|
|
|
2012-02-18 00:35:15 +01:00
|
|
|
#include <CodeView.h>
|
|
|
|
#include <BufferView.h>
|
|
|
|
#include <BufferManager.h>
|
2012-02-27 18:15:56 +01:00
|
|
|
#include <ewol/widget/Label.h>
|
2012-02-18 00:35:15 +01:00
|
|
|
|
|
|
|
class MainWindows : public ewol::Windows
|
2011-07-20 10:33:24 +02:00
|
|
|
{
|
|
|
|
private:
|
2012-02-18 00:35:15 +01:00
|
|
|
int32_t m_currentSavingAsIdBuffer;
|
2012-02-27 18:15:56 +01:00
|
|
|
ewol::Label* m_widgetLabelFileName;
|
2011-07-20 10:33:24 +02:00
|
|
|
public:
|
2012-02-18 00:35:15 +01:00
|
|
|
// Constructeur
|
|
|
|
MainWindows(void);
|
|
|
|
~MainWindows(void);
|
2012-03-14 09:26:14 +01:00
|
|
|
/**
|
|
|
|
* @brief Get the current Object type of the EObject
|
|
|
|
* @note In Embended platforme, it is many time no -rtti flag, then it is not possible to use dynamic cast ==> this will replace it
|
|
|
|
* @param[in] objectType type description
|
|
|
|
* @return true if the object is compatible, otherwise false
|
|
|
|
*/
|
2012-07-24 17:48:18 +02:00
|
|
|
const char * const GetObjectType(void) { return "MainWindows"; };
|
2012-02-29 18:06:08 +01:00
|
|
|
/**
|
|
|
|
* @brief Receive a message from an other EObject with a specific eventId and data
|
|
|
|
* @param[in] CallerObject Pointer on the EObject that information came from
|
|
|
|
* @param[in] eventId Message registered by this class
|
|
|
|
* @param[in] data Data registered by this class
|
|
|
|
* @return ---
|
|
|
|
*/
|
|
|
|
virtual void OnReceiveMessage(ewol::EObject * CallerObject, const char * eventId, etk::UString data);
|
2012-07-17 13:25:33 +02:00
|
|
|
/**
|
|
|
|
* @brief Inform object that an other object is removed ...
|
|
|
|
* @param[in] removeObject Pointer on the EObject remeved ==> the user must remove all reference on this EObject
|
|
|
|
* @note : Sub classes must call this class
|
|
|
|
* @return ---
|
|
|
|
*/
|
|
|
|
virtual void OnObjectRemove(ewol::EObject * removeObject);
|
2011-07-20 10:33:24 +02:00
|
|
|
};
|
2012-03-14 09:26:14 +01:00
|
|
|
|
|
|
|
#define EDN_CAST_MAIN_WINDOWS(curentPointer) EWOL_CAST(TYPE_EOBJECT_EDN_MAIN_WINDOWS,MainWindows,curentPointer)
|
|
|
|
|
2011-07-20 10:33:24 +02:00
|
|
|
#endif
|
|
|
|
|
2012-02-18 00:35:15 +01:00
|
|
|
|