|
|
|
@ -66,7 +66,7 @@ void Register::RegisterListView::updateView()
|
|
|
|
|
|
|
|
|
|
void Register::RegisterListView::itemClicked(int button, TQListViewItem *item, const TQPoint &, int)
|
|
|
|
|
{
|
|
|
|
|
if ( item==0 || button!=Qt::LeftButton ) return;
|
|
|
|
|
if ( item==0 || button!=TQt::LeftButton ) return;
|
|
|
|
|
if ( item==firstChild() ) Main::editorManager().openEditor(EditorManager::RegisterEditor);
|
|
|
|
|
int id = _root->id(item);
|
|
|
|
|
if ( id==-1 || _ids[id].type()==Invalid ) return;
|
|
|
|
@ -152,7 +152,7 @@ TQString Register::WatchedListView::tooltip(const TQListViewItem &item, int col)
|
|
|
|
|
|
|
|
|
|
void Register::WatchedListView::itemClicked(int button, TQListViewItem *item, const TQPoint &, int col)
|
|
|
|
|
{
|
|
|
|
|
if ( item==0 || button!=Qt::LeftButton ) return;
|
|
|
|
|
if ( item==0 || button!=TQt::LeftButton ) return;
|
|
|
|
|
else if ( item->rtti()==RegisterRtti ) {
|
|
|
|
|
if ( col==2 && Main::programmerState()==Programmer::Halted ) static_cast<ListViewItem *>(item)->startRename();
|
|
|
|
|
else item->setOpen(!item->isOpen());
|
|
|
|
@ -202,7 +202,7 @@ Register::WatchView::WatchView(TQWidget *parent)
|
|
|
|
|
TQVBoxLayout *top = new TQVBoxLayout(this);
|
|
|
|
|
TQValueList<int> sizes;
|
|
|
|
|
sizes.append(50);
|
|
|
|
|
Splitter *splitter = new Splitter(sizes, Qt::Vertical, this, "watch_window_splitter");
|
|
|
|
|
Splitter *splitter = new Splitter(sizes, TQt::Vertical, this, "watch_window_splitter");
|
|
|
|
|
top->addWidget(splitter);
|
|
|
|
|
|
|
|
|
|
_registerListView = new RegisterListView(splitter);
|
|
|
|
|