I know.That is not my first project.
I created project again and again.I controlled error:I think problem is that:
My programEditor.h programList.h .... include Q_OBJECT.Afted qmake I can create moc files for all except programEditor.h.So above problems occur.
That is programEditor.h
#ifndef PROGRAMEDITOR_H
#define PROGRAMEDITOR_H
#include "abstractClass.h"
#include "Program.h"
#include "ProgramList.h"
#include "MyStyle.h"
#include <QKeyEvent>
#include <QString>
#include <QShowEvent>
#include <QMenu>
#include <QAction>
#include <QListWidgetItem>
#include <QCloseEvent>
#include "ui_programEditor.h"
#include "ui_listDialog.h"
#include "ui_commandEditor.h"
#include "ui_setPoints.h"
#define PARALLEL "parallel"
#define MAIN "main"
using namespace Ui;
class ProgramEditor :public AbstractClass
{
Q_OBJECT
public:
~ProgramEditor();
void Show();
private:
int programIndex;
ProgramList *programlist;
Program myProgram;
QVector<QTreeWidgetItem *> treeItem;
QVector<QTreeWidgetItem *> treeSubItem;
QVector<QListWidgetItem *> groupItem;
QVector<QListWidgetItem *> commandItems;
MyStyle *mystyle;
void ProgramDialog();
void ShowProgramList();
void DeleteProgramList();
void CreateProgramEditor();
void CreateTreeWidget();
void CreatePointMenu(int indexOfStep ,int indexOfComm);
void TreeWidgetFocus();
void CreateMenus();
void CreateCommandEditor
(QDialog *dialog
);
void CreateSetPointEditor
(QDialog *dialog
);
void DeleteDialog();
void CloseInputWidget();
UIProgramEditor *UIeditor;
UIListDialog *UIprogramDialog;
UICommandEditor *UIcommandEditor;
UISetPoint *UIsetPoint;
//SetPoint Menu kısmı
protected:
//void closeEvent(QCloseEvent *event);
public slots:
void GetIndex(int index);
void ShowCommandEditor();
int ShowSetPointEditor();
signals:
void MyShow();
void MyHide();
};
#endif
#ifndef PROGRAMEDITOR_H
#define PROGRAMEDITOR_H
#include "abstractClass.h"
#include "Program.h"
#include "ProgramList.h"
#include "MyStyle.h"
#include <QKeyEvent>
#include <QString>
#include <QShowEvent>
#include <QMenu>
#include <QAction>
#include <QListWidgetItem>
#include <QCloseEvent>
#include "ui_programEditor.h"
#include "ui_listDialog.h"
#include "ui_commandEditor.h"
#include "ui_setPoints.h"
#define PARALLEL "parallel"
#define MAIN "main"
using namespace Ui;
class ProgramEditor :public AbstractClass
{
Q_OBJECT
public:
ProgramEditor(QWidget *parent=0);
~ProgramEditor();
void Show();
private:
int programIndex;
ProgramList *programlist;
Program myProgram;
QVector<QTreeWidgetItem *> treeItem;
QVector<QTreeWidgetItem *> treeSubItem;
QVector<QListWidgetItem *> groupItem;
QVector<QListWidgetItem *> commandItems;
QMenu *menu;
QAction *changeSetPoint;
MyStyle *mystyle;
void ProgramDialog();
void ShowProgramList();
void DeleteProgramList();
void CreateProgramEditor();
void CreateTreeWidget();
void CreatePointMenu(int indexOfStep ,int indexOfComm);
void TreeWidgetFocus();
void CreateMenus();
void CreateCommandEditor(QDialog *dialog);
void CreateSetPointEditor(QDialog *dialog);
void DeleteDialog();
void CloseInputWidget();
UIProgramEditor *UIeditor;
UIListDialog *UIprogramDialog;
UICommandEditor *UIcommandEditor;
UISetPoint *UIsetPoint;
//SetPoint Menu kısmı
QStringList CommandList;
protected:
void keyPressEvent(QKeyEvent *event);
void showEvent(QShowEvent *event);
//void closeEvent(QCloseEvent *event);
bool event(QEvent *e);
public slots:
void GetIndex(int index);
void TreeWidgetItemChanged(QTreeWidgetItem *,QTreeWidgetItem *);
void ShowCommandEditor();
int ShowSetPointEditor();
signals:
void MyShow();
void MyHide();
};
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks