Changed: #1193 Updated ovqt icons(thanks Kaetemi). Updated layout value gradient dialog. Added initial scheme bank work for particle system editor.

hg/feature/sound
dnk-88 14 years ago
parent bd1f293b5d
commit 8d42a10f4c

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

@ -1,9 +1,15 @@
<RCC> <RCC>
<qresource prefix="/core"> <qresource prefix="/core">
<file>images/list-add.png</file> <file>icons/ic_nel_add_item.png</file>
<file>images/list-remove.png</file> <file>icons/ic_nel_crash.png</file>
<file>images/go-up.png</file> <file>icons/ic_nel_delete_item.png</file>
<file>images/go-down.png</file> <file>icons/ic_nel_down_item.png</file>
<file>icons/ic_nel_generic_settings.png</file>
<file>icons/ic_nel_open.png</file>
<file>icons/ic_nel_path_settings.png</file>
<file>icons/ic_nel_pill.png</file>
<file>icons/ic_nel_reset_all.png</file>
<file>icons/ic_nel_up_item.png</file>
<file>images/nel.png</file> <file>images/nel.png</file>
<file>images/preferences.png</file> <file>images/preferences.png</file>
</qresource> </qresource>

@ -23,53 +23,57 @@ namespace Core
namespace Constants namespace Constants
{ {
const char * const OVQT_VERSION_LONG = "0.0.1"; const char * const OVQT_VERSION_LONG = "0.0.1";
const char * const OVQT_VENDOR = "Dzmitry Kamiahin"; const char * const OVQT_VENDOR = "Dzmitry Kamiahin";
const char * const OVQT_YEAR = "2010, 2011"; const char * const OVQT_YEAR = "2010, 2011";
const char * const OVQT_CORE_PLUGIN = "Core"; const char * const OVQT_CORE_PLUGIN = "Core";
//mainwindow //mainwindow
const char * const MAIN_WINDOW = "ObjectViewerQt.MainWindow"; const char * const MAIN_WINDOW = "ObjectViewerQt.MainWindow";
//menubar //menubar
const char * const MENU_BAR = "ObjectViewerQt.MenuBar"; const char * const MENU_BAR = "ObjectViewerQt.MenuBar";
//menus //menus
const char * const M_FILE = "ObjectViewerQt.Menu.File"; const char * const M_FILE = "ObjectViewerQt.Menu.File";
const char * const M_EDIT = "ObjectViewerQt.Menu.Edit"; const char * const M_EDIT = "ObjectViewerQt.Menu.Edit";
const char * const M_VIEW = "ObjectViewerQt.Menu.View"; const char * const M_VIEW = "ObjectViewerQt.Menu.View";
const char * const M_SCENE = "ObjectViewerQt.Menu.Scene"; const char * const M_SCENE = "ObjectViewerQt.Menu.Scene";
const char * const M_TOOLS = "ObjectViewerQt.Menu.Tools"; const char * const M_TOOLS = "ObjectViewerQt.Menu.Tools";
const char * const M_WINDOW = "ObjectViewerQt.Menu.Window"; const char * const M_WINDOW = "ObjectViewerQt.Menu.Window";
const char * const M_HELP = "ObjectViewerQt.Menu.Help"; const char * const M_HELP = "ObjectViewerQt.Menu.Help";
const char * const M_SHEET = "ObjectViewerQt.Menu.Sheet"; const char * const M_SHEET = "ObjectViewerQt.Menu.Sheet";
//actions //actions
const char * const NEW = "ObjectViewerQt.New"; const char * const NEW = "ObjectViewerQt.New";
const char * const OPEN = "ObjectViewerQt.Open"; const char * const OPEN = "ObjectViewerQt.Open";
const char * const EXIT = "ObjectViewerQt.Exit"; const char * const EXIT = "ObjectViewerQt.Exit";
const char * const SETTINGS = "ObjectViewerQt.Settings"; const char * const SETTINGS = "ObjectViewerQt.Settings";
const char * const TOGGLE_FULLSCREEN = "ObjectViewerQt.ToggleFullScreen"; const char * const TOGGLE_FULLSCREEN = "ObjectViewerQt.ToggleFullScreen";
const char * const CLOSE = "ObjectViewerQt.Close"; const char * const CLOSE = "ObjectViewerQt.Close";
const char * const CLOSEALL = "ObjectViewerQt.CloseAll"; const char * const CLOSEALL = "ObjectViewerQt.CloseAll";
const char * const CLOSEOTHERS = "ObjectViewerQt.CloseOthers"; const char * const CLOSEOTHERS = "ObjectViewerQt.CloseOthers";
const char * const ABOUT = "ObjectViewerQt.About"; const char * const ABOUT = "ObjectViewerQt.About";
const char * const ABOUT_PLUGINS = "ObjectViewerQt.AboutPlugins"; const char * const ABOUT_PLUGINS = "ObjectViewerQt.AboutPlugins";
const char * const ABOUT_QT = "ObjectViewerQt.AboutQt"; const char * const ABOUT_QT = "ObjectViewerQt.AboutQt";
//settings //settings
const char * const DATA_PATH_SECTION = "DataPath"; const char * const DATA_PATH_SECTION = "DataPath";
const char * const SEARCH_PATHS = "SearchPaths"; const char * const SEARCH_PATHS = "SearchPaths";
const char * const RECURSIVE_SEARCH_PATHS = "RecursiveSearchPathes"; const char * const RECURSIVE_SEARCH_PATHS = "RecursiveSearchPathes";
const char * const LEVELDESIGN_PATH = "LevelDesignPath"; const char * const LEVELDESIGN_PATH = "LevelDesignPath";
const char * const ASSETS_PATH = "LevelDesignPath"; const char * const ASSETS_PATH = "LevelDesignPath";
//resources //resources
const char * const ICON_NEL = ":/core/images/nel.png"; const char * const ICON_NEL = ":/core/images/nel.png";
const char * const ICON_SETTINGS = ":/core/images/preferences.png"; const char * const ICON_SETTINGS = ":/core/images/preferences.png";
const char * const ICON_PILL = ":/core/icons/ic_nel_pill.png";
const char * const ICON_OPEN = ":/core/icons/ic_nel_open.png";
const char * const ICON_CRASH = ":/core/icons/ic_nel_crash.png";
} // namespace Constants } // namespace Constants
} // namespace Core } // namespace Core

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

@ -47,7 +47,7 @@ MainWindow::MainWindow(ExtensionSystem::IPluginManager *pluginManager, QWidget *
QCoreApplication::setOrganizationName(QLatin1String("RyzomCore")); QCoreApplication::setOrganizationName(QLatin1String("RyzomCore"));
setObjectName(Constants::MAIN_WINDOW); setObjectName(Constants::MAIN_WINDOW);
setWindowIcon(QIcon(Constants::ICON_NEL)); setWindowIcon(QIcon(Constants::ICON_PILL));
setWindowTitle(tr("Object Viewer Qt")); setWindowTitle(tr("Object Viewer Qt"));
m_pluginManager = pluginManager; m_pluginManager = pluginManager;
@ -173,7 +173,7 @@ void MainWindow::addContextObject(IContext *context)
void MainWindow::createActions() void MainWindow::createActions()
{ {
m_openAction = new QAction(tr("&Open..."), this); m_openAction = new QAction(tr("&Open..."), this);
m_openAction->setIcon(QIcon(":/images/open-file.png")); m_openAction->setIcon(QIcon(Constants::ICON_OPEN));
m_openAction->setShortcut(QKeySequence::Open); m_openAction->setShortcut(QKeySequence::Open);
m_openAction->setStatusTip(tr("Open an existing file")); m_openAction->setStatusTip(tr("Open an existing file"));
menuManager()->registerAction(m_openAction, Constants::OPEN); menuManager()->registerAction(m_openAction, Constants::OPEN);

@ -74,6 +74,7 @@ QWidget *CSearchPathsSettingsPage::createPage(QWidget *parent)
connect(m_ui.removeToolButton, SIGNAL(clicked()), this, SLOT(delPath())); connect(m_ui.removeToolButton, SIGNAL(clicked()), this, SLOT(delPath()));
connect(m_ui.upToolButton, SIGNAL(clicked()), this, SLOT(upPath())); connect(m_ui.upToolButton, SIGNAL(clicked()), this, SLOT(upPath()));
connect(m_ui.downToolButton, SIGNAL(clicked()), this, SLOT(downPath())); connect(m_ui.downToolButton, SIGNAL(clicked()), this, SLOT(downPath()));
connect(m_ui.resetToolButton, SIGNAL(clicked()), m_ui.pathsListWidget, SLOT(clear()));
return m_page; return m_page;
} }

@ -53,12 +53,15 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>Add</string>
</property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="core.qrc"> <iconset resource="core.qrc">
<normaloff>:/core/images/list-add.png</normaloff>:/core/images/list-add.png</iconset> <normaloff>:/core/icons/ic_nel_add_item.png</normaloff>:/core/icons/ic_nel_add_item.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -79,12 +82,15 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>Delete</string>
</property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="core.qrc"> <iconset resource="core.qrc">
<normaloff>:/core/images/list-remove.png</normaloff>:/core/images/list-remove.png</iconset> <normaloff>:/core/icons/ic_nel_delete_item.png</normaloff>:/core/icons/ic_nel_delete_item.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -105,12 +111,15 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>Up</string>
</property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="core.qrc"> <iconset resource="core.qrc">
<normaloff>:/core/images/go-up.png</normaloff>:/core/images/go-up.png</iconset> <normaloff>:/core/icons/ic_nel_up_item.png</normaloff>:/core/icons/ic_nel_up_item.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -131,12 +140,38 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>Down</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="core.qrc">
<normaloff>:/core/icons/ic_nel_down_item.png</normaloff>:/core/icons/ic_nel_down_item.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="resetToolButton">
<property name="toolTip">
<string>Reset</string>
</property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="core.qrc"> <iconset resource="core.qrc">
<normaloff>:/core/images/go-down.png</normaloff>:/core/images/go-down.png</iconset> <normaloff>:/core/icons/ic_nel_reset_all.png</normaloff>:/core/icons/ic_nel_reset_all.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>

@ -70,7 +70,8 @@ SET(OBJECT_VIEWER_PLUGIN_HDR object_viewer_plugin.h
camera_control.h camera_control.h
graphics_settings_page.h graphics_settings_page.h
sound_settings_page.h sound_settings_page.h
vegetable_settings_page.h) vegetable_settings_page.h
scheme_bank_dialog.h)
SET(OBJECT_VIEWER_PLUGIN_UIS animation_form.ui SET(OBJECT_VIEWER_PLUGIN_UIS animation_form.ui
animation_set_form.ui animation_set_form.ui
@ -120,7 +121,9 @@ SET(OBJECT_VIEWER_PLUGIN_UIS animation_form.ui
tune_timer_form.ui tune_timer_form.ui
graphics_settings_page.ui graphics_settings_page.ui
sound_settings_page.ui sound_settings_page.ui
vegetable_settings_page.ui) vegetable_settings_page.ui
scheme_bank_form.ui
value_gradient_form.ui)
SET(OBJECT_VIEWER_PLUGIN_RCS object_viewer.qrc) SET(OBJECT_VIEWER_PLUGIN_RCS object_viewer.qrc)

@ -24,7 +24,7 @@
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="object_viewer.qrc"> <iconset resource="object_viewer.qrc">
<normaloff>:/images/animset.png</normaloff>:/images/animset.png</iconset> <normaloff>:/icons/ic_nel_animset.png</normaloff>:/icons/ic_nel_animset.png</iconset>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Animation set manager</string> <string>Animation set manager</string>
@ -309,7 +309,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="object_viewer.qrc"> <iconset resource="object_viewer.qrc">
<normaloff>:/images/clear.png</normaloff>:/images/clear.png</iconset> <normaloff>:/icons/ic_nel_reset_all.png</normaloff>:/icons/ic_nel_reset_all.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -355,7 +355,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="object_viewer.qrc"> <iconset resource="object_viewer.qrc">
<normaloff>:/images/list-add.png</normaloff>:/images/list-add.png</iconset> <normaloff>:/icons/ic_nel_add_item.png</normaloff>:/icons/ic_nel_add_item.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -381,7 +381,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="object_viewer.qrc"> <iconset resource="object_viewer.qrc">
<normaloff>:/images/list-remove.png</normaloff>:/images/list-remove.png</iconset> <normaloff>:/icons/ic_nel_delete_item.png</normaloff>:/icons/ic_nel_delete_item.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -404,7 +404,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="object_viewer.qrc"> <iconset resource="object_viewer.qrc">
<normaloff>:/images/go-up.png</normaloff>:/images/go-up.png</iconset> <normaloff>:/icons/ic_nel_up_item.png</normaloff>:/icons/ic_nel_up_item.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -427,7 +427,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="object_viewer.qrc"> <iconset resource="object_viewer.qrc">
<normaloff>:/images/go-down.png</normaloff>:/images/go-down.png</iconset> <normaloff>:/icons/ic_nel_down_item.png</normaloff>:/icons/ic_nel_down_item.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -471,7 +471,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="object_viewer.qrc"> <iconset resource="object_viewer.qrc">
<normaloff>:/images/time.png</normaloff>:/images/time.png</iconset> <normaloff>:/icons/ic_nel_framedelay.png</normaloff>:/icons/ic_nel_framedelay.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>231</width> <width>208</width>
<height>213</height> <height>217</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -37,97 +37,29 @@
</item> </item>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="3"> <item row="0" column="1" colspan="3">
<widget class="NLQT::CBasicEditWidget" name="constAttribPlaneWidget" native="true"/> <widget class="QWidget" name="schemeEditWidget" native="true">
</item> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item row="3" column="0" colspan="3"> <property name="spacing">
<widget class="NLQT::CColorEditWidget" name="constRGBAWidget" native="true"/> <number>1</number>
</item> </property>
<item row="4" column="0" colspan="3">
<widget class="NLQT::CEditRangeIntWidget" name="constRangeIntWidget" native="true"/>
</item>
<item row="5" column="0" colspan="3">
<widget class="NLQT::CEditRangeFloatWidget" name="constRangeFloatWidget" native="true"/>
</item>
<item row="6" column="0" colspan="3">
<widget class="NLQT::CEditRangeUIntWidget" name="constRangeUIntWidget" native="true"/>
</item>
<item row="7" column="0" rowspan="2" colspan="3">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QLabel" name="inputLabel">
<property name="text">
<string>Input mutliplier:</string>
</property>
</widget>
</item>
<item row="8" column="1" rowspan="2">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>108</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="8" column="2" rowspan="2">
<widget class="QCheckBox" name="clampCheckBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Clamp</string>
</property>
</widget>
</item>
<item row="10" column="0" colspan="3">
<widget class="NLQT::CEditRangeFloatWidget" name="inMultiplierWidget" native="true">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="11" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="3">
<widget class="QWidget" name="schemeWidget" native="true">
<property name="enabled">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin"> <property name="margin">
<number>0</number> <number>0</number>
</property> </property>
<property name="spacing"> <item>
<number>5</number> <spacer name="horizontalSpacer">
</property> <property name="orientation">
<item row="0" column="0"> <enum>Qt::Horizontal</enum>
<widget class="QComboBox" name="schemeComboBox"/> </property>
<property name="sizeHint" stdset="0">
<size>
<width>5</width>
<height>5</height>
</size>
</property>
</spacer>
</item> </item>
<item row="0" column="2"> <item>
<widget class="QPushButton" name="editPushButton"> <widget class="QPushButton" name="editPushButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
@ -140,6 +72,62 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="userParamPushButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>U</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="bankButton">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>B</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" colspan="4">
<widget class="QWidget" name="schemeWidget" native="true">
<property name="enabled">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>5</number>
</property>
<item row="0" column="0">
<widget class="QComboBox" name="schemeComboBox"/>
</item>
<item row="1" column="0"> <item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
@ -211,57 +199,84 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="1" column="2">
<widget class="QPushButton" name="userParamPushButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>U</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QPushButton" name="putPushButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>P</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QPushButton" name="getPushButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>G</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="4">
<widget class="NLQT::CBasicEditWidget" name="constAttribPlaneWidget" native="true"/>
</item>
<item row="3" column="0" colspan="4">
<widget class="NLQT::CColorEditWidget" name="constRGBAWidget" native="true"/>
</item>
<item row="4" column="0" colspan="4">
<widget class="NLQT::CEditRangeIntWidget" name="constRangeIntWidget" native="true"/>
</item>
<item row="5" column="0" colspan="4">
<widget class="NLQT::CEditRangeFloatWidget" name="constRangeFloatWidget" native="true"/>
</item>
<item row="6" column="0" colspan="4">
<widget class="NLQT::CEditRangeUIntWidget" name="constRangeUIntWidget" native="true"/>
</item>
<item row="7" column="0" colspan="4">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="8" column="0" colspan="2">
<widget class="QLabel" name="inputLabel">
<property name="text">
<string>Input mutliplier:</string>
</property>
</widget>
</item>
<item row="8" column="2">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>108</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="8" column="3">
<widget class="QCheckBox" name="clampCheckBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Clamp</string>
</property>
</widget>
</item>
<item row="9" column="0" colspan="4">
<widget class="NLQT::CEditRangeFloatWidget" name="inMultiplierWidget" native="true">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="10" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>

@ -39,6 +39,7 @@
#include "value_from_emitter_dialog.h" #include "value_from_emitter_dialog.h"
#include "spinner_dialog.h" #include "spinner_dialog.h"
#include "follow_path_dialog.h" #include "follow_path_dialog.h"
#include "scheme_bank_dialog.h"
namespace NLQT namespace NLQT
{ {
@ -59,6 +60,7 @@ CAttribWidget::CAttribWidget(QWidget *parent)
_ui.constRangeIntWidget->hide(); _ui.constRangeIntWidget->hide();
_ui.constRGBAWidget->hide(); _ui.constRGBAWidget->hide();
_ui.schemeWidget->hide(); _ui.schemeWidget->hide();
_ui.schemeEditWidget->hide();
_ui.inMultiplierWidget->setRange(0.1f, 10.1f); _ui.inMultiplierWidget->setRange(0.1f, 10.1f);
_ui.inMultiplierWidget->enableLowerBound(0, true);; _ui.inMultiplierWidget->enableLowerBound(0, true);;
@ -82,6 +84,7 @@ void CAttribWidget::init()
connect(_ui.schemeComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changeCurrentScheme(int))); connect(_ui.schemeComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changeCurrentScheme(int)));
connect(_ui.srcComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setCurrentSrc(int))); connect(_ui.srcComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setCurrentSrc(int)));
connect(_ui.userParamPushButton, SIGNAL(clicked()), this, SLOT(setUserIndex())); connect(_ui.userParamPushButton, SIGNAL(clicked()), this, SLOT(setUserIndex()));
connect(_ui.bankButton, SIGNAL(clicked()), this, SLOT(openSchemeBankDialog()));
connect(_ui.comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changeUseScheme(int))); connect(_ui.comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changeUseScheme(int)));
} }
@ -181,6 +184,16 @@ void CAttribWidget::changeUseScheme(int index)
} }
} }
void CAttribWidget::openSchemeBankDialog()
{
CSchemeBankDialog *dialog = new CSchemeBankDialog(this);
dialog->setModal(true);
dialog->show();
dialog->exec();
delete dialog;
//updateUi();
}
void CAttribWidget::inputValueUpdate(void) void CAttribWidget::inputValueUpdate(void)
{ {
if (useScheme() && getSchemeInput().InputType == NL3D::CPSInputType::attrUserParam) if (useScheme() && getSchemeInput().InputType == NL3D::CPSInputType::attrUserParam)
@ -206,7 +219,7 @@ void CAttribWidget::schemeValueUpdate()
_ui.constRGBAWidget->hide(); _ui.constRGBAWidget->hide();
_ui.schemeWidget->show(); _ui.schemeWidget->show();
_ui.schemeEditWidget->show();
sint k = getCurrentScheme(); sint k = getCurrentScheme();
if (k == -1) // unknow scheme ... if (k == -1) // unknow scheme ...
@ -312,11 +325,11 @@ QDialog *CAttribFloatWidget::editScheme(void)
if (dynamic_cast<NL3D::CPSFloatGradient *>(scheme)) if (dynamic_cast<NL3D::CPSFloatGradient *>(scheme))
{ {
CFloatGradientWrapper *wrapper = new CFloatGradientWrapper; CFloatGradientWrapper *wrapper = new CFloatGradientWrapper;
wrapper->MinRange = _MinRange; wrapper->m_minRange = _MinRange;
wrapper->MaxRange = _MaxRange; wrapper->m_maxRange = _MaxRange;
wrapper->Scheme = &(((NL3D::CPSFloatGradient *) (_SchemeWrapper->getScheme()) )->_F); wrapper->m_scheme = &(((NL3D::CPSFloatGradient *) (_SchemeWrapper->getScheme()) )->_F);
CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this); CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this);
wrapper->DefaultValue = 0.f; wrapper->m_defaultValue = 0.f;
return gd; return gd;
} }
if (dynamic_cast<NL3D::CPSFloatMemory *>(scheme)) if (dynamic_cast<NL3D::CPSFloatMemory *>(scheme))
@ -423,6 +436,7 @@ sint CAttribFloatWidget::getCurrentScheme(void) const
void CAttribFloatWidget::cstValueUpdate() void CAttribFloatWidget::cstValueUpdate()
{ {
_ui.schemeWidget->hide(); _ui.schemeWidget->hide();
_ui.schemeEditWidget->hide();
_ui.inMultiplierWidget->setEnabled(false); _ui.inMultiplierWidget->setEnabled(false);
_ui.clampCheckBox->setEnabled(false); _ui.clampCheckBox->setEnabled(false);
_ui.inputLabel->setEnabled(false); _ui.inputLabel->setEnabled(false);
@ -473,11 +487,11 @@ QDialog *CAttribUIntWidget::editScheme(void)
if (dynamic_cast<const NL3D::CPSUIntGradient *>(scheme)) if (dynamic_cast<const NL3D::CPSUIntGradient *>(scheme))
{ {
CUIntGradientWrapper *wrapper = new CUIntGradientWrapper; CUIntGradientWrapper *wrapper = new CUIntGradientWrapper;
wrapper->MinRange = _MinRange; wrapper->m_minRange = _MinRange;
wrapper->MaxRange = _MaxRange; wrapper->m_maxRange = _MaxRange;
wrapper->Scheme = &(((NL3D::CPSUIntGradient *) (_SchemeWrapper->getScheme()) )->_F); wrapper->m_scheme = &(((NL3D::CPSUIntGradient *) (_SchemeWrapper->getScheme()) )->_F);
CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this); CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this);
wrapper->DefaultValue = 0; wrapper->m_defaultValue = 0;
return gd; return gd;
} }
@ -560,6 +574,7 @@ sint CAttribUIntWidget::getCurrentScheme(void) const
void CAttribUIntWidget::cstValueUpdate() void CAttribUIntWidget::cstValueUpdate()
{ {
_ui.schemeWidget->hide(); _ui.schemeWidget->hide();
_ui.schemeEditWidget->hide();
_ui.inMultiplierWidget->setEnabled(false); _ui.inMultiplierWidget->setEnabled(false);
_ui.clampCheckBox->setEnabled(false); _ui.clampCheckBox->setEnabled(false);
_ui.inputLabel->setEnabled(false); _ui.inputLabel->setEnabled(false);
@ -610,11 +625,11 @@ QDialog *CAttribIntWidget::editScheme(void)
if (dynamic_cast<const NL3D::CPSIntGradient *>(scheme)) if (dynamic_cast<const NL3D::CPSIntGradient *>(scheme))
{ {
CIntGradientWrapper *wrapper = new CIntGradientWrapper; CIntGradientWrapper *wrapper = new CIntGradientWrapper;
wrapper->MinRange = _MinRange; wrapper->m_minRange = _MinRange;
wrapper->MaxRange = _MaxRange; wrapper->m_maxRange = _MaxRange;
wrapper->Scheme = &(((NL3D::CPSIntGradient *) (_SchemeWrapper->getScheme()) )->_F); wrapper->m_scheme = &(((NL3D::CPSIntGradient *) (_SchemeWrapper->getScheme()) )->_F);
CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this); CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this);
wrapper->DefaultValue = 0; wrapper->m_defaultValue = 0;
return gd; return gd;
} }
if (dynamic_cast<const NL3D::CPSIntMemory *>(scheme)) if (dynamic_cast<const NL3D::CPSIntMemory *>(scheme))
@ -695,6 +710,7 @@ sint CAttribIntWidget::getCurrentScheme(void) const
void CAttribIntWidget::cstValueUpdate() void CAttribIntWidget::cstValueUpdate()
{ {
_ui.schemeWidget->hide(); _ui.schemeWidget->hide();
_ui.schemeEditWidget->hide();
_ui.inMultiplierWidget->setEnabled(false); _ui.inMultiplierWidget->setEnabled(false);
_ui.clampCheckBox->setEnabled(false); _ui.clampCheckBox->setEnabled(false);
_ui.inputLabel->setEnabled(false); _ui.inputLabel->setEnabled(false);
@ -737,9 +753,9 @@ QDialog *CAttribRGBAWidget::editScheme(void)
if (dynamic_cast<const NL3D::CPSColorGradient *>(scheme)) if (dynamic_cast<const NL3D::CPSColorGradient *>(scheme))
{ {
CColorGradientWrapper *wrapper = new CColorGradientWrapper; CColorGradientWrapper *wrapper = new CColorGradientWrapper;
wrapper->Scheme = &(((NL3D::CPSColorGradient *) (_SchemeWrapper->getScheme()) )->_F); wrapper->m_scheme = &(((NL3D::CPSColorGradient *) (_SchemeWrapper->getScheme()) )->_F);
CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this); CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this);
wrapper->DefaultValue = NLMISC::CRGBA::White; wrapper->m_defaultValue = NLMISC::CRGBA::White;
return gd; return gd;
} }
if (dynamic_cast<const NL3D::CPSColorBlenderExact *>(scheme)) if (dynamic_cast<const NL3D::CPSColorBlenderExact *>(scheme))
@ -827,6 +843,7 @@ sint CAttribRGBAWidget::getCurrentScheme(void) const
void CAttribRGBAWidget::cstValueUpdate() void CAttribRGBAWidget::cstValueUpdate()
{ {
_ui.schemeWidget->hide(); _ui.schemeWidget->hide();
_ui.schemeEditWidget->hide();
_ui.inMultiplierWidget->setEnabled(false); _ui.inMultiplierWidget->setEnabled(false);
_ui.clampCheckBox->setEnabled(false); _ui.clampCheckBox->setEnabled(false);
_ui.inputLabel->setEnabled(false); _ui.inputLabel->setEnabled(false);
@ -861,9 +878,9 @@ QDialog *CAttribPlaneBasisWidget::editScheme(void)
if (dynamic_cast<NL3D::CPSPlaneBasisGradient *>(scheme)) if (dynamic_cast<NL3D::CPSPlaneBasisGradient *>(scheme))
{ {
CPlaneBasisGradientWrapper *wrapper = new CPlaneBasisGradientWrapper; CPlaneBasisGradientWrapper *wrapper = new CPlaneBasisGradientWrapper;
wrapper->Scheme = &(((NL3D::CPSPlaneBasisGradient *) (_SchemeWrapper->getScheme()) )->_F); wrapper->m_scheme = &(((NL3D::CPSPlaneBasisGradient *) (_SchemeWrapper->getScheme()) )->_F);
CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this); CGradientDialog *gd = new CGradientDialog(_Node, wrapper, true, true, 2, this);
wrapper->DefaultValue = NL3D::CPlaneBasis(NLMISC::CVector::K); wrapper->m_defaultValue = NL3D::CPlaneBasis(NLMISC::CVector::K);
return gd; return gd;
} }
if (dynamic_cast<NL3D::CPSPlaneBasisFollowSpeed *>(scheme)) if (dynamic_cast<NL3D::CPSPlaneBasisFollowSpeed *>(scheme))
@ -964,6 +981,7 @@ sint CAttribPlaneBasisWidget::getCurrentScheme(void) const
void CAttribPlaneBasisWidget::cstValueUpdate() void CAttribPlaneBasisWidget::cstValueUpdate()
{ {
_ui.schemeWidget->hide(); _ui.schemeWidget->hide();
_ui.schemeEditWidget->hide();
_ui.inMultiplierWidget->setEnabled(false); _ui.inMultiplierWidget->setEnabled(false);
_ui.clampCheckBox->setEnabled(false); _ui.clampCheckBox->setEnabled(false);
_ui.inputLabel->setEnabled(false); _ui.inputLabel->setEnabled(false);

@ -109,6 +109,7 @@ private Q_SLOTS:
virtual void setCurrentSrc(int index); virtual void setCurrentSrc(int index);
virtual void setUserIndex(); virtual void setUserIndex();
virtual void changeUseScheme(int index); virtual void changeUseScheme(int index);
virtual void openSchemeBankDialog();
protected: protected:

@ -33,6 +33,7 @@
// Project includes // Project includes
#include "modules.h" #include "modules.h"
#include "object_viewer_constants.h"
static int camId = 0; static int camId = 0;
@ -106,11 +107,13 @@ CCameraControl::CCameraControl(QWidget *parent)
{ {
_camToolBar = new QToolBar(tr("CameraControl"), parent); _camToolBar = new QToolBar(tr("CameraControl"), parent);
_fpsAction = _camToolBar->addAction(tr("Fly")); _fpsAction = _camToolBar->addAction(tr("Camera frs"));
_fpsAction->setIcon(QIcon(Constants::ICON_CAMERA_FPS));
_fpsAction->setStatusTip(tr("Set firstPerson camera mode")); _fpsAction->setStatusTip(tr("Set firstPerson camera mode"));
_fpsAction->setCheckable(true); _fpsAction->setCheckable(true);
_edit3dAction = _camToolBar->addAction(tr("Edit")); _edit3dAction = _camToolBar->addAction(tr("Camera 3dEdit"));
_edit3dAction->setIcon(QIcon(Constants::ICON_CAMERA_3DEDIT));
_edit3dAction->setStatusTip(tr("Set edit3d camera mode")); _edit3dAction->setStatusTip(tr("Set edit3d camera mode"));
_edit3dAction->setCheckable(true); _edit3dAction->setCheckable(true);
@ -160,12 +163,12 @@ CCameraControl::CCameraControl(QWidget *parent)
_camToolBar->addSeparator(); _camToolBar->addSeparator();
_addCamAction = _camToolBar->addAction(tr("Create camera")); _addCamAction = _camToolBar->addAction(tr("Create camera"));
_addCamAction->setIcon(QIcon(":/images/cam_add.png")); _addCamAction->setIcon(QIcon(Constants::ICON_CAMERA_ADD));
_addCamAction->setStatusTip(tr("Create new camera")); _addCamAction->setStatusTip(tr("Create new camera"));
connect(_addCamAction, SIGNAL(triggered()), this, SLOT(addCamera())); connect(_addCamAction, SIGNAL(triggered()), this, SLOT(addCamera()));
_delCamAction = _camToolBar->addAction(tr("Delete camera")); _delCamAction = _camToolBar->addAction(tr("Delete camera"));
_delCamAction->setIcon(QIcon(":/images/cam_del.png")); _delCamAction->setIcon(QIcon(Constants::ICON_CAMERA_DEL));
_delCamAction->setStatusTip(tr("Delete current camera")); _delCamAction->setStatusTip(tr("Delete current camera"));
connect(_delCamAction, SIGNAL(triggered()), this, SLOT(delCamera())); connect(_delCamAction, SIGNAL(triggered()), this, SLOT(delCamera()));
@ -176,6 +179,7 @@ CCameraControl::CCameraControl(QWidget *parent)
_camToolBar->addSeparator(); _camToolBar->addSeparator();
_resetCamAction = _camToolBar->addAction(tr("Reset camera")); _resetCamAction = _camToolBar->addAction(tr("Reset camera"));
_resetCamAction->setIcon(QIcon(Constants::ICON_RESET_CAMERA));
_resetCamAction->setStatusTip(tr("Reset current camera")); _resetCamAction->setStatusTip(tr("Reset current camera"));
//_resetCamAction->setShortcut(tr("Ctrl+R")); //_resetCamAction->setShortcut(tr("Ctrl+R"));
connect(_resetCamAction, SIGNAL(triggered()), this, SLOT(resetCamera())); connect(_resetCamAction, SIGNAL(triggered()), this, SLOT(resetCamera()));

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save