fixed checked/unchecked actions of menu "Select Source..."

This commit is contained in:
Mathieu Labbe
2015-01-12 16:53:18 -05:00
parent 74d6f9c83d
commit cd3bd2948e
4 changed files with 165 additions and 143 deletions

View File

@@ -200,7 +200,7 @@ private:
void createAndAddScanToMap(int nodeId, const Transform & pose, int mapId);
void drawKeypoints(const std::multimap<int, cv::KeyPoint> & refWords, const std::multimap<int, cv::KeyPoint> & loopWords);
void setupMainLayout(bool vertical);
void updateSelectSourceImageMenu(int type);
void updateSelectSourceImageMenu(bool used, PreferencesDialog::Src src);
void updateSelectSourceDatabase(bool used);
void updateSelectSourceRGBDMenu(bool used, PreferencesDialog::Src src);

View File

@@ -158,7 +158,7 @@ public:
bool isSourceImageUsed() const;
bool isSourceDatabaseUsed() const;
bool isSourceOpenniUsed() const;
int getSourceImageType() const;
PreferencesDialog::Src getSourceImageType() const;
QString getSourceImageTypeStr() const;
int getSourceWidth() const;
int getSourceHeight() const;
@@ -211,9 +211,9 @@ public slots:
void setHardThr(int value);
void setTimeLimit(float value);
void setSLAMMode(bool enabled);
void selectSourceImage(Src src = kSrcUndef);
void selectSourceDatabase(bool user = false);
void selectSourceRGBD(Src src = kSrcUndef);
void selectSourceImage(Src src = kSrcUndef, bool checked = true);
void selectSourceDatabase(bool user = false, bool checked = true);
void selectSourceRGBD(Src src = kSrcUndef, bool checked = true);
private slots:
void closeDialog ( QAbstractButton * button );