Commit f6a44e1b authored by Tobias WEBER's avatar Tobias WEBER
Browse files

continued with magnetic structure factors

parent 78926c51
This diff is collapsed.
......@@ -41,10 +41,10 @@ using t_mat_cplx = m::mat<t_cplx, std::vector>;
struct NuclPos
{
std::string name;
t_cplx MAbs;
t_real pos[3];
t_real ReM[3];
t_real ImM[3];
t_real pos[3]; // position
t_cplx MAbs; // scaling of Fourier components
t_real ReM[3]; // real part of Fourier components
t_real ImM[3]; // imag part of Fourier components
};
......@@ -66,7 +66,9 @@ protected:
QLabel *m_status3D = nullptr;
QWidget *m_nucleipanel = nullptr;
QWidget *m_propvecpanel = nullptr;
QTableWidget *m_nuclei = nullptr;
QTableWidget *m_propvecs = nullptr;
QPlainTextEdit *m_structfacts = nullptr;
QPlainTextEdit *m_powderlines = nullptr;
......@@ -82,31 +84,37 @@ protected:
QSpinBox *m_maxBZ = nullptr;
QMenu *m_pTabContextMenu = nullptr; // menu in case a nucleus is selected
QMenu *m_pTabContextMenuNoItem = nullptr; // menu if nothing is selected
t_mat m_crystA = m::unit<t_mat>(3);
t_mat m_crystB = m::unit<t_mat>(3);
protected:
// general table operations
void MoveTabItemUp(QTableWidget *pTab);
void MoveTabItemDown(QTableWidget *pTab);
void ShowTableContextMenu(QTableWidget *pTab, QMenu *pMenu, QMenu *pMenuNoItem, const QPoint& pt);
std::vector<int> GetSelectedRows(QTableWidget *pTab, bool sort_reversed = false) const;
// Fourier components table
void AddTabItem(int row=-1, const std::string& name="n/a", t_real MMag=1.,
t_real x=0., t_real y=0., t_real z=0.,
t_real ReMx=0., t_real ReMy=0., t_real ReMz=1.,
t_real ImMx=0., t_real ImMy=0., t_real ImMz=0.,
t_real scale=1., const std::string &col="#ff0000");
void DelTabItem(int begin=-2, int end=-2);
void MoveTabItemUp();
void MoveTabItemDown();
void TableCurCellChanged(int rowNew, int colNew, int rowOld, int colOld);
void TableCellEntered(const QModelIndex& idx);
void TableItemChanged(QTableWidgetItem *item);
// propagation vectors table
void AddPropItem(int row=-1, const std::string& name="n/a",
t_real x=0., t_real y=0., t_real z=0.);
void DelPropItem(int begin=-2, int end=-2);
void PropItemChanged(QTableWidgetItem *item);
void Add3DItem(int row=-1);
void Sync3DItem(int row=-1);
void Set3DStatusMsg(const std::string& msg);
void TableCurCellChanged(int rowNew, int colNew, int rowOld, int colOld);
void TableCellEntered(const QModelIndex& idx);
void TableItemChanged(QTableWidgetItem *item);
void ShowTableContextMenu(const QPoint& pt);
void Load();
void Save();
void ImportCIF();
......@@ -128,9 +136,6 @@ private:
bool m_ignoreChanges = 1;
long m_curPickedObj = -1;
private:
std::vector<int> GetSelectedRows(bool sort_reversed = false) const;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment