|
|
|
@ -44,7 +44,6 @@
|
|
|
|
|
#include "editor_selection_watcher.h"
|
|
|
|
|
#include "editor_message_processor.h"
|
|
|
|
|
#include "add_widget_widget.h"
|
|
|
|
|
#include "texture_chooser.h"
|
|
|
|
|
|
|
|
|
|
namespace GUIEditor
|
|
|
|
|
{
|
|
|
|
@ -71,8 +70,6 @@ namespace GUIEditor
|
|
|
|
|
|
|
|
|
|
widgetInfoTree = new CWidgetInfoTree;
|
|
|
|
|
|
|
|
|
|
tc = new TextureChooser();
|
|
|
|
|
|
|
|
|
|
createMenus();
|
|
|
|
|
readSettings();
|
|
|
|
|
|
|
|
|
@ -118,9 +115,6 @@ namespace GUIEditor
|
|
|
|
|
|
|
|
|
|
removeMenus();
|
|
|
|
|
|
|
|
|
|
delete tc;
|
|
|
|
|
tc = NULL;
|
|
|
|
|
|
|
|
|
|
delete messageProcessor;
|
|
|
|
|
messageProcessor = NULL;
|
|
|
|
|
|
|
|
|
@ -359,12 +353,6 @@ namespace GUIEditor
|
|
|
|
|
GUICtrl->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GUIEditorWindow::onTCClicked()
|
|
|
|
|
{
|
|
|
|
|
tc->load();
|
|
|
|
|
tc->exec();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void GUIEditorWindow::createMenus()
|
|
|
|
|
{
|
|
|
|
|
Core::MenuManager *mm = Core::ICore::instance()->menuManager();
|
|
|
|
@ -411,10 +399,6 @@ namespace GUIEditor
|
|
|
|
|
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( onAddWidgetClicked() ) );
|
|
|
|
|
m->addAction( a );
|
|
|
|
|
|
|
|
|
|
a = new QAction( "Texture Chooser", this );
|
|
|
|
|
connect( a, SIGNAL( triggered( bool ) ), this, SLOT( onTCClicked() ) );
|
|
|
|
|
m->addAction( a );
|
|
|
|
|
|
|
|
|
|
menu = m;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|