/*!Constructor.*/
LightApp_Application::LightApp_Application()
: CAM_Application( false ),
-myPrefs( 0 )
+ myPrefs( 0 )
{
STD_TabDesktop* desk = new STD_TabDesktop();
QPixmap aLogo = aResMgr->loadPixmap( "LightApp", tr( "APP_DEFAULT_ICO" ), false );
desktop()->setWindowIcon( aLogo );
- desktop()->setDockableMenuBar( true );
+ desktop()->setDockableMenuBar( false );
desktop()->setDockableStatusBar( false );
// base logo (salome itself)
createMenu( PreferencesId, fileMenu, 50, -1 );
createMenu( separator(), fileMenu, -1, 50, -1 );
- /*
createMenu( separator(), fileMenu, -1, 100, -1 );
createMenu( MRUId, fileMenu, 100, -1 );
createMenu( separator(), fileMenu, -1, 100, -1 );
- */
}
/*!On module activation action.*/
case 0:
default:
putInfo( tr("INF_CANCELLED") );
- myModuleAction->setActiveModule( QString() );
+ if ( myModuleAction )
+ myModuleAction->setActiveModule( QString() );
cancelled = true;
}
}
connect( newWC, SIGNAL( visibilityChanged ( bool ) ), SLOT( onVisibilityChanged( bool ) ) );
myWindows.insert( flag, newWC );
if ( winMap.contains( flag ) ) {
- desktop()->removeDockWidget( myWindows[flag] );
+ //desktop()->removeDockWidget( myWindows[flag] );
desktop()->addDockWidget( (DockWidgetArea)winMap[flag], myWindows[flag] );
}
QStringList modNameList;
app->modules( modNameList, false );
- for ( QStringList::const_iterator it = modNameList.begin(); it != modNameList.end(); ++it )
- {
- int id = _prefs_->addPreference( *it );
- _prefs_->setItemProperty( id, "info", tr( "PREFERENCES_NOT_LOADED" ).arg( *it ) );
- }
ModuleList modList;
app->modules( modList );
mod->createPreferences();
}
}
+ int id = _prefs_->addPreference( "Root" );
+ _prefs_->setItemProperty( id, "info", tr( "PREFERENCES_NOT_LOADED" ) );
}
connect( myPrefs, SIGNAL( preferenceChanged( QString&, QString&, QString& ) ),
QString modName;
if ( activeModule() )
modName = activeModule()->moduleName();
-
- myModuleAction->setActiveModule( modName );
+
+ if ( myModuleAction )
+ myModuleAction->setActiveModule( modName );
}
/*!
if ( dock != NoDockWidgetArea
&&
dock != (DockWidgetArea)it.value() ) {
- desktop()->removeDockWidget( myWindows[it.key()] );
+ //desktop()->removeDockWidget( myWindows[it.key()] );
desktop()->addDockWidget( (DockWidgetArea)it.value(), myWindows[it.key()] );
}
}
!myWindowsVisible[ itr.key() ] )
continue;
- setWindowShown( itr.key(), !itr.value()->isEmpty() && winMap.contains( itr.key() ) );
+ if ( itr.value() )
+ setWindowShown( itr.key(), !itr.value()->isEmpty() && winMap.contains( itr.key() ) );
}
}
QString modName;
if ( activeModule() )
- modName = activeModule()->objectName();
+ modName = activeModule()->name();
desktop()->restoreState( resourceMgr()->stringValue( "windows_geometry", modName ).toLatin1() );
}
QString modName;
if ( activeModule() )
- modName = activeModule()->objectName();
+ modName = activeModule()->name();
resourceMgr()->setValue( "windows_geometry", modName, desktop()->saveState() );
}
\return const reference to type name
\param type - integer id of type
*/
-const QString& LightApp_Dialog::typeName( const int type ) const
+const QString LightApp_Dialog::typeName( const int type ) const
{
return myTypeNames[ type ];
}
//!Change and get type name for indicating in selection widget
QString& typeName( const int );
- const QString& typeName( const int ) const;
+ const QString typeName( const int ) const;
//! Create string contains selection list by list of names, list of types and current name indication state
virtual QString selectionDescription( const QStringList&, const TypesList&, const NameIndication ) const;
Constructor.Initialize by resource manager and parent QWidget.
*/
LightApp_Preferences::LightApp_Preferences( QtxResourceMgr* resMgr, QWidget* parent )
-: QtxListResourceEdit( resMgr, parent )
+: SUIT_PreferenceMgr( resMgr, parent )
{
}
int LightApp_Preferences::addPreference( const QString& label, const int pId, const int type,
const QString& section, const QString& param )
{
- return addItem( label, pId, type, section, param );
+ return addItem( label, pId, (SUIT_PreferenceMgr::PrefItemType)type, section, param );
}
/*!
int LightApp_Preferences::addPreference( const QString& mod, const QString& label, const int pId,
const int type, const QString& section, const QString& param )
{
- int id = addItem( label, pId, type, section, param );
+ int id = addItem( label, pId, (SUIT_PreferenceMgr::PrefItemType)type, section, param );
if ( id != -1 && !mod.isEmpty() )
myPrefMod.insert( id, mod );
return id;
}
/*!Emit preference changed.*/
-void LightApp_Preferences::changedResources( const QMap<Item*, QString>& map )
+void LightApp_Preferences::changedResources( const ResourceMap& map )
{
- for ( QMap<Item*, QString>::ConstIterator it = map.begin(); it != map.end(); ++it )
+ for ( ResourceMap::ConstIterator it = map.begin();
+ it != map.end(); ++it )
{
QString sec, param;
it.key()->resource( sec, param );
#define LIGHTAPP_PREFERENCES_H
#include <LightApp.h>
-#include <QtxListResourceEdit.h>
+#include <SUIT_PreferenceMgr.h>
#include <QMap>
Custom preference container. Assign each preference category with module.
Emits signal on preference changing
*/
-class LIGHTAPP_EXPORT LightApp_Preferences : public QtxListResourceEdit
+class LIGHTAPP_EXPORT LightApp_Preferences : public SUIT_PreferenceMgr
{
Q_OBJECT
bool hasModule( const QString& ) const;
+protected:
+ void changedResources( const ResourceMap& );
+
signals:
void preferenceChanged( QString&, QString&, QString& );
private slots:
void onHelp();
void onApply();
- virtual void changedResources( const QMap<Item*, QString>& );
private:
QString module( const int ) const;
QVBoxLayout* main = new QVBoxLayout( mainFrame() );
main->setMargin( 5 );
main->setSpacing( 5 );
+ main->addWidget( myPrefs );
- QWidget* vbox = new QWidget( mainFrame() );
- main->addWidget( vbox );
-
- QVBoxLayout *base = new QVBoxLayout( vbox );
-
- myPrefs->setParent( vbox );
- myPrefs->move( QPoint( 0, 0 ) );
- myPrefs->show();
+ // myPrefs->setParent( vbox );
+ // myPrefs->move( QPoint( 0, 0 ) );
+ // myPrefs->show();
setFocusProxy( myPrefs );
-
- base->addWidget( myPrefs );
+ myPrefs->setFrameStyle( QFrame::Box | QFrame::Sunken );
setButtonPosition( Right, Close );
if ( !myPrefs )
return;
+ mainFrame()->layout()->removeWidget( myPrefs );
myPrefs->setParent( 0 );
- myPrefs->move( QPoint( 0, 0 ) );
myPrefs->hide();
myPrefs = 0;
}
{
return myStack->currentWidget();
}
+
+/*!
+ \brief Customize show/hide operations.
+
+ Emits visibilityChanged(bool) signal when the widget is
+ being shown/hidden.
+
+ \param visible new visibility state
+*/
+void LightApp_WidgetContainer::setVisible ( bool visible )
+{
+ QDockWidget::setVisible( visible );
+ emit( visibilityChanged( visible ) );
+}
QWidget* active() const;
QWidget* widget( const int ) const;
+public slots:
+ virtual void setVisible ( bool );
+
+signals:
+ void visibilityChanged ( bool );
+
private:
int myType;
QStackedWidget* myStack;
LightApp_ModuleAction.h \
LightApp_ModuleDlg.h \
LightApp_NameDlg.h \
- LightApp_OBFilter.h \
LightApp_OBSelector.h \
LightApp_Operation.h \
LightApp_Selection.h \
LightApp_UpdateFlags.h \
LightApp_WidgetContainer.h
+# LightApp_OBFilter.h
+
if ENABLE_VTKVIEWER
if ENABLE_SALOMEOBJECT
salomeinclude_HEADERS+= LightApp_VTKSelector.h
LightApp_ModuleAction.cxx \
LightApp_ModuleDlg.cxx \
LightApp_NameDlg.cxx \
- LightApp_OBFilter.cxx \
LightApp_OBSelector.cxx \
LightApp_Operation.cxx \
LightApp_Selection.cxx \
LightApp_PreferencesDlg.cxx \
LightApp_WidgetContainer.cxx
+# LightApp_OBFilter.cxx
+
if ENABLE_VTKVIEWER
if ENABLE_SALOMEOBJECT
dist_libLightApp_la_SOURCES+= LightApp_VTKSelector.cxx
</message>
<message>
<source>PREFERENCES_NOT_LOADED</source>
- <translation>Preferences for module "<b>%1</b>" will be available when the module will be loaded</translation>
+ <translation>Preferences for module "<b>%N</b>" will be available when the module will be loaded</translation>
</message>
<message>
<source>PREF_LINEAR</source>
QtxActionMgr.h \
QtxActionSet.h \
QtxActionToolMgr.h \
+ QtxColorButton.h \
QtxColorScale.h \
QtxComboBox.h \
QtxDialog.h \
QtxDockWidget.h \
QtxDoubleSpinBox.h \
QtxEvalExpr.h \
+ QtxFontEdit.h \
QtxGridBox.h \
QtxGroupBox.h \
QtxIntSpinBox.h \
QtxMainWindow.h \
QtxMap.h \
QtxMRUAction.h \
+ QtxPagePrefMgr.h \
QtxPathDialog.h \
+ QtxPathEdit.h \
+ QtxPathListEdit.h \
QtxPopupMgr.h \
+ QtxPreferenceMgr.h \
QtxResourceMgr.h \
QtxSplash.h \
QtxToolBar.h \
#VSR: not yet migrated to Qt4 files
# \
- QtxDirListEditor.h \
QtxListBox.h \
- QtxListResourceEdit.h \
QtxListView.h \
QtxPopupMenu.h \
- QtxResourceEdit.h \
QtxTable.h
# Libraries targets
QtxActionMgr.cxx \
QtxActionSet.cxx \
QtxActionToolMgr.cxx \
+ QtxColorButton.cxx \
QtxColorScale.cxx \
QtxComboBox.cxx \
QtxDialog.cxx \
QtxDockWidget.cxx \
QtxDoubleSpinBox.cxx \
QtxEvalExpr.cxx \
+ QtxFontEdit.cxx \
QtxGridBox.cxx \
QtxGroupBox.cxx \
QtxIntSpinBox.cxx \
QtxLogoMgr.cxx \
QtxMainWindow.cxx \
QtxMRUAction.cxx \
+ QtxPagePrefMgr.cxx \
QtxPathDialog.cxx \
+ QtxPathEdit.cxx \
+ QtxPathListEdit.cxx \
QtxPopupMgr.cxx \
+ QtxPreferenceMgr.cxx \
QtxResourceMgr.cxx \
QtxSplash.cxx \
QtxToolBar.cxx \
#VSR: not yet migrated to Qt4 files
# \
- QtxDirListEditor.cxx \
QtxListBox.cxx \
- QtxListResourceEdit.cxx \
QtxListView.cxx \
QtxPopupMenu.cxx \
- QtxResourceEdit.cxx \
QtxTable.cxx
#VSR: already migrated to Qt4 files
QtxActionMgr_moc.cxx \
QtxActionSet_moc.cxx \
QtxActionToolMgr_moc.cxx \
+ QtxColorButton_moc.cxx \
QtxColorScale_moc.cxx \
QtxComboBox_moc.cxx \
QtxDialog_moc.cxx \
QtxDockAction_moc.cxx \
QtxDockWidget_moc.cxx \
QtxDoubleSpinBox_moc.cxx \
+ QtxFontEdit_moc.cxx \
QtxGridBox_moc.cxx \
QtxGroupBox_moc.cxx \
QtxIntSpinBox_moc.cxx \
QtxLogoMgr_moc.cxx \
QtxMainWindow_moc.cxx \
QtxMRUAction_moc.cxx \
+ QtxPagePrefMgr_moc.cxx \
QtxPathDialog_moc.cxx \
+ QtxPathEdit_moc.cxx \
+ QtxPathListEdit_moc.cxx \
QtxPopupMgr_moc.cxx \
QtxSplash_moc.cxx \
QtxToolBar_moc.cxx \
#VSR: not yet migrated to Qt4 files
# \
- QtxDirListEditor_moc.cxx \
QtxListBox_moc.cxx \
- QtxListResourceEdit_moc.cxx \
QtxListView_moc.cxx \
QtxPopupMenu_moc.cxx \
QtxTable_moc.cxx
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxActionMenuMgr.cxx
-// Author: Alexander SOLOVYEV, Sergey TELKOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#include "QtxActionMenuMgr.h"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxActionMenuMgr.h
-// Author: Alexander SOLOVYEV, Sergey TELKOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#ifndef QTXACTIONMENUMGR_H
#define QTXACTIONMENUMGR_H
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxActionMgr.cxx
-// Author: Alexander SOLOVYEV, Sergey TELKOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#include "Qtx.h"
#include "QtxActionMgr.h"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxActionMgr.h
-// Author: Alexander SOLOVYEV, Sergey TELKOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#ifndef QTXACTIONMGR_H
#define QTXACTIONMGR_H
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxActionToolMgr.cxx
-// Author: Alexander SOLOVYEV, Sergey TELKOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#include "QtxActionToolMgr.h"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxActionToolMgr.h
-// Author: Alexander SOLOVYEV, Sergey TELKOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#ifndef QTXACTIONTOOLMGR_H
#define QTXACTIONTOOLMGR_H
#include <QColorDialog>
#include <QStyleOptionToolButton>
+/*!
+ \class QtxColorButton
+ \brief The QtxColorButton class implements a widget for color
+ preference items editing.
+
+ The color preference item is represented as the colored button,
+ clicking on which invokes the standard "Select color" dialog box.
+
+ Initial color value can be set with setColor() method. Currently
+ chosen color can be retrieved with color() method.
+*/
+
+/*!
+ \brief
+*/
QtxColorButton::QtxColorButton( QWidget* parent )
: QToolButton( parent )
{
connect( this, SIGNAL( clicked( bool ) ), this, SLOT( onClicked( bool ) ) );
}
+/*!
+ \brief
+*/
QtxColorButton::~QtxColorButton()
{
}
+/*!
+ \brief
+*/
QColor QtxColorButton::color() const
{
return myColors.contains( this ) ? myColors[this] : QColor();
}
+/*!
+ \brief
+*/
void QtxColorButton::setColor( const QColor& c )
{
myColors.insert( this, c );
updateState();
}
+/*!
+ \brief
+*/
void QtxColorButton::onClicked( bool )
{
emit clicked( color() );
}
+/*!
+ \brief
+*/
void QtxColorButton::onToggled( bool on )
{
const QToolButton* tb = ::qobject_cast<QToolButton*>( sender() );
emit changed( color() );
}
+/*!
+ \brief
+*/
void QtxColorButton::onDialogClicked( bool )
{
QColor c = QColorDialog::getColor( color(), this );
emit changed( color() );
}
+/*!
+ \brief
+*/
void QtxColorButton::paintEvent( QPaintEvent* e )
{
QToolButton::paintEvent( e );
p.end();
}
+/*!
+ \brief
+*/
void QtxColorButton::updateState()
{
QColor c = color().toRgb();
}
}
+/*!
+ \brief
+*/
void QtxColorButton::updateButton( QToolButton* btn )
{
btn->setIcon( buttonIcon( myColors[btn] ) );
return pix;
}
+/*!
+ \brief
+*/
void QtxColorButton::drawColor( QPaintDevice* pd, const QColor& c, const int m ) const
{
if ( !pd )
p.end();
}
+/*!
+ \brief
+*/
QList<QColor> QtxColorButton::colorsList() const
{
QList<QColor> lst;
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// File: QtxDialog.hxx
+// File: QtxDialog.h
// Author: Sergey TELKOV
#ifndef QTXDIALOG_H
// File: QtxDockAction.h
// Author: Sergey TELKOV
-#ifndef QTX_DOCKACTION_H
-#define QTX_DOCKACTION_H
+#ifndef QTXDOCKACTION_H
+#define QTXDOCKACTION_H
#include "QtxAction.h"
#pragma warning( default:4251 )
#endif
-#endif // QTX_DOCKACTION_H
+#endif // QTXDOCKACTION_H
// File: QtxDockWidget.h
// Author: Sergey TELKOV
+#ifndef QTXDOCKWIDGET_H
+#define QTXDOCKWIDGET_H
+
#include "Qtx.h"
#include <QDockWidget>
Watcher* myWatcher; //!< watcher object
Qt::Orientation myOrientation; //!< dockable window orientation
};
+
+#endif // QTXDOCKWIDGET_H
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxEvalExpr.cxx
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#include "QtxEvalExpr.h"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxEvalExpr.h
-// Author: Alexander SOLOVYOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
-#ifndef QTX_EVALEXPR_H
-#define QTX_EVALEXPR_H
+#ifndef QTXEVALEXPR_H
+#define QTXEVALEXPR_H
#include "Qtx.h"
virtual QtxEvalExpr::Error calculate( const QString&, QVariant&, QVariant& ) const;
};
-#endif
+#endif // QTXEVALEXPR_H
// File: QtxFontEdit.h
// Author: Sergey TELKOV
-#ifndef QtxFontEdit_H
-#define QtxFontEdit_H
+#ifndef QTXFONTEDIT_H
+#define QTXFONTEDIT_H
#include "Qtx.h"
QToolButton *myB, *myI, *myU;
};
-#endif
+#endif // QTXFONTEDIT_H
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// File: QtxListAction.hxx
-// Author: Sergey TELKOV (Based on code by Eugene AKSENOV)
+// File: QtxListAction.h
+// Author: Sergey TELKOV
#ifndef QTXLISTACTION_H
#define QTXLISTACTION_H
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxListView.cxx
+// Author: Sergey TELKOV
#include "QtxListView.h"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxListView.h
+// Author: Sergey TELKOV
#ifndef QTXLISTVIEW_H
#define QTXLISTVIEW_H
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxLogoMgr.cxx
+// Author: Sergey TELKOV
+
#include "QtxLogoMgr.h"
#include <QLabel>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef QTX_LOGOMGR_H
-#define QTX_LOGOMGR_H
+// File: QtxLogoMgr.h
+// Author: Sergey TELKOV
+
+#ifndef QTXLOGOMGR_H
+#define QTXLOGOMGR_H
#include "Qtx.h"
#pragma warning( default : 4251 )
#endif
-#endif
+#endif // QTXLOGOMGR_H
// File: QtxMap.h
// Author: Vadim SANDLER
-#ifndef QTX_MAP_H
-#define QTX_MAP_H
+#ifndef QTXMAP_H
+#define QTXMAP_H
template <class Key, class Value> class IMap;
template <class Key, class Value> class IMapIterator;
friend class IMap<Key,Value>;
};
-#endif // QTX_MAP_H
+#endif // QTXMAP_H
return myType;
}
-void QtxPagePrefEditItem::setInputType( const type )
+void QtxPagePrefEditItem::setInputType( const int type )
{
if ( myType == type )
return;
if ( !myEditor->text().isEmpty() && val )
{
int pos = 0;
- if ( val->validate( myEditor->text(), pos ) == QValidator::Invalid )
+ QString str = myEditor->text();
+ if ( val->validate( str, pos ) == QValidator::Invalid )
myEditor->clear();
}
return myType;
}
-void QtxPagePrefSelectItem::setInputType( const type )
+void QtxPagePrefSelectItem::setInputType( const int type )
{
if ( myType == type )
return;
if ( mySelector->isEditable() && !mySelector->currentText().isEmpty() && val )
{
int pos = 0;
- if ( val->validate( mySelector->currentText(), pos ) == QValidator::Invalid )
+ QString str = mySelector->currentText();
+ if ( val->validate( str, pos ) == QValidator::Invalid )
mySelector->clearEditText();
}
return myType;
}
-void QtxPagePrefSpinItem::setInputType( const type )
+void QtxPagePrefSpinItem::setInputType( const int type )
{
if ( myType == type )
return;
virtual ~QtxPagePrefEditItem();
int inputType() const;
- void setInputType( const type );
+ void setInputType( const int );
virtual void store();
virtual void retrieve();
virtual ~QtxPagePrefSelectItem();
int inputType() const;
- void setInputType( const type );
+ void setInputType( const int );
QStringList strings() const;
QList<int> numbers() const;
void setSpecialValueText( const QString& );
int inputType() const;
- void setInputType( const type );
+ void setInputType( const int );
virtual void store();
virtual void retrieve();
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxPathListEdit.cxx
+// Author: Sergey TELKOV
+
#include "QtxPathListEdit.h"
#include "QtxPathEdit.h"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef QTX_PATHLISTEDIT_H
-#define QTX_PATHLISTEDIT_H
+// File: QtxPathListEdit.h
+// Author: Sergey TELKOV
+
+#ifndef QTXPATHLISTEDIT_H
+#define QTXPATHLISTEDIT_H
#include "Qtx.h"
friend class QtxPathListEdit::Delegate;
};
-#endif
+#endif // QTXPATHLISTEDIT_H
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxPopupMenu.cxx
+// Author: Sergey TELKOV
+
#include "QtxPopupMenu.h"
#include <qpainter.h>
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxPopupMenu.h
+// Author: Sergey TELKOV
+
#ifndef QTXPOPUPMENU_H
#define QTXPOPUPMENU_H
int myPolicy;
};
-#endif
+#endif // QTXPOPUPMENU_H
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxPopupMgr.cxx
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#include "QtxPopupMgr.h"
#include "QtxAction.h"
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxPopupMgr.h
+// Author: Alexander SOLOVYOV, Sergey TELKOV
#ifndef QTXPOPUPMGR_H
#define QTXPOPUPMGR_H
OptionsMap myOptions;
};
-#endif
+#endif // QTXPOPUPMGR_H
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// File: QtxResourceMgr.cxx
+// Author: Alexander SOLOVYOV, Sergey TELKOV
+
#include "QtxResourceMgr.h"
#include <QDir>
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: QtxResourceMgr.h
-// Author: Alexander SOLOVYEV, Sergey TELKOV
+// Author: Alexander SOLOVYOV, Sergey TELKOV
-#ifndef QTX_RESOURCEMGR_H
-#define QTX_RESOURCEMGR_H
+#ifndef QTXRESOURCEMGR_H
+#define QTXRESOURCEMGR_H
#include "Qtx.h"
QMap<QString, QString> myOpt; //!< options map
};
-#endif // QTX_RESOURCEMGR_H
+#endif // QTXRESOURCEMGR_H
// File: QtxTable.h
// Author: Sergey TELKOV
-#ifndef QTX_TABLE_H
-#define QTX_TABLE_H
+#ifndef QTXTABLE_H
+#define QTXTABLE_H
#include "Qtx.h"
#endif
-#endif
+#endif // QTXTABLE_H
{
if ( watch )
myWatcher = new Watcher( this );
+ setObjectName( label );
}
/*!
myWatcher( 0 ),
myStretch( false )
{
+ setObjectName( label );
}
/*!
// File: QtxToolBar.h
// Author: Sergey TELKOV
+#ifndef QTXTOOLBAR_H
+#define QTXTOOLBAR_H
+
#include "Qtx.h"
#include <QToolBar>
Watcher* myWatcher; //!< watcher object
bool myStretch; //!< stretching toolbar flag (not used)
};
+
+#endif // QTXTOOLBAR_H
// File: QtxValidator.h
// Author: Alexandre SOLOVYOV
-#ifndef QTX_VALIDATOR_H
-#define QTX_VALIDATOR_H
+#ifndef QTXVALIDATOR_H
+#define QTXVALIDATOR_H
#include "Qtx.h"
virtual void fixup( QString& ) const;
};
-#endif
+#endif // QTXVALIDATOR_H
SUIT_Operation.h \
SUIT_OverrideCursor.h \
SUIT_PopupClient.h \
+ SUIT_PreferenceMgr.h \
SUIT_ResourceMgr.h \
SUIT_SelectionFilter.h \
SUIT_SelectionMgr.h \
SUIT_Operation.cxx \
SUIT_OverrideCursor.cxx \
SUIT_PopupClient.cxx \
+ SUIT_PreferenceMgr.cxx \
SUIT_ResourceMgr.cxx \
SUIT_SelectionFilter.cxx \
SUIT_SelectionMgr.cxx \
SUIT_FileDlg_moc.cxx \
SUIT_Operation_moc.cxx \
SUIT_PopupClient_moc.cxx \
+ SUIT_PreferenceMgr_moc.cxx \
SUIT_SelectionMgr_moc.cxx \
SUIT_Selector_moc.cxx \
SUIT_Session_moc.cxx \
parent = findItem( pId );
if ( !parent )
- parent = new QtxPagePrefListItem( QString(), this );
+ parent = new QtxPagePrefListItem( QString( "Root" ), this );
switch( type )
{