* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PULSEVIEW_PV_WIDGETS_IMPORTMENU_HPP
#include <QMenu>
#include <QSignalMapper>
+using std::shared_ptr;
+
namespace sigrok {
class Context;
class InputFormat;
Q_OBJECT;
public:
- ImportMenu(QWidget *parent, std::shared_ptr<sigrok::Context> context,
+ ImportMenu(QWidget *parent, shared_ptr<sigrok::Context> context,
QAction *open_action = nullptr);
private Q_SLOTS:
void on_action(QObject *action);
Q_SIGNALS:
- void format_selected(std::shared_ptr<sigrok::InputFormat> format);
+ void format_selected(shared_ptr<sigrok::InputFormat> format);
private:
- std::shared_ptr<sigrok::Context> context_;
+ shared_ptr<sigrok::Context> context_;
QSignalMapper mapper_;
};
-} // widgets
-} // pv
+} // namespace widgets
+} // namespace pv
#endif // PULSEVIEW_PV_WIDGETS_IMPORTMENU_HPP