Mercurial > hg > octave-lyh
view libgui/src/workspace-view.h @ 16478:079ec7ce60e0
delete useless connection; style fixes
* main-window.cc (main_window::construct): Delete connection from
_workspace_model::model_changed to nonexistent slot
workspace_window::model_changed.
* workspace-model.cc, workspace-model.h, workspace-view.cc,
workspace-view.h: Style fixes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Apr 2013 03:40:28 -0400 |
parents | 64727ed135cb |
children | 45ae1038ee89 |
line wrap: on
line source
/* Copyright (C) 2013 John W. Eaton Copyright (C) 2011-2012 Jacob Dawid This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ #if !defined (workspace_view_h) #define workspace_view_h 1 #include <QTableView> #include <QSemaphore> #include "octave-dock-widget.h" #include "workspace-model.h" class workspace_view : public octave_dock_widget { Q_OBJECT public: workspace_view (QWidget *parent = 0); ~workspace_view (void); public: void setModel (workspace_model *model) { view->setModel (model); } signals: /** signal that user had requested a command on a variable */ void command_requested (const QString& cmd); protected: void closeEvent (QCloseEvent *event); protected slots: void item_double_clicked (QModelIndex index); void contextmenu_requested (const QPoint& pos); // context menu slots void handle_contextmenu_disp (void); void handle_contextmenu_plot (void); void handle_contextmenu_stem (void); private: void relay_contextmenu_command (const QString& cmdname); QTableView * view; }; #endif