Added "save/load session" menu actions.
git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@418 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
@@ -65,6 +65,9 @@ public:
|
||||
FindObject(QObject * parent = 0);
|
||||
virtual ~FindObject();
|
||||
|
||||
bool loadSession(const QString & path);
|
||||
bool saveSession(const QString & path) const;
|
||||
|
||||
int loadObjects(const QString & dirPath); // call updateObjects()
|
||||
const ObjSignature * addObject(const QString & filePath);
|
||||
const ObjSignature * addObject(const cv::Mat & image, int id=0, const QString & filename = QString());
|
||||
|
||||
@@ -81,6 +81,8 @@ public Q_SLOTS:
|
||||
void update(const cv::Mat & image);
|
||||
|
||||
private Q_SLOTS:
|
||||
void loadSession();
|
||||
void saveSession();
|
||||
void loadSettings();
|
||||
void saveSettings();
|
||||
void loadObjects();
|
||||
@@ -110,7 +112,7 @@ Q_SIGNALS:
|
||||
|
||||
private:
|
||||
bool loadSettings(const QString & path);
|
||||
bool saveSettings(const QString & path);
|
||||
bool saveSettings(const QString & path) const;
|
||||
int loadObjects(const QString & dirPath);
|
||||
int saveObjects(const QString & dirPath);
|
||||
void setupTCPServer();
|
||||
|
||||
Reference in New Issue
Block a user