moExplorerNotebook::moExplorerNotebook( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) :
		wxAuiNotebook(parent, id, wxPoint(0,0), wxSize(100,100),  wxBORDER_NONE | wxSP_NOBORDER | wxNO_BORDER |  wxAUI_NB_SCROLL_BUTTONS ),
		m_pVisualsPaletteCtrl(NULL),
		m_pProjectTreeCtrl(NULL),
		m_pEffectsPaletteCtrl(NULL),
		m_pFilesTreeCtrl(NULL)
		 {

    SetArtProvider( new wxMoAuiTabArt() );

    wxColour m_cForeground(255,255,255);
    wxColour m_cBackground(0,0,0);

    ///arbol de la configuracion del proyecto
		m_pProjectTreeCtrl = new moProjectTreeCtrl( this, wxID_ANY, wxPoint(0,0), wxSize(300,377), wxTR_DEFAULT_STYLE | wxNO_BORDER | wxBORDER_NONE);
		if (m_pProjectTreeCtrl) {
      m_pProjectTreeCtrl->SetNextActionHandler( this );
      m_pProjectTreeCtrl->SetForegroundColour(m_cForeground);
      m_pProjectTreeCtrl->SetBackgroundColour(m_cBackground);
      if ( AddPage( m_pProjectTreeCtrl, wxT("Project") ) ) {
        SetPageBitmap( GetPageIndex( m_pProjectTreeCtrl ), wxBitmap(wxImage(_T("../../art/icons/ontology_16.png"))) );
      }
		}

		/// paleta de efectos para agregar
		//m_pEffectsPaletteCtrl = new moEffectsPaletteCtrl( this, wxID_ANY );
		if (m_pEffectsPaletteCtrl) {
      m_pEffectsPaletteCtrl->SetNextActionHandler( this );
      m_pEffectsPaletteCtrl->SetForegroundColour(m_cForeground);
      m_pEffectsPaletteCtrl->SetBackgroundColour(m_cBackground);

      if (AddPage( m_pEffectsPaletteCtrl, wxT("FX Palette") ) ) {
        SetPageBitmap( GetPageIndex( m_pEffectsPaletteCtrl ), wxBitmap(wxImage(_T("../../art/icons/rdf_16.png"))) );
      }
		}

		///visuales ( texturas, videos, animados, bufferes circulares, etc... )
		//m_pVisualsPaletteCtrl = new moVisualsPaletteCtrl(this, wxID_ANY );
		if (m_pVisualsPaletteCtrl) {
      m_pVisualsPaletteCtrl->SetNextActionHandler( this );
      m_pVisualsPaletteCtrl->SetForegroundColour(m_cForeground);
      m_pVisualsPaletteCtrl->SetBackgroundColour(m_cBackground);

      if (AddPage( m_pVisualsPaletteCtrl, wxT("Visuals") ) ) {
        SetPageBitmap( GetPageIndex( m_pVisualsPaletteCtrl ), wxBitmap(wxImage(_T("../../art/icons/image_16.png"))) );
      }

		}

		///arbol de archivos en el directorio de datos
		m_pFilesTreeCtrl = new wxVirtualDirTreeCtrl( this, wxID_ANY, wxPoint(0,0), wxSize(300,377),wxTR_DEFAULT_STYLE | wxNO_BORDER | wxBORDER_NONE );
		if (m_pFilesTreeCtrl) {
		  m_pFilesTreeCtrl->SetForegroundColour(m_cForeground);
		  m_pFilesTreeCtrl->SetBackgroundColour(m_cBackground);
		  if (AddPage( m_pFilesTreeCtrl, wxT("Files") ) ) {
        SetPageBitmap( GetPageIndex( m_pFilesTreeCtrl ), wxBitmap(wxImage(_T("../../art/icons/folder_sans_16.png"))) );
		  }
		}

}
Exemple #2
0
void wxRibbonBar::CommonInit(long style)
{
    SetName(wxT("wxRibbonBar"));

    m_flags = style;
    m_tabs_total_width_ideal = 0;
    m_tabs_total_width_minimum = 0;
    m_tab_margin_left = 50;
    m_tab_margin_right = 20;
    if ( m_flags & wxRIBBON_BAR_SHOW_TOGGLE_BUTTON )
        m_tab_margin_right += 20;
    if ( m_flags & wxRIBBON_BAR_SHOW_HELP_BUTTON )
        m_tab_margin_right += 20;
    m_tab_height = 20; // initial guess
    m_tab_scroll_amount = 0;
    m_current_page = -1;
    m_current_hovered_page = -1;
    m_tab_scroll_left_button_state = wxRIBBON_SCROLL_BTN_NORMAL;
    m_tab_scroll_right_button_state = wxRIBBON_SCROLL_BTN_NORMAL;
    m_tab_scroll_buttons_shown = false;
    m_arePanelsShown = true;

    if(m_art == NULL)
    {
        SetArtProvider(new wxRibbonDefaultArtProvider);
    }
    SetBackgroundStyle(wxBG_STYLE_CUSTOM);

    m_toggle_button_hovered = false;
    m_bar_hovered = false;

    m_ribbon_state = wxRIBBON_BAR_PINNED;
}
Exemple #3
0
tpanelnotebook::tpanelnotebook(mainframe *owner_, wxWindow *parent)
		: wxAuiNotebook(parent, NOTEBOOK_ID, wxDefaultPosition, wxDefaultSize, wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT |
			wxAUI_NB_TAB_MOVE | wxAUI_NB_SCROLL_BUTTONS | wxAUI_NB_TAB_EXTERNAL_MOVE | wxAUI_NB_CLOSE_ON_ALL_TABS | wxAUI_NB_WINDOWLIST_BUTTON),
			owner(owner_) {

	wxColour foreground = GetForegroundColour();
	wxColour background = GetBackgroundColour();

	unsigned int forecount = foreground.Red() + foreground.Blue() + foreground.Green();
	unsigned int backcount = background.Red() + background.Blue() + background.Green();

	bool isreverse = forecount > backcount;

	SetArtProvider(new customTabArt(foreground, background, isreverse));
}
Exemple #4
0
STabCtrl::STabCtrl(wxWindow* parent, bool close_buttons, bool window_list, int height, bool main_tabs) : wxAuiNotebook()
{
	// Determine style
	long style = wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_MOVE | wxAUI_NB_SCROLL_BUTTONS;
	if (window_list)
		style |= wxAUI_NB_WINDOWLIST_BUTTON;
	if (close_buttons)
		style |= wxAUI_NB_CLOSE_ON_ALL_TABS;

	// Create tab control
	wxAuiNotebook::Create(parent, -1, wxDefaultPosition, wxDefaultSize, style);

	// Setup tabs
	SetArtProvider(getTabArt(close_buttons, main_tabs));
	SetTabCtrlHeight(height);
}
moLogNotebook::moLogNotebook( wxWindow* parent, wxWindowID id ) :
		wxAuiNotebook(parent, id, wxPoint(0,0), wxSize(100,100),  wxBORDER_NONE | wxSP_NOBORDER | wxNO_BORDER ),
		m_pLogBase(NULL),
		m_pLogError(NULL),
		m_pLogStdout(NULL)
		 {

    SetArtProvider( new wxMoAuiTabArt() );

    wxColour m_cBackground(0,0,0);

    ///caja de texto de registro de base
		m_pLogBase = new moLogTextCtrl( this, wxID_ANY );
		if (m_pLogBase) {
      m_pLogBase->SetNextActionHandler( this );
      m_pLogBase->SetBackgroundColour(m_cBackground);
      if ( AddPage( m_pLogBase, wxT("Log") ) ) {
        ///SetPageBitmap( GetPageIndex( m_pProjectTreeCtrl ), wxBitmap(wxImage(_T("../../art/icons/ontology_16.png"))) );
      }
		}

		/// caja de texto de errores
		m_pLogError = new moLogTextCtrl( this, wxID_ANY );
		if (m_pLogError) {
      m_pLogError->SetNextActionHandler( this );
      m_pLogError->SetBackgroundColour(m_cBackground);
      if ( AddPage( m_pLogError, wxT("Errors") ) ) {
        ///SetPageBitmap( GetPageIndex( m_pProjectTreeCtrl ), wxBitmap(wxImage(_T("../../art/icons/ontology_16.png"))) );
      }
		}

		/// caja de texto de salida estandar
		m_pLogStdout = new moLogTextCtrl( this, wxID_ANY );
		if (m_pLogStdout) {
      m_pLogStdout->SetNextActionHandler( this );
      m_pLogStdout->SetBackgroundColour(m_cBackground);
      if ( AddPage( m_pLogStdout, wxT("Standard Output") ) ) {
        ///SetPageBitmap( GetPageIndex( m_pProjectTreeCtrl ), wxBitmap(wxImage(_T("../../art/icons/ontology_16.png"))) );
      }
		}

}
Exemple #6
0
wxRibbonBar::~wxRibbonBar()
{
    SetArtProvider(NULL);
}
Exemple #7
0
void MyFrame::OnMSWProvider(wxRibbonButtonBarEvent& WXUNUSED(evt))
{
    m_ribbon->DismissExpandedPanel();
    SetArtProvider(new wxRibbonMSWArtProvider);
}
void wxAuiNotebookEx::SetExArtProvider()
{
	SetArtProvider(new wxAuiTabArtEx(this, (GetWindowStyle() & wxAUI_NB_BOTTOM) != 0, new struct wxAuiTabArtExData));
}
void wxAuiNotebookEx::SetExArtProvider()
{
    SetArtProvider(new wxAuiTabArtEx(this, std::make_shared<wxAuiTabArtExData>()));
}
Exemple #10
0
void wxAuiNotebookEx::SetExArtProvider()
{
	SetArtProvider(new wxAuiTabArtEx);
}