Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 95518c1785
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 72 lines (68 sloc) 1.697 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
#pragma once

#include <QtGui/QtGui>
#include "editor_gl.h"
#include "dataeditor.h"

class C_Editor : public QWidget
{
friend class C_GLEditor;
Q_OBJECT
private:
C_GLEditor* m_Editor;
QFileDialog* m_Open;
QFileDialog* m_Save;
QMenuBar* m_Menu;
QStandardItemModel* m_Model;
QStandardItem* m_SelectedItem;
QHeaderView* m_HeaderView;
QPushButton* m_Center;
QPushButton* m_New;
QPushButton* m_Insert;
QPushButton* m_Edit;
QColorDialog* m_ColorDialog;
C_DataEditor* m_DataEditor;
QSplitter* m_Splitter;
QTreeView* m_List;
QList<C_Vertex*> m_VertsToColor;
QShortcut* m_Delete;
bool m_AutoUpdate;
QDir m_EditedFile;

void m_Init();
private slots:
void S_Center();
void S_DeletePoint();
void S_SetPos(C_Vertex&, float, float);
QStandardItem* S_NewPolygon(const std::string& name="Object");
void S_SetActivePoly(const QModelIndex&);
void S_AddToList(QStandardItem*, float, float, int);
void S_UpdateList(QStandardItem* i);
void S_SetInsertMode();
void S_SetEditMode();
void S_OpenColorDialog(QList<C_Vertex*>);
void S_ColorChanged(const QColor&);
void S_OpenFile(const QString&);
void S_SaveFile(const QString& path);
void S_SaveOrSaveAs();
void S_ModeChanged(QAction* a);
void S_OpenDialog()
{
m_Open->setVisible(true);
}
void S_SaveDialog()
{
m_Save->setVisible(true);
}
void S_ReverseActivePolygon();
void S_OpenDataDialog(const QModelIndex&);
void S_SetData();
signals:
void S_SplitPossible(bool b);
void S_SaveAs();
protected:
void keyPressEvent(QKeyEvent* e);
void keyReleaseEvent(QKeyEvent* e);
public slots:
void S_Split();
public:
C_Editor();
C_Editor(const QString& openwith);
};
Something went wrong with that request. Please try again.