added new TupleTableModel for settingsdialog
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "channel.hpp"
|
||||
#include "widgets/split.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace widgets {
|
||||
|
||||
class AttachedWindow : public QWidget
|
||||
{
|
||||
AttachedWindow(void *target, int asdf);
|
||||
|
||||
public:
|
||||
~AttachedWindow();
|
||||
|
||||
static AttachedWindow *get(void *target, const QString &winId, int yOffset);
|
||||
static void detach(const QString &winId);
|
||||
|
||||
void setChannel(ChannelPtr channel);
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent *) override;
|
||||
// virtual void nativeEvent(const QByteArray &eventType, void *message, long *result)
|
||||
// override;
|
||||
|
||||
private:
|
||||
void *target;
|
||||
int yOffset;
|
||||
|
||||
struct {
|
||||
Split *split;
|
||||
} ui;
|
||||
|
||||
void attachToHwnd(void *hwnd);
|
||||
|
||||
struct Item {
|
||||
void *hwnd;
|
||||
AttachedWindow *window;
|
||||
QString winId;
|
||||
};
|
||||
|
||||
static std::vector<Item> items;
|
||||
};
|
||||
|
||||
} // namespace widgets
|
||||
} // namespace chatterino
|
||||
Reference in New Issue
Block a user