]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorvsr <vsr@opencascade.com>
Mon, 30 Jul 2007 14:11:13 +0000 (14:11 +0000)
committervsr <vsr@opencascade.com>
Mon, 30 Jul 2007 14:11:13 +0000 (14:11 +0000)
src/Plot2d/resources/Plot2d_msg_en.ts
src/Qtx/QtxTreeView.cxx
src/Qtx/QtxTreeView.h

index 57b717de62dfb50a41f18e0bd146a27bcd8d9640..367bde8d09a6b43dac67369a1e42b92ed0c8faca 100644 (file)
         <source>CURVE_COLOR_LAB</source>
         <translation>Color:</translation>
     </message>
+    <message>
+        <source>CURVE_PREVIEW_LAB</source>
+        <translation>Preview:</translation>
+    </message>
     <message>
         <source>DIAMOND_MARKER_LBL</source>
         <translation>Diamond</translation>
index 908ad086d2e8581df9bc50140d513dc0a0daf419..d7a52ebc74e4c1b4159411709cb4a5d1006903a9 100644 (file)
@@ -138,6 +138,7 @@ void QtxTreeView::Header::contextMenuEvent( QContextMenuEvent* e )
       setClickable( a->isChecked() );
       QtxTreeView* view = qobject_cast<QtxTreeView*>( parent() );
       if ( view ) {
+       view->emitSortingEnabled( a->isChecked() );
        if ( a->isChecked() ) {
          connect( this, SIGNAL( sectionClicked( int ) ), view, SLOT( onHeaderClicked( int ) ) );
          view->sortByColumn( sortIndicatorSection(), sortIndicatorOrder() );
@@ -277,3 +278,12 @@ void QtxTreeView::setOpened( const QModelIndex& index, const int levels, bool op
     setOpened( child, levels-1, open );
   }
 }
+
+/*!
+  \brief Emit sortingEnabled(bool) signal.
+  \param enabled "enable sorting" flag state
+*/
+void QtxTreeView::emitSortingEnabled( bool enabled )
+{
+  emit( sortingEnabled( enabled ) );
+}
index 2ad69a91d45eac1bc1e143b596d068107187db6d..0d760caf177db65ac4d5a18ba7ac3afd91199b9e 100644 (file)
@@ -53,6 +53,14 @@ protected slots:
   
 protected:
   void     setOpened( const QModelIndex&, const int, bool );
+
+signals:
+  void     sortingEnabled( bool );
+
+private:
+  void     emitSortingEnabled( bool );
+
+  friend class QtxTreeView::Header;
 };
 
 #ifdef WIN32