-// Copyright (C) 2008 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
-// This library is distributed in the hope that it will be useful
+// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// File: SalomeApp_NoteBookDlg.h
// Author : Roman NIKOLAEV, Open CASCADE S.A.S.
// Module : GUI
-
+//
#ifndef SALOMEAPP_NOTEBOOKDLG_H
#define SALOMEAPP_NOTEBOOKDLG_H
class QWidget;
class QPushButton;
class QTableWidgetItem;
+class NoteBook_Table;
struct NoteBoox_Variable
{
class SALOMEAPP_EXPORT NoteBook_TableRow : public QWidget
{
public:
- NoteBook_TableRow(int, QWidget* parent=0);
+ NoteBook_TableRow(int, NoteBook_Table* parentTable, QWidget* parent=0 );
virtual ~NoteBook_TableRow();
int GetIndex() const { return myIndex; }
static bool IsRealValue(const QString theValue, double* theResult = 0);
static bool IsIntegerValue(const QString theValue, int* theResult = 0);
static bool IsBooleanValue(const QString theValue, bool* theResult = 0);
+ bool IsValidStringValue(const QString theName);
private:
int myIndex;
+ NoteBook_Table* myParentTable;
QTableWidgetItem* myRowHeader;
QTableWidgetItem* myVariableName;
QTableWidgetItem* myVariableValue;
void Init(_PTR(Study) theStudy);
static QString Variable2String(const std::string& theVarName,
- _PTR(Study) theStudy);
+ _PTR(Study) theStudy);
bool IsValid() const;
void ResetMaps();
+ QList<NoteBook_TableRow*> myRows;
+
public slots:
void onItemChanged(QTableWidgetItem* theItem);
private:
bool isProcessItemChangedSignal;
- QList<NoteBook_TableRow*> myRows;
bool myIsModified;
QList<int> myRemovedRows;